/* ======================================================
   style.css - ملف التصميم الرئيسي للعيادة
   ====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f6fafd;
    color: #1a2c3e;
    line-height: 1.4;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 28px;
    gap: 20px;
    background: #2b9c7c;
    border-radius: 60px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 14px rgba(43, 156, 124, 0.2);
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
}

.logo p {
    font-size: 0.7rem;
    color: #e0f2e9;
    font-weight: 500;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: white;
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #f0faf5;
    text-decoration: underline;
}

.btn-outline-nav {
    border: 1.5px solid white;
    padding: 8px 18px;
    border-radius: 40px;
    background: transparent;
    font-weight: 600;
    color: white !important;
}

.btn-outline-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
}

.btn-solid-nav, .portal-btn {
    background: #ffd700 !important;
    color: #103a47 !important;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 700;
}

.btn-solid-nav:hover, .portal-btn:hover {
    background: #ffc107 !important;
    transform: scale(0.97);
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 40px;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 40px 0 60px;
}

.hero-left {
    flex: 1.2;
}

.badge {
    background: #e0f2e9;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f6e58;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #103a47;
}

.hero-left p {
    font-size: 1.1rem;
    color: #2c4b5e;
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary {
    background: #2b9c7c;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    box-shadow: 0 8px 18px rgba(43, 156, 124, 0.25);
}

.btn-primary:hover {
    background: #227a60;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    border: 1px solid #cbdde6;
    color: #1e3b4a;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #f0f5f8;
}

.hero-right {
    flex: 1;
    background: linear-gradient(145deg, #cbe9e0, #ffffff);
    border-radius: 42px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
}

.hero-right h3 {
    font-size: 1.6rem;
    color: #103a47;
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.feature-item {
    background: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2b9c7c;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2b9c7c;
    border-radius: 4px;
}

/* ===== CARDS GRID (Doctors + Services) ===== */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 40px 0 30px;
}

.doctor-card, .service-card {
    background: white;
    border-radius: 32px;
    padding: 28px 20px 24px;
    text-align: center;
    flex: 1;
    min-width: 210px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.03);
    transition: all 0.25s;
    border: 1px solid #eef3f3;
}

.doctor-card:hover, .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 35px -12px rgba(0, 0, 0, 0.1);
    border-color: #cae3db;
}

.avatar-icon, .service-icon {
    font-size: 3rem;
    color: #2b9c7c;
    background: #e3f5ef;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.doctor-card h3, .service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: #103a47;
}

.card-specialty {
    font-size: 0.85rem;
    color: #2b9c7c;
    font-weight: 500;
    margin-top: 8px;
}

/* ===== HEALTH TIPS ===== */
.tips-slider {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.tips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.tip-card {
    background: #f9fdfb;
    border-radius: 24px;
    padding: 20px;
    flex: 1;
    min-width: 220px;
    text-align: center;
    border: 1px solid #e0efe9;
    transition: 0.2s;
}

.tip-card:hover {
    transform: translateY(-4px);
    border-color: #2b9c7c;
}

.tip-card i {
    font-size: 2.5rem;
    color: #2b9c7c;
    margin-bottom: 15px;
}

.tip-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #103a47;
}

.tip-card p {
    font-size: 0.9rem;
    color: #4a6f7c;
}

/* ===== FEES SECTION ===== */
.fees-wrap {
    background: white;
    border-radius: 32px;
    padding: 28px 30px;
    margin: 50px 0;
    border: 1px solid #eef3f3;
}

.fees-wrap h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    border-bottom: 1px dashed #dde9e5;
    padding-bottom: 12px;
}

.payment-note {
    margin-top: 20px;
    color: #638b7c;
}

/* ===== SOCIAL + CONNECT ===== */
.social-connect {
    background: #eef5f2;
    border-radius: 48px;
    padding: 40px 36px;
    margin: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    background: white;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    font-size: 1.7rem;
    color: #2b9c7c;
    transition: 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #2b9c7c;
    color: white;
}

.connect-details p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours {
    font-size: 0.85rem;
    color: #638b7c;
}

/* ===== REGISTER + LOGIN AREA ===== */
.register-login-area {
    background: white;
    border-radius: 36px;
    padding: 20px 32px 32px;
    margin: 30px 0 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #deede8;
}

.reg-text {
    flex: 1;
}

.reg-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #103a47;
}

.reg-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.reg-btn {
    background: #f4f9f7;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: #1c5a4a;
    transition: 0.2s;
}

.reg-btn:hover {
    background: #e0f2e9;
}

.login-btn {
    background: #2b9c7c;
    color: white !important;
}

.login-btn:hover {
    background: #227a60;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid #dee9e5;
    padding: 36px 0 30px;
    margin-top: 20px;
    color: #3f6273;
    font-size: 0.85rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.footer-top a {
    text-decoration: none;
    color: #3f6273;
}

.footer-top a:hover {
    text-decoration: underline;
    color: #2b9c7c;
}

.footer-note {
    font-size: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 780px) {
    .hero-left h1 {
        font-size: 2.2rem;
    }
    
    .navbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .hero-right {
        margin-top: 20px;
    }
    
    .register-login-area {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .social-connect {
        flex-direction: column;
        text-align: center;
    }
    
    .cards-grid {
        flex-direction: column;
    }
	/* ======================================================
   BOOK CONFIRMATION PAGE STYLES
   ====================================================== */

.confirm-container {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.confirm-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef3f3;
}

.success-card {
    text-align: center;
    border-top: 4px solid #2b9c7c;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #2b9c7c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

.confirm-card h1 {
    color: #103a47;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.confirm-card h2 {
    color: #103a47;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.appointment-details {
    background: #f6fafd;
    border-radius: 24px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid #e0efe9;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 140px;
    font-weight: 600;
    color: #103a47;
}

.detail-value {
    flex: 1;
    color: #2c4b5e;
}

.sms-info {
    background: #e0f2e9;
    padding: 12px;
    border-radius: 16px;
    color: #1f6e58;
    font-size: 0.9rem;
    text-align: center;
}

/* Invite Card */
.invite-card {
    text-align: center;
}

.invite-icon {
    width: 70px;
    height: 70px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.invite-icon i {
    font-size: 2.5rem;
    color: #f59e0b;
}

.features-list {
    margin: 20px 0;
    text-align: left;
    display: inline-block;
    width: 100%;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef3f3;
}

.feature i {
    width: 30px;
    color: #2b9c7c;
    font-size: 1.1rem;
}

.invite-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn-create-account {
    background: #2b9c7c;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-create-account:hover {
    background: #227a60;
    transform: translateY(-2px);
}

.btn-later {
    background: #f0f5f8;
    color: #103a47;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-later:hover {
    background: #e0eef5;
}

.note {
    background: #fef3c7;
    padding: 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #92400e;
    margin-top: 15px;
}

/* Info Card Bottom */
.info-card-bottom h3 {
    color: #103a47;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background: #e0f2e9;
    color: #2b9c7c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-content strong {
    color: #103a47;
}

.step-content p {
    color: #638b7c;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 780px) {
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .confirm-card {
        padding: 20px;
    }
    
    .invite-buttons {
        flex-direction: column;
    }
    
    .btn-create-account,
    .btn-later {
        justify-content: center;
    }
/* ======================================================
   RESPONSIVE FIXES FOR MOBILE
   ====================================================== */

/* تحسين الهيدر للجوال */
@media (max-width: 768px) {
    /* إصلاح الهيدر */
    .navbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 15px;
        margin: 10px;
        border-radius: 30px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 8px;
    }
    
    .btn-primary, .portal-btn, .btn-outline-nav {
        width: 100%;
        text-align: center;
    }
    
    /* تقليل الفراغات الجانبية */
    .container {
        padding: 0 12px;
    }
    
    /* تقليل الهوامش */
    .hero-section, .section-doctors, .section-services, .section-tips, .section-fees, .section-contact {
        padding: 30px 0;
        margin: 0;
    }
    
    /* تحسين البطاقات */
    .doctors-grid, .services-grid, .tips-grid {
        gap: 15px;
    }
    
    .doctor-card, .service-card, .tip-card {
        padding: 20px;
    }
    
    /* تحسين الهيرو */
    .hero-section {
        padding: 25px 20px;
        margin: 10px 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-large {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* تحسين أقسام الاتصال */
    .contact-grid {
        padding: 20px;
        gap: 20px;
    }
    
    /* تقليل الفراغات أسفل الصفحة */
    footer, .footer {
        margin-bottom: 0;
        padding-bottom: 20px;
    }
}

/* شاشات صغيرة جداً (أقل من 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .doctor-avatar, .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .doctor-avatar i, .service-icon i {
        font-size: 1.8rem;
    }
    
    .features-card {
        padding: 20px;
    }
    
    .features-icon {
        width: 50px;
        height: 50px;
    }
    
    .features-icon i {
        font-size: 1.5rem;
    }
    
/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: #2b9c7c;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-block;
    }
    
    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}
}