﻿ 
.container {
    background: linear-gradient(rgba(0,0,0,.9),rgba(0,0,0,.9)), url('/images/barber-bg.jpg');
    background-size: cover;
}

.wizard-container {
    max-width: 1000px; /* توسيع القليلاً ليناسب الكروت الثلاثة */
    margin: 50px auto;
    padding: 20px;
    background: #1e1e1e; /* لون داكن أفتح قليلاً للحاوية */
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 20px rgba(212, 175, 55, .2);
}
 

.line {
    width: 50px;
    height: 2px;
    background: #333;
}
 

.wizard-step {
    display: none;
}

    .wizard-step.active {
        display: block;
    }

h2 {
    color: gold;
    margin-bottom: 10px;
    font-size: 2em;
}

.subtitle {
    color: #ccc;
    margin-bottom: 25px;
}

.btn-google {
    background: #fff;
    color: #000;
    padding: 14px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

textarea {
    grid-column: span 2;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.upload-box {
    background: #111;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

    .upload-box img {
        margin-top: 10px;
        max-width: 100%;
        border-radius: 8px;
    }

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-next,
.btn-prev,
.btn-submit {
    background: gold;
    color: #000;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
}

 

.hours-table {
    justify-self: center;
}

    .hours-table td {
        padding: 7px;
    }











/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة متساوية */
    gap: 30px;
    margin-bottom: 20px;
}

/* Plan Card Styling */
.plan-card {
    background: #252525;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
}

    /* تأثير الـ Hover و الـ Selection */
    .plan-card:hover, .plan-card.selected {
        border-color: gold;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        transform: translateY(-5px); /* تأثير رفع بسيط */
    }

    /* تأثير الـ selected باللون الذهبي (وليس الأخضر كما في كودك القديم) */
    .plan-card.selected {
        background: rgba(212, 175, 55, 0.1); /* خلفية ذهبية شفافة جداً */
    }

    /* Plan Card content */
    .plan-card h3 {
        color: #fff;
        margin-top: 20px;
        margin-bottom: 15px;
        font-size: 1.5em;
    }

    .plan-card p {
        color: #b0b0b0;
        font-size: 0.95em;
        line-height: 1.5;
        margin-bottom: 25px;
        flex-grow: 1; /* جعل النص يأخذ المساحة المتاحة */
    }

        .plan-card p span {
            color: #4CAF50; 
            font-weight: bold;
        }
/* Plan Icon (أضفت تنسيق للأيقونات التي سنضيفها في JS) */
.plan-icon {
    font-size: 3em;
    color: gold;
}

/* Select Button inside Plan Card */
.select-plan {
    background: gold;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.plan-card:hover .select-plan,
.plan-card.selected .select-plan {
    background: #fff; /* تغيير اللون عند الاختيار أو التمرير */
}

/* Payment Period Section */
.payment-period-section {
    background: #252525;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

    .payment-period-section h3 {
        color: #ccc;
        margin-bottom: 20px;
        font-size: 1.2em;
    }

.period-selection {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* تجميل أزرار الـ Radio كأزرار قابلة للضغط */
.period-item {
    cursor: pointer;
    flex: 1;
    max-width: 200px;
}

    .period-item input[type="radio"] {
        display: none; /* إخفاء الراديو الأصلي */
    }

.period-content {
    background: #333;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

    .period-content i {
        font-size: 1.2em;
    }

/* عند اختيار فترة السداد */
.period-item input[type="radio"]:checked + .period-content {
    background: gold;
    color: #000;
    border-color: gold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    font-weight: bold;
}

/* Actions Buttons */
.actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.btn-next,
.btn-prev {
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* زر التالي (الذهبي المتوهج) */
.btn-next {
    background: gold;
    color: #000;
    flex-grow: 2; /* جعله يأخذ مساحة أكبر */
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

    .btn-next:hover {
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.7);
        transform: translateY(-2px);
    }

/* زر السابق (الشفاف/الداكن) */
.btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-prev:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }



/* --- Mobile Responsive Adjustments --- */

@media (max-width: 768px) {
    /* تصغير الهوامش والحواف في الحاوية الرئيسية */
    .wizard-container {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 12px;
    }

    /* تحويل الكروت من 3 أعمدة إلى عمود واحد */
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    /* تقليل الارتفاع الأدنى للكروت لتبدو متناسقة */
    .plan-card {
        min-height: auto;
        padding: 20px;
    }

    .plan-icon {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.5em;
    }

    /* تحويل اختيارات فترة السداد لتكون تحت بعضها */
    .period-selection {
        flex-direction: column;
        gap: 10px;
    }

    .period-item {
        max-width: 100%; /* تأخذ عرض الشاشة بالكامل */
    }

    .period-content {
        padding: 12px;
        justify-content: flex-start; /* محاذاة النص للأمام لسهولة القراءة */
        padding-right: 20px;
    }

    /* تعديل الأزرار النهائية (السابق والتالي) */
    .actions {
        flex-direction: column; /* وضع زر مبروك فوق وزر السابق تحت */
        gap: 12px;
    }

    .btn-next, .btn-prev {
        width: 100%; /* ملء العرض */
        padding: 15px;
        text-align: center;
        justify-content: center;
    }

    /* تصغير شريط الخطوات العلوي ليناسب الشاشة */
    .wizard-progress {
        margin-bottom: 30px;
    }

    .line {
        width: 20px; /* تقصير الخطوط الواصلة بين الأرقام */
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* تحسين إضافي للشاشات الصغيرة جداً (مثل iPhone SE) */
@media (max-width: 380px) {
    h2 {
        font-size: 1.2em;
    }

    .plan-card h3 {
        font-size: 1.2em;
    }
}



/* خلفية الـ Modal */
.modal-overlay {
    display: none; /* سنغير هذا عبر JS إلى flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px); /* تعتيم خلفية الصفحة */
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* حالة الظهور للخلفية */
    .modal-overlay.show {
        opacity: 1;
    }

/* صندوق المحتوى */
.modal-content {
    background: #1e1e1e;
    border: 1px solid rgba(212, 175, 55, 0.5);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* حالة البداية (مُصغر ونازل قليلاً) */
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* تأثير ارتداد ناعم */
}

/* حالة الظهور للمحتوى */
.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

/* إضافة أنيميشن عند الإغلاق (اختياري لزيادة النعومة) */
.modal-overlay.hiding .modal-content {
    transform: scale(0.8) translateY(20px);
}



/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    left: 20px; /* يسار لأن المحتوى عربي */
    font-size: 25px;
    color: gold;
    cursor: pointer;
}

/* Modal Body Content Styling */
.modal-info-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

    .modal-info-item strong {
        color: gold;
        display: block;
        margin-bottom: 5px;
    }

    .modal-info-item span {
        color: #ccc;
    }

/* ستايل الرابط داخل الكارت */
.plan-card a {
    color: gold;
    text-decoration: underline;
    font-size: 0.85em;
    margin-bottom: 15px;
    display: inline-block;
}





.disabled-period {
    opacity: 0.6; /* جعله باهت قليلاً */
    cursor: not-allowed !important; /* تغيير شكل الماوس */
}

    .disabled-period .period-content {
        background: #222 !important; /* لون خلفية أغمق */
        border-color: rgba(255, 0, 0, 0.5) !important; /* حدود حمراء خفيفة */
    }

    .disabled-period * {
        pointer-events: none; /* منع تفاعل العناصر الداخلية */
    }

/* لجعل حاوية الـ label نفسها قابلة للضغط فقط لاكتشاف المحاولة */
#yearlyPeriodLabel {
    pointer-events: auto;
}


 


.wizard-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

    /* الخط الخلفي */

    .wizard-progress::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 4px;
        background: #333;
        transform: translateY(-50%);
    }

/* الخط الذهبي المتحرك */

.progress-bar {
    position: absolute;
    top: 50%;
    right: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg,#ffd700,#b8860b);
    transform: translateY(-50%);
    transition: width .4s ease;
}

/* STEP */

.step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #444;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    transition: all .35s ease;
}

    /* ACTIVE */

    .step.active {
        background: linear-gradient(135deg,#ffd700,#b8860b);
        color: black;
        border: none;
        box-shadow: 0 0 10px rgba(212,175,55,.7), 0 0 20px rgba(212,175,55,.4);
        transform: scale(1.1);
    }