/**
 * Affiliate Forms Pro - Thank You Page Styles
 * Version: 3.0.0
 */

.afp-thanks-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.afp-thanks-container {
    max-width: 560px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.afp-thanks-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: afp-thanks-bounce 0.6s ease-out;
}

.afp-thanks-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

@keyframes afp-thanks-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.afp-thanks-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.afp-thanks-name {
    font-size: 18px;
    color: #374151;
    margin: 0 0 24px;
}

.afp-thanks-name strong {
    color: #16a34a;
}

.afp-thanks-message {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.afp-thanks-phone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: afp-phone-ring 2s ease-in-out infinite;
}

.afp-thanks-phone-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

@keyframes afp-phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50%, 100% { transform: rotate(0deg); }
}

.afp-thanks-message p {
    margin: 0 0 8px;
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
}

.afp-thanks-message p:last-child {
    margin-bottom: 0;
}

.afp-thanks-instruction {
    font-weight: 600;
    color: #111827 !important;
}

.afp-thanks-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.afp-thanks-btn svg {
    width: 18px;
    height: 18px;
}

.afp-thanks-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
    color: #fff;
    text-decoration: none;
}

.afp-thanks-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    text-align: left;
    line-height: 1.5;
}

.afp-thanks-hint svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mobile */
@media (max-width: 600px) {
    .afp-thanks-section {
        padding: 20px 16px;
    }
    
    .afp-thanks-container {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .afp-thanks-icon {
        width: 64px;
        height: 64px;
    }
    
    .afp-thanks-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .afp-thanks-title {
        font-size: 22px;
    }
    
    .afp-thanks-message {
        padding: 20px 16px;
    }
    
    .afp-thanks-btn {
        width: 100%;
        justify-content: center;
    }
}
