/* ============================================================
   CONTATO (CONTACT) PAGE — Social AI
   Split Screen: Hype (Left) + Glassmorphism Form (Right)
   ============================================================ */

/* ---------- AURORA BACKGROUND ---------- */
.ct-aurora {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    z-index: 0;
}

.ct-aurora--1 {
    width: 700px;
    height: 700px;
    top: -20%;
    right: -15%;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.15) 0%, transparent 70%);
    animation: ct-drift-1 12s ease-in-out infinite alternate;
}

.ct-aurora--2 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, transparent 70%);
    animation: ct-drift-2 14s ease-in-out infinite alternate;
}

.ct-aurora--3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(185, 255, 122, 0.08) 0%, transparent 70%);
    animation: ct-drift-3 10s ease-in-out infinite alternate;
}

@keyframes ct-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 40px) scale(1.08);
    }
}

@keyframes ct-drift-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

@keyframes ct-drift-3 {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-45%, -55%) scale(1.1);
    }
}


/* ---------- SPLIT LAYOUT ---------- */
.ct-split {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.ct-split__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px var(--space-xl) var(--space-3xl);
    gap: var(--space-3xl);
    position: relative;
    z-index: 1;
}


/* ---------- LEFT SIDE: HYPE ---------- */
.ct-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: var(--space-xl);
    padding-top: var(--space-md);
}

.ct-left__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.ct-left__emoji {
    display: inline-block;
    font-size: 0.8em;
    animation: ct-emoji-float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 100, 0, 0.3));
}

@keyframes ct-emoji-float {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

.ct-left__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-body);
    max-width: 480px;
    margin-bottom: var(--space-lg);
}


/* ---------- CHANNEL BUTTONS ---------- */
.ct-channel {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.ct-channel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.ct-channel--whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.05));
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.ct-channel--whatsapp::before {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.08));
}

.ct-channel--whatsapp:hover {
    transform: translateX(8px);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.15);
}

.ct-channel--whatsapp:hover::before {
    opacity: 1;
}

.ct-channel--email {
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.ct-channel--email:hover {
    transform: translateX(8px);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

.ct-channel__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ct-channel--whatsapp .ct-channel__icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.ct-channel--email .ct-channel__icon {
    background: var(--gradient);
    color: #fff;
}

.ct-channel__icon svg {
    width: 22px;
    height: 22px;
}

.ct-channel__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
    min-width: 0; /* Permite flex item encolher abaixo do seu conteúdo mínimo */
    word-break: break-word;
    overflow-wrap: break-word;
}

.ct-channel__text strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.ct-channel__text span {
    font-size: 0.85rem;
    color: var(--text-body);
    word-break: break-all; /* E-mails longos precisam poder quebrar em qualquer lugar */
}

.ct-channel__arrow {
    width: 20px;
    height: 20px;
    margin-left: auto;
    color: var(--text-body);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ct-channel:hover .ct-channel__arrow {
    opacity: 1;
    transform: translateX(0);
}


/* Floating emoji */
.ct-left__float {
    margin-top: var(--space-2xl);
    text-align: center;
}

.ct-left__float-emoji {
    width: 80px;
    height: auto;
    display: inline-block;
    animation: ct-float-bubble 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(138, 43, 226, 0.2));
}

@keyframes ct-float-bubble {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-18px) rotate(5deg);
    }
}


/* ---------- RIGHT SIDE: FORM CARD ---------- */
.ct-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-form-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    position: relative;
}

.ct-form-card__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.ct-form-card__header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.ct-form-card__header p {
    font-size: 0.95rem;
    color: var(--text-body);
}


/* ---------- FORM FIELDS ---------- */
.ct-form__group {
    margin-bottom: var(--space-md);
    position: relative;
}

.ct-form__group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.ct-form__required {
    color: #FF1493;
    font-weight: 700;
}

.ct-form__optional {
    color: var(--text-body);
    font-weight: 400;
    font-size: 0.75rem;
}

.ct-form__group input,
.ct-form__group select,
.ct-form__group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}

.ct-form__group textarea {
    border-radius: var(--radius-lg);
    resize: vertical;
    min-height: 80px;
}

.ct-form__group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 44px;
    cursor: pointer;
}

/* Focus glow — gradient border */
.ct-form__group input:focus,
.ct-form__group select:focus,
.ct-form__group textarea:focus {
    border-color: transparent;
    background: #fff;
    box-shadow:
        0 0 0 2px rgba(138, 43, 226, 0.4),
        0 0 0 4px rgba(255, 20, 147, 0.15),
        0 4px 16px rgba(138, 43, 226, 0.1);
}

/* Error state */
.ct-form__group.has-error input,
.ct-form__group.has-error select {
    border-color: #FF1493;
    box-shadow: 0 0 0 2px rgba(255, 20, 147, 0.2);
}

.ct-form__error {
    display: none;
    font-size: 0.75rem;
    color: #FF1493;
    margin-top: 6px;
    padding-left: 20px;
    font-weight: 500;
}

.ct-form__group.has-error .ct-form__error {
    display: block;
}

/* Placeholder */
.ct-form__group input::placeholder,
.ct-form__group textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

/* ---------- FIELDSET & LEGEND ---------- */
.ct-form__fieldset {
    border: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
}

.ct-form__legend {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(138, 43, 226, 0.15);
    width: 100%;
}

/* ---------- RADIO BUTTONS ---------- */
.ct-form__radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.ct-radio:hover {
    border-color: rgba(138, 43, 226, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

.ct-radio input[type="radio"] {
    display: none;
}

.ct-radio__mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.ct-radio__mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient);
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--duration-fast) var(--ease-out);
}

.ct-radio input[type="radio"]:checked+.ct-radio__mark {
    border-color: var(--purple);
}

.ct-radio input[type="radio"]:checked+.ct-radio__mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.ct-radio input[type="radio"]:checked~span:last-child {
    color: var(--purple);
    font-weight: 600;
}

/* ---------- GRADIENT SUBMIT ---------- */
.ct-form__submit--gradient {
    background: linear-gradient(135deg, var(--purple), #FF1493);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.25);
}

.ct-form__submit--gradient:hover {
    box-shadow: 0 12px 40px rgba(255, 20, 147, 0.35);
}

@keyframes ct-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.5);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(255, 20, 147, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 20, 147, 0);
    }
}

.ct-form__submit.is-loading {
    animation: ct-pulse 1.2s ease-in-out infinite;
}


/* ---------- SUBMIT BUTTON ---------- */
.ct-form__submit {
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: 50px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    margin-top: var(--space-md);
}

.ct-form__submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.3);
}

.ct-form__submit:active {
    transform: translateY(-1px);
}

.ct-form__submit-text {
    transition: opacity var(--duration-fast) var(--ease-out);
}

.ct-form__submit-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.ct-form__submit-loading svg {
    width: 28px;
    height: 28px;
    animation: ct-spin 0.8s linear infinite;
}

@keyframes ct-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading state */
.ct-form__submit.is-loading .ct-form__submit-text {
    opacity: 0;
}

.ct-form__submit.is-loading .ct-form__submit-loading {
    opacity: 1;
}

.ct-form__submit.is-loading {
    pointer-events: none;
}


/* ---------- SUCCESS STATE ---------- */
.ct-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    animation: ct-success-in 0.5s var(--ease-out) forwards;
}

.ct-success.is-visible {
    display: block;
}

@keyframes ct-success-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ct-success__check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    animation: ct-check-pop 0.5s var(--ease-out) 0.1s both;
}

@keyframes ct-check-pop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.ct-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.ct-success p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto var(--space-xl);
}

.ct-success .btn-outline {
    font-size: 0.9rem;
}


/* ---------- CONFETTI CANVAS ---------- */
#confettiCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .ct-split__inner {
        grid-template-columns: 1fr;
        padding: 100px 20px var(--space-2xl);
        gap: var(--space-2xl);
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
    }

    .ct-left {
        padding-right: 0;
        text-align: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ct-left__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .ct-channel {
        max-width: 420px;
        width: 100%;
    }

    .ct-right {
        justify-content: center;
    }

    .ct-form-card {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .ct-left__float {
        display: none;
    }
}

@media (max-width: 640px) {
    .ct-split {
        overflow-x: hidden;
    }

    .ct-left__title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .ct-left__subtitle {
        font-size: 0.9rem;
        max-width: 100%;
        padding-right: var(--space-sm);
    }

    .ct-split__inner {
        padding: 90px 20px var(--space-xl);
        box-sizing: border-box;
        max-width: 100vw;
    }

    .ct-form-card {
        padding: var(--space-xl) var(--space-lg);
        max-width: 100%;
        box-sizing: border-box;
    }

    .ct-channel {
        padding: 16px 20px;
        min-height: 48px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Impede saída de elementos internos */
    }

    .ct-channel__icon {
        width: 40px;
        height: 40px;
    }

    .ct-channel__icon svg {
        width: 18px;
        height: 18px;
    }

    .ct-form__radio-group label {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 16px;
        word-break: break-word;
        white-space: normal;
    }

    .ct-form__submit--gradient {
        min-height: 48px;
        font-size: 1rem;
    }
}