/* CONTACT SECTION */
.contact-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
background:
    radial-gradient(circle at 20% 30%, rgba(251, 4, 124, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(251, 4, 124, 0.12), transparent 40%),
    linear-gradient(to bottom, #0b0b0d 0%, #111114 50%, #161616 100%);
}

/* GLOW BACKGROUND */
.contact-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.contact-glow-1 {
    width: 320px;
    height: 320px;
    top: 8%;
    left: -80px;
    background: rgba(251, 4, 124, 0.18);
}

.contact-glow-2 {
    width: 260px;
    height: 260px;
    right: -60px;
    bottom: 10%;
    background: rgba(251, 4, 124, 0.12);
}

/* CONTENT */
.contact-section .container {
    width: min(90%, var(--container-width));
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding-top: 1.5rem;
    padding-bottom: 1.5rem;

    position: relative;
    z-index: 1;
}

/* HEADER */
.contact-section .section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 1.75rem;
}

.contact-section .section-header h2 {
    margin-bottom: 0.7rem;
}

.contact-section .section-header p {
    max-width: 620px;
    margin: 0.8rem auto 0;
    color: rgba(236, 236, 236, 0.78);
    line-height: 1.6;
}

/* FORM WRAPPER */
.contact-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.contact-form {
    width: min(100%, 720px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.4rem;
    border-radius: 2rem;
    position: relative;

    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.92),
        rgba(18, 18, 24, 0.96)
    );

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 24px 60px rgba(0,0,0,0.35),
        0 0 40px rgba(251, 4, 124, 0.10);

    backdrop-filter: blur(18px);
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.45),
        rgba(236, 236, 236, 0.08),
        rgba(97, 26, 60, 0.76)
    );
    --webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* GROUPS */
.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form .form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ECECEC;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(236,236,236,0.08);
    color: #ECECEC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(236,236,236,0.48);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(251, 4, 124, 0.45);
    box-shadow: 0 0 0 4px rgba(251, 4, 124, 0.10);
    background: rgba(236,236,236,0.10);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* BUTTON */
.contact-form .btn-primary {
    width: 100%;
    min-height: 54px;
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-section {
        min-height: 100svh;
        padding: 0;
    }

    .contact-section .container {
        width: min(92%, var(--container-width));
        min-height: calc(100svh - 72px);
        justify-content: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .contact-section .section-header {
        margin-bottom: 1.25rem;
    }

    .contact-section .section-header p {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .contact-form textarea {
        min-height: 150px;
    }

    .contact-glow-1 {
        width: 220px;
        height: 220px;
        left: -70px;
    }

    .contact-glow-2 {
        width: 180px;
        height: 180px;
        right: -50px;
    }
}

/* AVISO */

.form-status {
    margin-top: 1rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    transition: 0.3s ease;
}

.form-status.show {
    opacity: 1;
}

.form-status.success {
    color: #22c55e;
}

.form-status.error {
    color: #ef4444;
}

/* MUDAR DE COR */

.contact-form .btn-primary {
    width: 100%;
    min-height: 54px;
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.contact-form .btn-primary:disabled {
    cursor: not-allowed;
}

.contact-form .btn-primary.is-loading {
    background: #fb047c;
    color: #ececec;
}

.contact-form .btn-primary.is-success {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 0 22px rgba(22, 163, 74, 0.35);
}

.contact-form .btn-primary.is-error {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 22px rgba(220, 38, 38, 0.35);
}

.contact-form .btn-primary .btn-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    line-height: 1;
}

.contact-form .btn-primary .btn-state svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-form .btn-primary .btn-state .is-spinning {
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ANTI SPAM */

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* TERMO */

.form-consent {
    width: 100%;
    margin-top: 0.35rem;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    cursor: pointer;
    color: rgba(236, 236, 236, 0.78);
    font-size: 0.92rem;
    line-height: 1.5;
}

.consent-label input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #fb047c;
    cursor: pointer;
}

.consent-label span {
    display: inline;
    flex: 1;
}