/* Contrato Thankyou - Estilos de confirmação
 * Herda fontes e variáveis de base.css
 */

.thankyou-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary-99) 100%);
    font-family: var(--font-sans);
}

.thankyou-card {
    background: var(--color-white);
    padding: 40px;
    text-align: center;
    max-width: 640px;
    width: 100%;
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(122, 86, 193, 0.04),
        0 10px 24px rgba(122, 86, 193, 0.08),
        0 24px 48px rgba(122, 86, 193, 0.08);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.thankyou-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-50) 0%, var(--color-secondary-60) 100%);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.thankyou-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 28px;
    background: var(--color-info-95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.thankyou-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-info-95);
    animation: iconRipple 1s ease-out 0.4s;
}

.thankyou-icon svg {
    position: relative;
    z-index: 1;
}

.thankyou-icon .check-icon {
    width: 40px;
    height: 40px;
    stroke: var(--color-success-40);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.thankyou-icon .check-icon path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkDraw 0.4s ease-out 0.5s forwards;
}

@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconRipple {
    from {
        transform: scale(1);
        opacity: 0.6;
    }
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.thankyou-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary-50);
    margin: 0 0 20px 0;
    line-height: 1.3;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thankyou-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-neutral-50);
    line-height: 1.7;
    margin: 0 0 20px 0;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.thankyou-text:last-of-type {
    margin-bottom: 0;
}

.thankyou-text strong {
    color: var(--color-neutral-30);
    font-weight: 600;
}

.thankyou-contact {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--color-primary-99);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.5s ease-out 0.5s both;
    transition: all 0.3s ease;
}

.thankyou-contact:hover {
    background: var(--color-primary-95);
    transform: translateY(-2px);
}

.thankyou-contact-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thankyou-contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-white);
    stroke-width: 2;
    fill: none;
}

.thankyou-contact-content {
    text-align: left;
}

.thankyou-contact-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-neutral-60);
    margin-bottom: 2px;
}

.thankyou-contact-email {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-50);
    text-decoration: none;
    transition: color 0.2s ease;
}

.thankyou-contact-email:hover {
    color: var(--color-primary-60);
}

.thankyou-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.thankyou-decoration {
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: var(--color-secondary-95);
    border-radius: 50%;
}

@media (max-width: 600px) {
    .thankyou-page {
        padding: 24px 16px;
        min-height: auto;
    }

    .thankyou-card {
        padding: 24px;
    }

    .thankyou-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 24px;
    }

    .thankyou-icon .check-icon {
        width: 32px;
        height: 32px;
    }

    .thankyou-title {
        font-size: 24px;
    }

    .thankyou-text {
        font-size: 15px;
    }

    .thankyou-contact {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 20px;
    }

    .thankyou-contact-content {
        text-align: center;
    }

    .thankyou-badge {
        font-size: 13px;
        padding: 10px 16px;
    }

    .thankyou-decoration {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thankyou-card,
    .thankyou-icon,
    .thankyou-icon::before,
    .thankyou-icon .check-icon path,
    .thankyou-title,
    .thankyou-text,
    .thankyou-contact,
    .thankyou-badge {
        animation: none;
    }

    .thankyou-icon .check-icon path {
        stroke-dashoffset: 0;
    }
}
