/* =============================================================
   KAUSALYA HOSPITAL — APPOINTMENT PAGE CSS
   Theme: Uses CSS Variables for Dark/Light Mode Support
   ============================================================= */

/* ── FULL WIDTH PAGE OVERRIDE ────────────────────────────── */
.kausalya-appointment-page {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kausalya-appointment-page .kausalya-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── APPOINTMENT HERO ────────────────────────────────────── */
.kausalya-appointment-hero {
    background: linear-gradient(135deg, #0A2B3E 0%, #1a4a6e 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: background 0.4s ease;
}

body.light-mode .kausalya-appointment-hero {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(0, 168, 168, 0.08) 100%);
}

.kausalya-appointment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(29, 158, 117, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.kausalya-appointment-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.kausalya-appointment-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #ffffff;
    transition: color 0.4s ease;
}

body.light-mode .kausalya-appointment-hero .hero-title {
    color: var(--text-heading);
}

.kausalya-appointment-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    color: #ffffff;
    transition: color 0.4s ease;
}

body.light-mode .kausalya-appointment-hero .hero-subtitle {
    color: var(--text-body);
    opacity: 1;
}

/* ── BOOKING SECTION ─────────────────────────────────────── */
.kausalya-booking-section {
    padding: 80px 0;
    background: #f7fbf9;
    width: 100%;
    transition: background-color 0.4s ease;
}

body.light-mode .kausalya-booking-section {
    background: var(--bg-deep);
}

.kausalya-booking-section .kausalya-container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 24px !important;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* ── BOOKING FORM ────────────────────────────────────────── */
.booking-form-col {
    background: #ffffff;
    border: 1px solid #e2f0ea;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(10, 43, 62, 0.08);
    transition: all 0.4s ease;
}

body.light-mode .booking-form-col {
    background: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: var(--card-shadow);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    color: #0A2B3E;
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

body.light-mode .form-header h2 {
    color: var(--text-heading);
}

.form-header p {
    color: #6b8899;
    font-size: 0.95rem;
    transition: color 0.4s ease;
}

body.light-mode .form-header p {
    color: var(--text-body);
}

/* Form Inputs */
.booking-form-col form input[type="text"],
.booking-form-col form input[type="email"],
.booking-form-col form input[type="tel"],
.booking-form-col form input[type="date"],
.booking-form-col form select,
.booking-form-col form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #e2f0ea;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fbf9;
    color: #0A2B3E;
}

body.light-mode .booking-form-col form input[type="text"],
body.light-mode .booking-form-col form input[type="email"],
body.light-mode .booking-form-col form input[type="tel"],
body.light-mode .booking-form-col form input[type="date"],
body.light-mode .booking-form-col form select,
body.light-mode .booking-form-col form textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--card-border);
    color: var(--text-light);
}

.booking-form-col form input:focus,
.booking-form-col form select:focus,
.booking-form-col form textarea:focus {
    outline: none;
    border-color: #1D9E75;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.1);
}

body.light-mode .booking-form-col form input:focus,
body.light-mode .booking-form-col form select:focus,
body.light-mode .booking-form-col form textarea:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.05);
}

.booking-form-col form textarea {
    min-height: 120px;
    resize: vertical;
}

.booking-form-col form button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: #1D9E75;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-form-col form button[type="submit"]:hover {
    background: #0F6E56;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 158, 117, 0.3);
}

/* Contact Form 7 Overrides */
.booking-form-col .wpcf7-form p {
    margin-bottom: 20px;
}

.booking-form-col .wpcf7-form input[type="text"],
.booking-form-col .wpcf7-form input[type="email"],
.booking-form-col .wpcf7-form input[type="tel"],
.booking-form-col .wpcf7-form input[type="date"],
.booking-form-col .wpcf7-form select,
.booking-form-col .wpcf7-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e2f0ea;
    border-radius: 12px;
    font-size: 1rem;
    background: #f7fbf9;
}

.booking-form-col .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 16px;
    background: #1D9E75;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2f0ea;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
}

body.light-mode .sidebar-widget {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.sidebar-widget h4 {
    font-size: 1.3rem;
    color: #0A2B3E;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

body.light-mode .sidebar-widget h4 {
    color: var(--text-heading);
}

.sidebar-widget p {
    color: #6b8899;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

body.light-mode .sidebar-widget p {
    color: var(--text-body);
}

/* Emergency Widget */
.emergency-widget {
    background: linear-gradient(135deg, #0A2B3E, #1a4a6e);
    color: #ffffff;
    text-align: center;
    transition: background 0.4s ease;
}

body.light-mode .emergency-widget {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
}

.emergency-widget h4 {
    color: #ffffff;
    font-size: 1.1rem;
}

.emergency-call {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.emergency-call i {
    color: #1D9E75;
    transition: color 0.4s ease;
}

body.light-mode .emergency-call i {
    color: #FFB300;
}

.emergency-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1D9E75;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

body.light-mode .emergency-number {
    color: #FFB300;
}

.emergency-number:hover {
    color: #5DCAA5;
}

body.light-mode .emergency-number:hover {
    color: #FFC947;
}

.emergency-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Quick Contacts */
.quick-contacts {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.quick-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2f0ea;
    color: #1a2e3d;
    font-size: 0.95rem;
    transition: all 0.4s ease;
}

body.light-mode .quick-contacts li {
    border-bottom-color: var(--card-border);
    color: var(--text-light);
}

.quick-contacts li:last-child {
    border-bottom: none;
}

.quick-contacts li i {
    color: #1D9E75;
    margin-top: 2px;
    flex-shrink: 0;
    transition: color 0.4s ease;
}

body.light-mode .quick-contacts li i {
    color: var(--secondary-teal);
}

/* Specialty Links */
.specialty-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialty-links li {
    margin-bottom: 12px;
}

.specialty-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f7fbf9;
    border: 1px solid #e2f0ea;
    border-radius: 10px;
    color: #1a2e3d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

body.light-mode .specialty-links li a {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--card-border);
    color: var(--text-light);
}

.specialty-links li a:hover {
    background: #E1F5EE;
    border-color: #1D9E75;
    color: #0F6E56;
    transform: translateX(5px);
}

body.light-mode .specialty-links li a:hover {
    background: rgba(30, 136, 229, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.specialty-links li a i {
    color: #1D9E75;
    font-size: 1.1rem;
    transition: color 0.4s ease;
}

body.light-mode .specialty-links li a i {
    color: var(--secondary-teal);
}

/* ── WORKING HOURS SECTION ───────────────────────────────── */
.kausalya-hours-section {
    padding: 80px 0;
    background: #ffffff;
    width: 100%;
    transition: background-color 0.4s ease;
}

body.light-mode .kausalya-hours-section {
    background: var(--bg-deep);
}

.kausalya-hours-section .kausalya-container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 24px !important;
}

.kausalya-hours-section .section-title {
    font-size: 2.5rem;
    color: #0A2B3E;
    margin-bottom: 50px;
    transition: color 0.4s ease;
}

body.light-mode .kausalya-hours-section .section-title {
    color: var(--text-heading);
}

.hours-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.working-hours-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e2f0ea;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

body.light-mode .working-hours-table {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.working-hours-table thead {
    background: #0A2B3E;
    color: #ffffff;
    transition: background 0.4s ease;
}

body.light-mode .working-hours-table thead {
    background: var(--primary-blue);
}

.working-hours-table th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.working-hours-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2f0ea;
    color: #1a2e3d;
    transition: all 0.4s ease;
}

body.light-mode .working-hours-table td {
    border-bottom-color: var(--card-border);
    color: var(--text-light);
}

.working-hours-table tbody tr:hover {
    background: #f7fbf9;
}

body.light-mode .working-hours-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.working-hours-table tbody tr:last-child td {
    border-bottom: none;
}

.emergency-row {
    background: rgba(29, 158, 117, 0.05);
    transition: background 0.4s ease;
}

body.light-mode .emergency-row {
    background: rgba(0, 168, 168, 0.08);
}

.emergency-row td {
    color: #0F6E56;
    font-weight: 600;
    transition: color 0.4s ease;
}

body.light-mode .emergency-row td {
    color: var(--secondary-teal);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .kausalya-appointment-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .booking-form-col {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .kausalya-appointment-hero {
        padding: 80px 0 60px;
    }
    
    .kausalya-appointment-hero .hero-title {
        font-size: 2rem;
    }
    
    .kausalya-booking-section {
        padding: 60px 0;
    }
    
    .booking-form-col {
        padding: 25px;
    }
    
    .sidebar-widget {
        padding: 25px;
    }
    
    .emergency-number {
        font-size: 1.5rem;
    }
    
    .kausalya-hours-section {
        padding: 60px 0;
    }
    
    .working-hours-table th,
    .working-hours-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .kausalya-appointment-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .booking-form-col {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .booking-form-col form input,
    .booking-form-col form select,
    .booking-form-col form textarea {
        padding: 12px 15px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* ── UTILITY CLASSES ─────────────────────────────────────── */
.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}
