/* appointment page styles (moved out of appointment.php) */

        :root {
            --primary-blue: #0d6efd;
            --dark-blue: #0a3d84; 
            --success-green: #20c997;
            --whatsapp-green: #25D366;
            --bg-light: #f0f4f8;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --card-radius: 20px;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg-light);
            color: var(--text-dark);
            overflow-x: hidden;
            margin: 0;
        }

        .nav-space { height: 90px; }

        /* HERO BANNER */
        .appointment-hero {
            background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
            background-blend-mode: multiply;
            padding: 60px 0 100px 0;
            color: white;
            text-align: center;
        }

        /* MAIN LAYOUT */
        .booking-container {
            margin-top: -60px;
            position: relative;
            z-index: 10;
        }

        /* CARDS */
        .glass-card {
            background: white;
            border-radius: var(--card-radius);
            box-shadow: 0 15px 35px rgba(0,0,0,0.05);
            border: 1px solid rgba(255,255,255,0.8);
            padding: 40px;
            /* Removed height: 100% so it doesn't stretch */
        }

        /* STICKY SIDEBAR */
        .sticky-summary {
            position: sticky;
            top: 110px; /* Accounts for the menu height */
        }

        /* DOCTOR SUMMARY */
        .doc-profile-img {
            width: 130px;
            height: 130px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid white;
            box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
            margin-top: -70px; /* Pops out of the card */
            margin-bottom: 20px;
            background: #fff;
        }
        
        .summary-box {
            background: #f8fafc;
            border-radius: 12px;
            padding: 20px;
            margin-top: 25px;
            border: 1px dashed #cbd5e1;
        }

        /* MODERN FORM FIELDS */
        .form-floating > .form-control,
        .form-floating > .form-select {
            border: none;
            border-bottom: 2px solid #e2e8f0;
            border-radius: 8px 8px 0 0;
            background-color: #f8fafc;
            padding-left: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        .form-floating > .form-control:focus,
        .form-floating > .form-select:focus {
            box-shadow: none;
            border-bottom-color: var(--primary-blue);
            background-color: #fff;
        }
        .form-floating > label {
            padding-left: 15px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* CUSTOM TOGGLE BUTTONS (For Gender & Returning Patient) */
        .btn-check-custom + .btn-outline {
            border: 1px solid #e2e8f0;
            color: var(--text-muted);
            background: white;
            border-radius: 10px;
            padding: 10px 20px;
            font-weight: 600;
            width: 100%;
            transition: 0.2s;
        }
        .btn-check-custom:checked + .btn-outline {
            background: var(--primary-blue);
            color: white;
            border-color: var(--primary-blue);
            box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
        }

        /* TIME SLOTS */
        .slot-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
            gap: 10px;
        }
        .slot-btn {
            border: 1px solid #cbd5e1;
            background: white;
            padding: 12px 10px;
            border-radius: 10px;
            cursor: pointer;
            color: var(--text-dark);
            font-weight: 600;
            font-size: var(--fs-sm);
            text-align: center;
            transition: all 0.2s;
        }
        .slot-btn:hover {
            border-color: var(--primary-blue);
            color: var(--primary-blue);
            background: #f0f7ff;
        }
        .slot-btn.active {
            background: var(--success-green);
            color: white;
            border-color: var(--success-green);
            box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
        }

        /* ACTION BUTTONS */
        .btn-submit {
            background: var(--dark-blue);
            color: white;
            font-weight: 700;
            padding: 16px;
            border-radius: 12px;
            border: none;
            transition: 0.3s;
            font-size: var(--fs-md);
        }
        .btn-submit:hover {
            background: #072a5e;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(10, 61, 132, 0.3);
        }
        .btn-whatsapp {
            background: var(--whatsapp-green);
            color: white;
            font-weight: 700;
            padding: 16px;
            border-radius: 12px;
            border: none;
            transition: 0.3s;
            font-size: var(--fs-md);
        }
        .btn-whatsapp:hover {
            background: #1da851;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
        }

        /* SECTION TITLES IN FORM */
        .form-section-title {
            font-size: var(--fs-md);
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }
        .form-section-title::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e2e8f0;
            margin-left: 15px;
        }

        /* FOOTER */
        footer {
            background: var(--dark-blue);
            color: white;
            padding: 50px 0 20px;
            margin-top: 60px;
        }
        .footer-heading { font-weight: 700; margin-bottom: 20px; font-size: var(--fs-md); }
        .footer-link { color: white; text-decoration: none; display: block; margin-bottom: 12px; font-size: var(--fs-base); transition: opacity 0.3s; }
        .footer-link:hover { opacity: 0.8; text-decoration: underline; }
        .footer-text { font-size: var(--fs-base); line-height: 1.5; }
        .footer-divider { border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 40px 0 20px; }
    

/* ---- Former inline style="..." attributes ----
   :not(#_#_#_) gives these the same strength an inline style had:
   they beat normal rules but still lose to !important rules. */
.appointment-s1:not(#_#_#_) {
  flex: 1;
}
.appointment-s2:not(#_#_#_) {
  height: 100px;
}
.appointment-s3:not(#_#_#_) {
  font-size: var(--fs-sm);
}

/* Long floating labels (e.g. "Briefly describe your symptoms...") must not widen the page on phones */
.form-floating > label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
