/* ============================================================
   Sahi Derma — Premium Booking Redesign
   ============================================================ */

:root {
    --navy-dark: #0B1C39;
    --accent-pink: #FF3E8A;
    --accent-purple: #7B2FF7;
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.08);
}

.booking-page {
    background: #fdfdfd;
    font-family: 'Inter', sans-serif;
    color: var(--navy-dark);
}

/* ---- Hero Section (Centered Top) ---- */
.booking-hero {
    position: relative;
    padding: 160px 0 280px;
    background: linear-gradient(rgba(11, 28, 57, 0.8), rgba(11, 28, 57, 0.8)), url('../img/clinic-interior.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left; /* Aligned properly to the left */
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 3.5rem; /* Adjusted to fit in one line */
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--accent-pink); /* Pink title */
    white-space: nowrap; /* Force one line */
}

.hero-content p {
    font-size: 1.3rem;
    color: #ffffff; /* White subtitle */
    line-height: 1.6;
    max-width: 700px;
    opacity: 1;
}

/* ---- Floating Card Layout ---- */
.booking-layout-wrapper {
    max-width: 1200px;
    margin: -140px auto 100px;
    display: flex;
    justify-content: flex-end; /* Floating Right */
    padding: 0 20px;
    position: relative;
    z-index: 100;
}

@media (max-width: 992px) {
    .booking-layout-wrapper {
        justify-content: center;
        margin-top: -60px;
    }
}

.booking-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    padding: 45px;
    border: 1px solid rgba(0,0,0,0.03);
}

.booking-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--navy-dark);
}

.booking-card .sub-label {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 35px;
    display: block;
}

/* ---- Form Styling ---- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 62, 138, 0.1);
}

/* ---- Modern Calendar ---- */
.calendar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
}

.calendar-selectors {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-select {
    flex: 1;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-dark);
    cursor: pointer;
    transition: 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230b1c39'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.calendar-select:focus {
    outline: none;
    border-color: var(--accent-pink);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 62, 138, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.day-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-align: center;
    padding-bottom: 10px;
}

.day-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
}

.day-btn:hover:not(.disabled):not(.selected) {
    background: #f1f5f9;
}

.day-btn.today {
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
}

.day-btn.selected {
    background: var(--accent-pink) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(255, 62, 138, 0.3);
}

.day-btn.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* ---- Time Slots (Pill Buttons) ---- */
.time-slots-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.time-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-dark);
    cursor: pointer;
    transition: 0.3s;
}

.time-btn:hover:not(.selected) {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.time-btn.selected {
    background: var(--accent-pink);
    color: #fff;
    border-color: var(--accent-pink);
    box-shadow: 0 4px 12px rgba(255, 62, 138, 0.2);
}

/* ---- Summary Card ---- */
.booking-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px dashed #cbd5e1;
    display: none;
}

.booking-summary.active {
    display: block;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-line:last-child { margin-bottom: 0; }

.line-label { color: #64748b; font-size: 0.85rem; font-weight: 600; }
.line-value { color: var(--navy-dark); font-weight: 800; font-size: 0.95rem; }

/* ---- Confirm Button ---- */
.btn-submit {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF3E8A, #7B2FF7);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(255, 62, 138, 0.25);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 62, 138, 0.4);
}

/* ---- Mobile Refinements ---- */
@media (max-width: 768px) {
    .booking-hero { text-align: center; padding: 120px 0 200px; }
    .hero-content h1 { 
        font-size: 2.2rem; 
        white-space: normal; 
    }
    .hero-content p { margin: 0 auto; }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 1.8rem; }
    .booking-card { padding: 30px 20px; }
    
    .calendar-widget {
        padding: 15px 10px;
    }

    .calendar-widget {
        padding: 15px 10px;
    }
}
