/* Thank You Modal Styles */
.thank-you-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    direction: rtl;
}

.thank-you-modal.active {
    opacity: 1;
    visibility: visible;
}

.thank-you-modal .modal-content {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
}

.thank-you-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.thank-you-modal .modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.thank-you-modal .modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.thank-you-modal .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-modal .success-icon::before {
    content: '✓';
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.thank-you-modal .modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.thank-you-modal .modal-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    text-align: right;
}

.thank-you-modal .modal-message {
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: right;
}

.thank-you-modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thank-you-modal .modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.thank-you-modal .modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.thank-you-modal .modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.thank-you-modal .next-steps {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.thank-you-modal .next-steps h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.thank-you-modal .steps-list {
    list-style: none;
    padding: 0;
}

.thank-you-modal .steps-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    font-size: 0.9rem;
    text-align: right;
}

.thank-you-modal .step-number {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .thank-you-modal .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: 95%;
        max-height: 95vh;
    }

    .thank-you-modal .modal-title {
        font-size: 1.4rem;
    }

    .thank-you-modal .modal-actions {
        flex-direction: column;
    }

    .thank-you-modal .modal-btn {
        width: 100%;
        justify-content: center;
    }
}