/* Experiência objetiva da página de contato. */
html.page-contato .contact-shell {
    width: min(1180px, calc(100% - 24px));
    margin: 20px auto 48px;
}

html.page-contato .navbar .btn {
    border: 0;
    background: transparent;
    color: inherit;
}

html.page-contato .navbar .btn:focus-visible {
    outline: 3px solid rgba(5, 107, 246, 0.34);
    outline-offset: 4px;
}

html.page-contato .contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html.page-contato .contact-intro,
html.page-contato .contact-form-panel {
    position: relative;
    min-width: 0;
    padding: clamp(36px, 5vw, 60px);
}

html.page-contato .contact-intro {
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.2), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(145deg, #075fd6 0%, #056bf6 48%, #1ba8e8 100%);
}

html.page-contato .contact-intro::before {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -120px;
    z-index: -1;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 52px rgba(255, 255, 255, 0.035),
        0 0 0 104px rgba(255, 255, 255, 0.02);
}

html.page-contato .contact-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.page-contato .contact-title {
    max-width: 560px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

html.page-contato .contact-copy {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.7;
    text-wrap: pretty;
}

html.page-contato .contact-channels {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

html.page-contato .contact-channel {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 70px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: rgba(4, 18, 44, 0.18);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease;
}

html.page-contato .contact-channel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.15);
}

html.page-contato .contact-channel__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.08rem;
}

html.page-contato .contact-channel--whatsapp .contact-channel__icon {
    background: rgba(34, 197, 94, 0.22);
}

html.page-contato .contact-channel__copy {
    min-width: 0;
}

html.page-contato .contact-channel__copy strong,
html.page-contato .contact-channel__copy small {
    display: block;
}

html.page-contato .contact-channel__copy strong {
    margin-bottom: 3px;
    font-size: 0.98rem;
}

html.page-contato .contact-channel__copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.page-contato .contact-channel__arrow {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
}

html.page-contato .contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 600;
}

html.page-contato .contact-availability span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12);
}

html.page-contato .contact-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--panel);
}

html.page-contato .contact-form-header {
    margin-bottom: 28px;
}

html.page-contato .contact-form-header > span {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html.page-contato .contact-form-header h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

html.page-contato .contact-form-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

html.page-contato .contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

html.page-contato .contact-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html.page-contato .contact-field--full {
    grid-column: 1 / -1;
}

html.page-contato .contact-field label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

html.page-contato .contact-field input,
html.page-contato .contact-field select,
html.page-contato .contact-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    outline: 0;
    background: var(--panel-strong);
    color: var(--text);
    font: inherit;
    font-size: 0.96rem;
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        background-color 200ms ease;
}

html.page-contato .contact-field input,
html.page-contato .contact-field select {
    min-height: 52px;
    padding: 0 15px;
}

html.page-contato .contact-field textarea {
    min-height: 164px;
    padding: 15px;
    resize: vertical;
    line-height: 1.6;
}

html.page-contato .contact-field input::placeholder,
html.page-contato .contact-field textarea::placeholder {
    color: #94a3b8;
}

html.page-contato .contact-field select option {
    background: var(--panel-strong);
    color: var(--text);
}

html.page-contato .contact-field input:focus,
html.page-contato .contact-field select:focus,
html.page-contato .contact-field textarea:focus {
    border-color: rgba(5, 107, 246, 0.62);
    box-shadow: 0 0 0 4px rgba(5, 107, 246, 0.1);
}

html.page-contato .contact-field .is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.09);
}

html.page-contato .contact-error {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 650;
}

html.page-contato .contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

html.page-contato .contact-form-actions p {
    max-width: 280px;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

html.page-contato .contact-submit {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(5, 107, 246, 0.24);
    cursor: pointer;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 800;
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        opacity 220ms ease;
}

html.page-contato .contact-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(5, 107, 246, 0.32);
}

html.page-contato .contact-submit:focus-visible,
html.page-contato .contact-channel:focus-visible {
    outline: 3px solid rgba(125, 211, 252, 0.55);
    outline-offset: 3px;
}

html.page-contato .contact-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

html.page-contato.dark .contact-card,
html.page-contato.dark .contact-form-panel {
    background: rgba(4, 8, 14, 0.96);
}

html.page-contato.dark .contact-intro {
    background:
        radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.16), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(27, 199, 251, 0.08), transparent 30%),
        linear-gradient(145deg, #071326 0%, #071b36 52%, #08243c 100%);
}

html.page-contato.dark .contact-field input,
html.page-contato.dark .contact-field select,
html.page-contato.dark .contact-field textarea {
    background: rgba(8, 14, 24, 0.94);
}

@keyframes contact-panel-in {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

html.page-contato body.contact-ready .contact-card {
    animation: contact-panel-in 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 900px) {
    html.page-contato .contact-card {
        grid-template-columns: 1fr;
    }

    html.page-contato .contact-intro,
    html.page-contato .contact-form-panel {
        padding: 38px;
    }

    html.page-contato .contact-title {
        max-width: 680px;
    }

    html.page-contato .contact-copy {
        max-width: 660px;
    }

    html.page-contato .contact-channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    html.page-contato .contact-shell {
        width: calc(100% - 20px);
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    html.page-contato .contact-card {
        border-radius: 26px;
    }

    html.page-contato .contact-intro,
    html.page-contato .contact-form-panel {
        padding: 28px 20px;
    }

    html.page-contato .contact-title {
        font-size: clamp(2.5rem, 14vw, 3.4rem);
    }

    html.page-contato .contact-channels,
    html.page-contato .contact-form-grid {
        grid-template-columns: 1fr;
    }

    html.page-contato .contact-field--full {
        grid-column: auto;
    }

    html.page-contato .contact-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    html.page-contato .contact-form-actions p {
        max-width: none;
    }

    html.page-contato .contact-submit {
        width: 100%;
    }
}

@media (max-width: 380px) {
    html.page-contato .contact-channel {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 11px;
    }

    html.page-contato .contact-channel__icon {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.page-contato body.contact-ready .contact-card,
    html.page-contato .contact-channel,
    html.page-contato .contact-submit {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
