/* ==========================================================================
   Rukn Booking System Styles
   ========================================================================== */

/* Stepper */
.booking-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 0;
}
.booking-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.booking-step.active { opacity: 1; }
.booking-step.completed { opacity: 0.7; }
.booking-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s;
}
.booking-step.active .booking-step-number,
.booking-step.completed .booking-step-number {
    background: var(--primary-color);
}
.booking-step-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}
.booking-step-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
}
.booking-step.completed ~ .booking-step-line,
.booking-step.active ~ .booking-step-line { background: var(--primary-color); }

/* Steps container */
.booking-step-content { display: none; }
.booking-step-content.active { display: block; }

/* Space cards */
.space-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
}
.space-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.space-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(101,143,127,0.2);
}
.space-card-image {
    height: 200px;
    overflow: hidden;
}
.space-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.space-card:hover .space-card-image img {
    transform: scale(1.05);
}
.space-card-body {
    padding: 25px;
}
.space-card-body h3 {
    color: var(--dark-color);
    font-size: 20px;
    margin-bottom: 8px;
}
.space-card-body p {
    color: #586b70;
    margin-bottom: 12px;
    font-size: 14px;
}
.space-card-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

/* Duration pills */
.duration-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.duration-pill {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
    transition: all 0.2s;
    background: #fff;
}
.duration-pill:hover { border-color: var(--primary-color); }
.duration-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Time slots grid */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 15px;
}
.time-slot {
    padding: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
    transition: all 0.2s;
    background: #fff;
}
.time-slot:hover:not(.unavailable) { border-color: var(--primary-color); }
.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.time-slot.unavailable {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    border-color: #f0f0f0;
    text-decoration: line-through;
}

/* Hours spinner */
.hours-spinner {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.hours-spinner button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hours-spinner button:hover {
    background: var(--primary-color);
    color: #fff;
}
.hours-spinner .hours-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    min-width: 30px;
    text-align: center;
}

/* Price summary card */
.price-card {
    background: var(--accent-color);
    border-radius: 20px;
    padding: 30px;
}
.price-card h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 18px;
}
.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #586b70;
    font-size: 15px;
}
.price-line.total {
    border-top: 2px solid rgba(0,0,0,0.1);
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-color);
}
.price-line.total .price-amount { color: var(--primary-color); }

/* Booking navigation buttons */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}
.booking-nav .btn-back {
    padding: 12px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: #fff;
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 15px;
}
.booking-nav .btn-back:hover { border-color: var(--dark-color); }

/* Office selector */
.office-select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    color: var(--dark-color);
    background: #fff;
    margin-bottom: 25px;
    appearance: auto;
}
.office-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Guest/login tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}
.auth-tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #586b70;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Summary details */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: #586b70; }
.summary-value { font-weight: 600; color: var(--dark-color); }

/* Styled date input */
input[type="date"].rukn-date {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
    max-width: 300px;
    width: 100%;
    margin-bottom: 25px;
}
input[type="date"].rukn-date:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(101,143,127,0.15);
}
input[type="date"].rukn-date::-webkit-calendar-picker-indicator {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23658f7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat;
    background-size: 20px;
    cursor: pointer;
    padding: 4px;
}

/* Area code + phone */
.phone-group {
    display: flex;
    gap: 10px;
}
.phone-group .area-code {
    width: 100px;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .booking-stepper { gap: 0; }
    .booking-step-label { display: none; }
    .booking-step-line { width: 30px; }
    .time-slots { grid-template-columns: repeat(3, 1fr); }
    .duration-pills { gap: 8px; }
    .duration-pill { padding: 8px 15px; font-size: 13px; }
    .space-card-image { height: 160px; }
}

/* RTL adjustments */
.rtl-mode .booking-stepper { direction: rtl; }
.rtl-mode .price-line,
.rtl-mode .summary-row { direction: rtl; }
