:root {
    --primary-color: #a7bd7e; 
    --primary-light: #C5A059;
    --primary-dark: #3a4529;
    --bg-base: #0a0d0a;
    --bg-glow: #1a2517;
    --text-main: #f5f5f5;
    --text-muted: #9ba889;
    --border-color: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.02);
    --modal-bg: #121814;
    --stamp-filter: invert(1);
    --stamp-blend: screen;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
    :root {
        --primary-color: #4a6328;
        --primary-light: #8e6d2b;
        --primary-dark: #e2ebd8;
        --bg-base: #f7f9f6;
        --bg-glow: #dbe8d0;
        --text-main: #182015;
        --text-muted: #4f5d45;
        --border-color: rgba(0, 0, 0, 0.12);
        --input-bg: rgba(0, 0, 0, 0.03);
        --modal-bg: #ffffff;
        --stamp-filter: none;
        --stamp-blend: multiply;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Stunning Radial Glow */
.radial-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--bg-glow) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 750px;
    z-index: 1;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideDown 0.8s ease-out;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.logo {
    height: 40px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-family: 'Federo', sans-serif;
    font-weight: 400;
    color: var(--text-main);
    line-height: 0.85;
    letter-spacing: -1px;
    text-transform: uppercase;
    display: inline-block;
    padding: 10px 15px;
    margin-bottom: 2rem;
    border: 3px solid var(--text-main);
    border-radius: 2% 6% 5% 4% / 1% 1% 2% 4%; /* Hand-drawn irregular border effect */
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Styling - Borderless minimalist approach */
form {
    animation: fadeIn 1s ease-out;
}

.form-section {
    margin-bottom: 3.5rem;
}

.form-section h2 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* CSS Mask for SVG Icons */
.section-icon, .btn-icon, .modal-svg-mask {
    background-color: var(--primary-color);
    mask: var(--icon-url) no-repeat center / contain;
    -webkit-mask: var(--icon-url) no-repeat center / contain;
}

.section-icon {
    width: 24px;
    height: 24px;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--input-bg);
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

select option {
    background-color: var(--modal-bg);
    color: var(--text-main);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(167, 189, 126, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.submit-btn, .whatsapp-btn {
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.submit-btn:hover, .whatsapp-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 189, 126, 0.15);
}

.btn-icon {
    width: 20px;
    height: 20px;
    background-color: var(--text-main);
}

.submit-btn:hover .btn-icon, .whatsapp-btn:hover .btn-icon {
    background-color: var(--text-main);
}


/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 100;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--modal-bg);
    padding: 4rem 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    background-color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

.modal-svg-mask {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
}

.modal-content h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.whatsapp-btn {
    width: 100%;
    background-color: var(--primary-dark);
    border-color: var(--primary-color);
    margin-bottom: 1rem;
}

.whatsapp-btn:hover {
    background-color: #25D366; /* Verdadeiro zap no hover */
    border-color: #25D366;
}

.close-btn {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-main);
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pricing Table */
.pricing-table {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--input-bg);
    overflow: hidden;
}
.table-header {
    display: flex;
    background-color: var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}
.table-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.table-row:last-child {
    border-bottom: none;
}
.table-row:hover {
    background-color: var(--input-bg);
}
.total-row {
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--input-bg);
}
.col {
    padding: 1.2rem;
    font-size: 0.95rem;
}
.col-1 { flex: 1.2; font-weight: 500; }
.col-2 { flex: 2; color: var(--text-muted); }
.col-3 { flex: 0.8; text-align: right; }

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.option-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--input-bg);
    transition: var(--transition);
}
.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(167, 189, 126, 0.05);
}
.option-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}
.option-card p {
    color: var(--text-muted);
    line-height: 1.5;
}
.option-card strong {
    color: var(--text-main);
}

/* Terms Section */
.terms-section {
    animation: fadeIn 1s ease-out;
}
.term-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.term-number {
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}
.term-text p {
    margin-bottom: 0.5rem;
}
.term-text ul {
    list-style: none;
    margin-left: 0;
}
.term-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.term-text li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.term-text strong {
    color: var(--text-main);
}
.proposal-content {
    animation: fadeIn 1s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }
    
    .header {
        margin-bottom: 3rem;
    }
    
    .table-header { display: none; }
    .table-row { flex-direction: column; padding: 1rem; }
    .col { padding: 0.5rem 0; text-align: left !important; }
    .col-1 { color: var(--primary-color); }
    .col-2 { font-size: 0.9rem; }
    .col-3 { font-weight: 600; }
}

/* Print Styles */
@media print {
    body {
        background-color: white !important;
        color: black !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .radial-glow {
        display: none !important;
    }
    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
    }
    h1, h2, h3, p, li, span, div {
        color: black !important;
    }
    .text-muted, p, li {
        color: #333 !important;
    }
    .primary-color, h3, h2, .total-row, .col-1 {
        color: #4a6328 !important;
    }
    .button-wrapper {
        display: none !important;
    }
    .pricing-table, .option-card, .term-item {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        background: transparent !important;
    }
    .table-header {
        background: #f5f5f5 !important;
    }
    .section-icon {
        background-color: #4a6328 !important;
    }
    .logo-text {
        color: black !important;
    }
}
