@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

:root {
    --primary: #2f7f34;
    --primary-hover: #256629;
    --secondary: #81c784;
    --bg: #f6f8f6;
    --surface: #ffffff;
    --border: #e5e7eb;
    --text: #131613;
    --muted: #6b806c;
    --shadow: 0 12px 40px rgba(19, 22, 19, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

.brand__icon {
    background: rgba(47, 127, 52, 0.1);
    color: var(--primary);
    border-radius: 8px;
    padding: 6px;
    font-size: 28px;
}

.brand__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
}

.brand__highlight {
    color: var(--primary);
    font-weight: 800;
}

.brand__title-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter 1.8s steps(24, end) 0.2s forwards;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn .material-symbols-outlined {
    font-size: 20px;
}

.btn-ghost {
    background: #f3f4f6;
    border-color: var(--border);
}

.btn-instagram {
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.2);
    background: transparent;
}

.btn-instagram:hover {
    color: #bc2a8d;
    border-color: rgba(188, 42, 141, 0.3);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(47, 127, 52, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #1fb457);
    color: #fff;
    font-weight: 800;
    padding: 16px 22px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.4);
    justify-content: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
    text-transform: none;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #24c85d, #1aa54e);
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 40px rgba(26, 165, 78, 0.45);
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50%;
    width: 50%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2.4s linear infinite;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.instagram-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    object-fit: cover;
    display: inline-block;
}

.page-main {
    flex: 1;
    padding: 40px 0 64px;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: start;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(18px);
    animation: fade-in-up 0.8s ease-out 0.12s forwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47, 127, 52, 0.1);
    border: 1px solid rgba(47, 127, 52, 0.2);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.badge::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-60%);
    animation: shimmer 2.2s linear infinite;
    pointer-events: none;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(47, 127, 52, 0.25);
    position: relative;
    overflow: visible;
}

.pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(47, 127, 52, 0.35);
    animation: ping 1.6s ease-out infinite;
}

.hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    margin: 0;
    line-height: 1.05;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-18px);
    animation: slide-reveal 0.8s ease-out 0.1s forwards;
}

.hero__title span {
    color: var(--primary);
    display: inline-block;
    opacity: 0;
    transform: translateX(-12px);
    animation: slide-reveal 0.8s ease-out 0.25s forwards;
}

.hero__subtitle {
    font-size: 17px;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
    margin: 0;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.contact h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.contact-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid #dee3de;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(19, 22, 19, 0.04);
}

.contact-card--wide {
    grid-column: span 2;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(47, 127, 52, 0.1);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-card--instagram {
    border-color: #dee3de;
    background: var(--surface);
}

.icon-circle--instagram {
    background: transparent;
    color: inherit;
}

.contact-card--instagram .icon-circle {
    background: transparent;
    width: 44px;
    height: 44px;
}


.label {
    font-weight: 700;
    font-size: 14px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    min-width: 0;
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    animation: fade-in-up 0.8s ease-out 0.2s forwards;
}

.form-card.with-overlay .form-grid {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-card__header h3 {
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
}

.form-card__header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin: 16px 0;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.req {
    color: #ef4444;
}

.field__input,
.field__textarea {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    overflow: visible;
}

.field__textarea {
    align-items: flex-start;
}

.field input,
.field select,
.field textarea {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b806c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 10px;
}

.field select.has-value {
    color: #1f5c24;
    font-weight: 600;
}

.field select:focus {
    color: var(--text);
}

.field select option {
    padding: 10px 12px;
    font-size: 15px;
}

.field select option:checked {
    background-color: rgba(47, 127, 52, 0.15) !important;
    color: #154422 !important;
}

.field select option:hover {
    background-color: rgba(47, 127, 52, 0.12) !important;
}

/* force option highlight across browsers */
select:focus option:checked {
    background-color: rgba(47, 127, 52, 0.25) !important;
    color: #0f381a !important;
}

.field--triple input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.field--triple input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 127, 52, 0.1);
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select__button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
    color: var(--text);
}

.custom-select__value {
    flex: 1;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 600;
}

.custom-select__value.is-placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.custom-select__chevron {
    font-size: 20px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.custom-select__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(19, 22, 19, 0.08);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 4;
}

.custom-select__option {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    text-align: left;
    color: var(--text);
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-select__option:hover {
    background: rgba(47, 127, 52, 0.08);
}

.custom-select__option.is-active {
    background: rgba(47, 127, 52, 0.12);
    color: #154422;
    font-weight: 600;
}

.custom-select.open .custom-select__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-select.open .custom-select__chevron {
    transform: rotate(180deg);
}

.custom-select__native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

@keyframes slide-reveal {
    0% {
        opacity: 0;
        transform: translateX(-18px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9ca3af;
}

.field__input:focus-within,
.field__textarea:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 127, 52, 0.1);
}

.field--triple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.field--row {
    gap: 10px;
}

.radio-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.radio-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.radio-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.radio-card input:checked+span {
    font-weight: 700;
    color: var(--text);
}

.radio-card input:checked~span {
    color: var(--text);
}

.radio-card:has(input:checked) {
    border-color: rgba(47, 127, 52, 0.35);
    box-shadow: 0 0 0 3px rgba(47, 127, 52, 0.18);
    background: rgba(47, 127, 52, 0.06);
}

.privacy {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #f1f3f1;
    color: var(--muted);
    font-size: 12px;
    border: 1px solid #e5e7eb;
}

.privacy p {
    margin: 0px;
}

.privacy .material-symbols-outlined {
    font-size: 18px;
    color: var(--muted);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 30px rgba(47, 127, 52, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit.loading {
    opacity: 0.85;
    cursor: default;
    pointer-events: none;
}

.btn-submit .loader {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-text {
    color: #b91c1c;
    font-size: 13px;
    margin: 0;
}

.whatsapp-preview {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(47, 127, 52, 0.2);
    border-radius: 12px;
    background: rgba(47, 127, 52, 0.05);
}

.whatsapp-preview pre {
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--muted);
    white-space: pre-line;
}

.form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    text-align: center;
    padding: 16px;
}

.form-overlay.active {
    display: flex;
}

.form-overlay__box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(19, 22, 19, 0.12);
    width: 100%;
    max-width: 360px;
}

.form-overlay__title {
    margin: 8px 0 4px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.form-overlay__text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.overlay-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(47, 127, 52, 0.2);
    border-top-color: var(--primary);
    animation: spin 0.9s linear infinite;
}

.overlay-success {
    color: var(--primary);
}

.overlay-error {
    color: #b91c1c;
}

.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 16px 0;
}

.footer__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.footer__links {
    display: none;
}

.footer__links a:hover {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .actions {
        display: none;
    }

    .page-main {
        padding: 24px 0 48px;
    }

    .contact-card--wide {
        grid-column: span 1;
    }

    .contact__cards {
        grid-template-columns: 1fr;
    }

    .page-grid {
        grid-template-columns: 1fr;
        margin: 20px 0;
    }

    .form-card {
        padding: 22px;
    }

    .brand__title {
        font-size: 18px;
    }

    .topbar__inner {
        height: 64px;
    }
}

@media (max-width: 540px) {
    .container {
        padding: 0 14px;
    }

    .hero__title {
        font-size: 30px;
    }

    .badge {
        font-size: 11px;
    }

    .btn {
        padding: 10px 12px;
    }

    .form-card {
        padding: 18px;
    }

    .field__label {
        font-size: 13px;
    }

    .field--triple {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .field--triple input {
        padding: 10px 10px;
        font-size: 14px;
    }
}
