/* صفحة الشكر المحسنة */
#thank-you-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.thank-you-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* رسوم النجاح */
.success-animation {
    position: relative;
    margin-bottom: 40px;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.checkmark {
    width: 100%;
    height: 100%;
    position: relative;
}

.checkmark-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    position: relative;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.checkmark-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    opacity: 0.3;
}

.checkmark-stem {
    position: absolute;
    width: 4px;
    height: 30px;
    background: white;
    left: 50%;
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
    transform-origin: bottom;
}

.checkmark-kick {
    position: absolute;
    width: 4px;
    height: 20px;
    background: white;
    left: 50%;
    top: 35px;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: bottom;
}

/* جزيئات النجاح */
.success-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
}

.particle:nth-child(2) {
    top: 30%;
    right: 20%;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 30%;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
}

/* محتوى صفحة الشكر */
.thank-you-content {
    margin-bottom: 40px;
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thank-you-message {
    font-size: 1.2rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* تفاصيل النجاح */
.success-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.detail-item i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.detail-item span {
    color: #2c3e50;
    font-weight: 500;
}

/* معلومات التواصل المحسنة */
.contact-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* روابط وسائل التواصل الاجتماعي المحسنة */
.social-links {
    text-align: center;
}

.social-links h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.social-link.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
    color: white;
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.social-link.instagram {
    background: linear-gradient(135deg, #e1306c, #fd1d1d, #fcb045);
    color: white;
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.social-link i {
    font-size: 1.5rem;
}

.social-link span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .thank-you-container {
        /*padding: 40px 20px;*/
        margin: 0;
    }

    .thank-you-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .success-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .thank-you-container {
        padding: 30px 15px;
    }

    .thank-you-title {
        font-size: 1.8rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}

.page {
    display: none !important;
}

.page.active {
    display: block !important;
}

#thank-you-page .page.active {
    display: flex !important;
}

/* زر الواتساب المحسن */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.whatsapp-btn i {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.whatsapp-btn span {
    position: relative;
    z-index: 1;
    font-family: 'Cairo', sans-serif;
}

.whatsapp-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.3);
}

/* تصميم متجاوب لزر الواتساب */
@media (max-width: 768px) {
    .whatsapp-btn {
        padding: 18px 35px;
        font-size: 1.1rem;
        min-width: 250px;
        gap: 12px;
    }

    .whatsapp-btn i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        padding: 16px 30px;
        font-size: 1rem;
        min-width: 220px;
        gap: 10px;
    }

    .whatsapp-btn i {
        font-size: 1.2rem;
    }
}