/* ==========================================================================
   WorkSocial Booking Modal Styles
   Extracted from includes/forms/book-space.php
   ========================================================================== */

/* ===== WORKSOCIAL BRAND COLORS ===== */
:root {
    --ws-dark-brown: #281D18;
    --ws-brown: #44322D;
    --ws-orange: #E05E0F;
    --ws-orange-dark: #C85410;
    --ws-powder: #EAE6DE;
    --ws-eggshell: #F6F4F2;
}

.modal-book-modern .modal-dialog {
    margin: 0;
}

.modal-book-modern .modal-content {
    background: var(--ws-eggshell);
    border-radius: 0;
    height: 100vh;
    overflow-y: auto;
}

/* ===== HEADER ===== */
.ws-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(40, 29, 24, 0.1);
}

.ws-back-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 8px;
}

.ws-header-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ws-dark-brown);
}

/* ===== PROGRESS BAR ===== */
.ws-progress-bar {
    position: sticky;
    top: 68px;
    z-index: 99;
    background: white;
    padding: 12px 16px 16px;
    box-shadow: 0 2px 4px rgba(40, 29, 24, 0.05);
}

.ws-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.ws-progress-line {
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--ws-powder);
    z-index: 0;
}

.ws-progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #42b96c;
    transition: width 0.4s ease;
    width: 0%;
}

.ws-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ws-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--ws-powder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ws-brown);
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.ws-step-circle.active {
    background: #42b96c;
    border-color: #42b96c;
    color: white;
}

.ws-step-circle.completed {
    background: #42b96c;
    border-color: #42b96c;
}

.ws-step-circle.completed::after {
    content: none;
}

.ws-step-label {
    font-size: 10px;
    color: var(--ws-brown);
    text-align: center;
    max-width: 70px;
    line-height: 1.2;
}

/* ===== CONTAINER ===== */
.ws-container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* ===== SECTION ===== */
.ws-section {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(40, 29, 24, 0.06);
}

.ws-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ws-dark-brown);
    margin-bottom: 4px;
}

.ws-section-subtitle {
    font-size: 14px;
    color: var(--ws-brown);
    margin-bottom: 16px;
}

/* ===== SERVICE SELECTION - 2 PER ROW, NO BACKGROUND ===== */
.ws-app-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ws-app-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 16px;
    transition: transform 0.3s ease;
}

.ws-app-icon-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ws-app-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.ws-app-icon-box img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.ws-app-icon-item input[type="radio"]:checked + .ws-app-icon-box {
    transform: scale(1.1);
}

.ws-app-icon-item input[type="radio"]:checked + .ws-app-icon-box::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--ws-orange);
    border-radius: 50%;
    border: 2px solid white;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(224, 94, 15, 0.4);
}

.ws-app-icon-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ws-dark-brown);
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.ws-app-icon-item input[type="radio"]:checked ~ .ws-app-icon-label {
    color: var(--ws-orange);
    font-weight: 600;
}

/* ===== DATE & TIME ===== */
.ws-date-time-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.ws-tab-button {
    flex: 1;
    padding: 12px;
    background: var(--ws-powder);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-brown);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ws-tab-button.active {
    background: var(--ws-orange);
    color: white;
}

.ws-input-group {
    margin-bottom: 16px;
}

.ws-input-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-brown);
    margin-bottom: 8px;
    display: block;
}

.ws-input-field {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--ws-powder);
    border-radius: 12px;
    font-size: 15px;
    color: var(--ws-dark-brown);
    background: white;
    transition: all 0.3s ease;
}

.ws-input-field:focus {
    outline: none;
    border-color: var(--ws-orange);
}

.ws-date-range-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== CTA BUTTON ===== */
.ws-cta-bar {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(40, 29, 24, 0.1);
    z-index: 100;
}

.ws-cta-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--ws-orange), var(--ws-orange-dark));
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(224, 94, 15, 0.3);
    transition: all 0.3s ease;
}

.ws-cta-button:active {
    transform: scale(0.98);
}

.ws-cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ws-hidden {
    display: none !important;
}

/* ===== STEP 4 DARK CONFIRMATION UI ===== */
.ws-step4-container {
    background: linear-gradient(180deg, #1a1210 0%, #2d1f1a 100%);
    min-height: calc(100vh - 140px);
    margin: -16px;
    padding: 24px 20px;
    padding-bottom: 120px;
}

.ws-confirm-header {
    margin-bottom: 24px;
}

.ws-confirm-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.ws-confirm-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.ws-booking-card {
    background: linear-gradient(145deg, #2d2320 0%, #1f1815 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-location-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4ecdc4;
    margin-bottom: 8px;
}

.ws-space-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.ws-datetime-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ws-datetime-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
}

.ws-datetime-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.ws-datetime-value {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.ws-amenities-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.ws-amenities-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.ws-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ws-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.ws-amenity-item i {
    color: #4ecdc4;
    font-size: 14px;
}

.ws-details-card {
    background: linear-gradient(145deg, #2d2320 0%, #1f1815 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ws-detail-row:last-child {
    border-bottom: none;
}

.ws-detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.ws-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

.ws-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
}

.ws-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.ws-total-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--ws-orange);
}

/* Step 4 specific CTA bar */
.ws-step4-active .ws-cta-bar {
    background: #1a1210;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-confirm-cta {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--ws-orange), var(--ws-orange-dark));
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(224, 94, 15, 0.4);
    transition: all 0.3s ease;
}

.ws-confirm-cta:active {
    transform: scale(0.98);
}

/* Legacy summary classes for backwards compatibility */
.ws-summary-card {
    display: none;
}

/* Error Message */
.ws-error-message {
    background: #fee;
    border-left: 4px solid #c00;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #c00;
    font-size: 14px;
}

/* ===== INFO BOX FOR DATE-ONLY SELECTION ===== */
.ws-info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ws-info-box i {
    color: #0284c7;
    font-size: 20px;
    flex-shrink: 0;
}

.ws-info-box-text {
    font-size: 14px;
    color: #0369a1;
    line-height: 1.5;
}
