/* עיצוב כללי ומשתנים */
#wp-shabbat-registration-wrapper {
    --primary-color: #6A0000;
    --secondary-color: #D4AA70;
    --bg-light: #F8F8F8;
    --text-dark: #222;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    direction: rtl;
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 750px;
    margin: 20px auto;
    box-sizing: border-box;
}

#wp-shabbat-registration-wrapper *,
#wp-shabbat-registration-wrapper *::before,
#wp-shabbat-registration-wrapper *::after {
    box-sizing: border-box;
}

#wp-shabbat-registration-wrapper .form-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 8px solid var(--primary-color);
}

#wp-shabbat-registration-wrapper h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 800;
}

#wp-shabbat-registration-wrapper .calendar-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 25px;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* סליידר כרטיסים */
#wp-shabbat-registration-wrapper .picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

#wp-shabbat-registration-wrapper .cards-viewport {
    flex: 1;
    overflow: hidden;
    padding: 10px 5px;
}

#wp-shabbat-registration-wrapper #shabbatCards {
    display: flex;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* טעינה */
#wp-shabbat-registration-wrapper .loading-spinner {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* עיצוב הכרטיס */
#wp-shabbat-registration-wrapper .shabbat-card {
    flex: 0 0 calc(33.333% - 10px);
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

#wp-shabbat-registration-wrapper .shabbat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

#wp-shabbat-registration-wrapper .shabbat-card .parasha {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

#wp-shabbat-registration-wrapper .shabbat-card .shabbat-date {
    color: #444;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

#wp-shabbat-registration-wrapper .shabbat-card .hebrew-date {
    font-size: 0.95rem; 
    font-weight: bold; 
    color: var(--secondary-color);
    margin-bottom: 5px;
}

#wp-shabbat-registration-wrapper .shabbat-card .candle-time {
    font-size: 0.85rem;
    color: #555;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto;
    font-weight: bold;
}

/* כרטיס נבחר - Active */
#wp-shabbat-registration-wrapper .shabbat-card.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 0, 0, 0.3);
}

#wp-shabbat-registration-wrapper .shabbat-card.active .parasha,
#wp-shabbat-registration-wrapper .shabbat-card.active .shabbat-date,
#wp-shabbat-registration-wrapper .shabbat-card.active .hebrew-date,
#wp-shabbat-registration-wrapper .shabbat-card.active .candle-time {
    color: #ffffff !important;
}

#wp-shabbat-registration-wrapper .shabbat-card.active .candle-time {
    background: rgba(255, 255, 255, 0.2);
}

/* חיצים */
#wp-shabbat-registration-wrapper .arrow-btn {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

#wp-shabbat-registration-wrapper .arrow-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

#wp-shabbat-registration-wrapper .arrow-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* שדות טופס */
#wp-shabbat-registration-wrapper .counts-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

#wp-shabbat-registration-wrapper .count-field {
    flex: 1;
}

#wp-shabbat-registration-wrapper .count-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#wp-shabbat-registration-wrapper input[type="text"],
#wp-shabbat-registration-wrapper input[type="email"],
#wp-shabbat-registration-wrapper input[type="tel"],
#wp-shabbat-registration-wrapper select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

#wp-shabbat-registration-wrapper input:focus,
#wp-shabbat-registration-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* כפתורים */
#wp-shabbat-registration-wrapper .submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

#wp-shabbat-registration-wrapper .submit-btn:hover {
    background: #4c0000;
}

#wp-shabbat-registration-wrapper .submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#wp-shabbat-registration-wrapper .buttons-row {
    display: flex;
    gap: 10px;
}

#wp-shabbat-registration-wrapper .back-btn {
    flex: 1;
    background: #eee;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.3s;
}

#wp-shabbat-registration-wrapper .back-btn:hover {
    background: #ddd;
}

#wp-shabbat-registration-wrapper .submit-final {
    flex: 2;
    margin: 0;
}

/* שבת נבחרת */
#wp-shabbat-registration-wrapper .selected-shabbat-display {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

#wp-shabbat-registration-wrapper .selected-shabbat-display .label {
    color: #666;
    margin-left: 5px;
}

#wp-shabbat-registration-wrapper .selected-shabbat-display #selectedShabbatDisplay {
    font-weight: bold;
    color: var(--primary-color);
}

/* הודעת הצלחה */
#wp-shabbat-registration-wrapper #successMessage {
    text-align: center;
    padding: 40px;
}

#wp-shabbat-registration-wrapper .success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

#wp-shabbat-registration-wrapper #successMessage h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

#wp-shabbat-registration-wrapper #successMessage p {
    color: #666;
    margin-bottom: 20px;
}

/* Hidden */
#wp-shabbat-registration-wrapper .hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    #wp-shabbat-registration-wrapper .form-card {
        padding: 25px 20px;
    }
    
    #wp-shabbat-registration-wrapper .shabbat-card {
        flex: 0 0 100%;
    }
    
    #wp-shabbat-registration-wrapper .counts-row {
        flex-direction: column;
        gap: 0;
    }
    
    #wp-shabbat-registration-wrapper .buttons-row {
        flex-direction: column-reverse;
    }
    
    #wp-shabbat-registration-wrapper .submit-final,
    #wp-shabbat-registration-wrapper .back-btn {
        flex: none;
        width: 100%;
    }
    
    #wp-shabbat-registration-wrapper .back-btn {
        margin-top: 10px;
    }
}
