/* --- Core Reset & Variable System --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0056b3;
    --primary-hover: #003d82;
    --accent: #00a8cc;
    --bg-light: #f4f7f9;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #596377;
    --border-color: #e2e8f0;
    --shadow: 0 8px 24px rgba(149, 157, 165, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* --- Top Info Bar --- */
.top-bar {
    background: #111827;
    color: #e5e7eb;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-iso {
    background: #059669;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* --- Navigation Header --- */
.main-header {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.logo small {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-admin {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
}

/* --- Hero Banner --- */
.hero-banner {
    background: linear-gradient(rgba(0, 43, 91, 0.82), rgba(0, 86, 179, 0.75)), 
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 90px 20px;
}

.hero-overlay h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 25px auto;
}

.btn-hero-action {
    display: inline-block;
    background: #ffffff;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-hero-action:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* --- Layout Container & Card Box --- */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.card-box {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 35px;
}

.section-title {
    color: var(--primary);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 25px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card.highlight {
    border-color: var(--accent);
    background-color: #f0fdfa;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* --- Appointment Form Styling --- */
.appointment-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* --- Alerts --- */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* --- Footer --- */
.main-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding-top: 40px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    display: flex;
    justify-content: space-between;
}

.footer-links ul { list-style: none; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .nav-container, .top-bar-container, .appointment-form .form-row, .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}


/* --- Receipt Styling --- */
.receipt-card {
    max-width: 600px;
    margin: 0 auto;
    border: 2px dashed #0056b3;
    padding: 30px;
}

.receipt-header {
    text-align: center;
}

.receipt-title {
    color: #059669;
    margin-top: 15px;
}

.receipt-table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
}

.receipt-table th, .receipt-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-print {
    margin-top: 15px;
    background-color: #059669;
}

.btn-back {
    display: inline-block;
    margin-top: 10px;
    color: #555;
    text-decoration: none;
}

/* --- Admin Table Styling --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.admin-table th {
    background-color: #f1f5f9;
    color: #1e293b;
}

.btn-view {
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Print Hide Rules */
@media print {
    header, footer, .btn-print, .btn-back, .top-bar {
        display: none !important;
    }
    .receipt-card {
        border: none;
        box-shadow: none;
    }
}

/* --- Header Watermark Styling --- */
.igims-header {
    position: relative;
    background: #ffffff;
    padding: 15px 0;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #c0392b;
}

.logo-box h1 {
    font-size: 1.8rem;
    color: #002b5b;
    margin: 0;
    font-weight: 700;
}

.logo-box small {
    color: #555;
    font-size: 0.8rem;
}

/* Watermark Background Graphic Effect */
.header-watermark-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 450px;
    height: 100%;
    /* Watermark sketch pattern image overlay */
    background: url('https://img.freepik.com/free-vector/hand-drawn-hospital-building_23-2148161942.jpg') no-repeat right center;
    background-size: contain;
    opacity: 0.12; /* Light watermark opacity */
    pointer-events: none;
    z-index: 1;
}

.utility-nav {
    font-size: 0.9rem;
    color: #333;
}

.utility-nav a {
    color: #002b5b;
    text-decoration: none;
    font-weight: 500;
}

.call-info {
    font-weight: 700;
    color: #c0392b;
}

/* --- Main Orange/Red Navigation Bar (IGIMS Style) --- */
.main-navbar {
    background: #d35400; /* Institutional Orange Banner Color */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 12px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.3s;
}

.nav-links li a:hover {
    background: #a04000;
}

.btn-admin-login {
    background: #7e22ce;
}

/* --- Hero Banner & Floating Cards --- */
.main-hero-slider {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-slide-content h2 {
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.floating-cards-container {
    max-width: 1100px;
    margin: -40px auto 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.action-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 4px solid #002b5b;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card a {
    display: block;
    padding: 20px 10px;
    text-decoration: none;
    color: #2c3e50;
}

.action-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

/* Border Accent Colors */
.color-1 { border-bottom-color: #2980b9; }
.color-1 i { color: #2980b9; }

.color-2 { border-bottom-color: #27ae60; }
.color-2 i { color: #27ae60; }

.color-3 { border-bottom-color: #f39c12; }
.color-3 i { color: #f39c12; }

.color-4 { border-bottom-color: #c0392b; }
.color-4 i { color: #c0392b; }

.color-5 { border-bottom-color: #8e44ad; }
.color-5 i { color: #8e44ad; }

.booking-page-container {
    padding: 50px 20px;
    background-color: #f4f7f6;
    min-height: 80vh;
}

.booking-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.booking-header {
    text-align: center;
    margin-bottom: 30px;
}

.booking-header h2 {
    color: #0d6efd;
    font-size: 28px;
    margin-bottom: 8px;
}

.booking-header p {
    color: #6c757d;
    font-size: 15px;
}

.form-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #0d6efd;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-top: 15px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0d6efd;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #0d6efd;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0b5ed7;
}

/* Navigation Bar Appointment Button */
.nav-btn {
    background-color: #ffffff;
    color: #e65100; /* Dark Orange color */
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.nav-btn:hover {
    background-color: #003366; /* Navy blue on hover */
    color: #ffffff;
}

/* Main Footer Base */
.main-footer {
    background-color: #fff8f0; /* Soft warm background matching IGIMS design */
    color: #333333;
    font-family: Arial, sans-serif;
    border-top: 2px solid #e2e8f0;
    padding-top: 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr;
    gap: 30px;
    align-items: center;
}

/* Headings */
.footer-heading, .contact-title {
    color: #1a2b4c;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Quick Links Section */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quick-links-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-grid li {
    margin-bottom: 8px;
}

.quick-links-grid a {
    color: #444444;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.quick-links-grid a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Media Gallery Links */
.footer-col.media-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.media-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #d9534f;
    font-weight: 600;
    font-size: 15px;
}

.media-link .icon-circle {
    width: 40px;
    height: 40px;
    background-color: #e05d38;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.media-link:hover span:last-child {
    text-decoration: underline;
}

/* Contact Section */
.contact-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
}

.phone-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-icon {
    font-size: 28px;
    color: #1a2b4c;
}

.main-phone {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #1a2b4c;
}

.sub-phones {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Visitors & Last Updated Strip */
.footer-meta-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 15px 20px;
    border-top: 1px solid #eadace;
    font-size: 13px;
    font-weight: bold;
    color: #1a2b4c;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-boxes span {
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 2px 6px;
    margin: 0 1px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background-color: #f0e6dc;
    border-top: 1px solid #e0d5c8;
    font-size: 12px;
    color: #555555;
}

.footer-bottom p {
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .footer-meta-strip {
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Banner Image Styling */
.banner-logo-container {
    max-width: 750px;
    width: 100%;
}

.header-banner-img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

/* Header Container Layout */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
}

/* Navigation Appointment Button */
.nav-btn-booking {
    background-color: #e63946;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.nav-btn-booking:hover {
    background-color: #d62828;
}

/* Header Background with Banner Color Matching */
.igims-header {
    background: linear-gradient(135deg, #020024 0%, #080036 35%, #2a0845 70%, #0a0118 100%);
    width: 100%;
    border-bottom: 3px solid #ffcc00; /* Yellow border matching the logo text */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: transparent; /* White remove kar ke transparent kiya */
}

/* Banner Image Adjustment */
.banner-logo-container {
    max-width: 700px;
    width: 100%;
}

.header-banner-img {
    width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    display: block;
}

/* Right Text & Links on Dark Background */
.header-right-tools .utility-nav {
    color: #ffffff;
    font-size: 14px;
}

.header-right-tools .utility-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header-right-tools .utility-nav a:hover {
    color: #ffcc00;
}

.header-right-tools .call-info {
    color: #ffcc00;
    font-weight: bold;
    margin-left: 5px;
}


/* Global Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

/* Booking Page Container */
.booking-page-container {
    padding: 40px 20px;
    min-height: calc(100vh - 180px);
    background-color: #f8fafc;
}

.booking-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.booking-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 18px;
    margin-bottom: 26px;
}

.booking-header h2 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    color: #0d1b2a;
}

.booking-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.96rem;
}

/* Form Sections & Grid */
.form-section {
    margin-bottom: 28px;
}

.form-section h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #0d1b2a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 i {
    color: #0ea5e9;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.94rem;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.submit-btn {
    width: 100%;
    padding: 13px 20px;
    background-color: #0d1b2a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #1b365d;
}

@media (max-width: 600px) {
    .booking-wrapper {
        padding: 22px 18px;
    }
}

.hospital-seal {
    width: 140px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hospital-seal img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.seal-placeholder {
    width: 130px;
    height: 130px;
    border: 2px dashed #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e3a8a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 8px;
    box-sizing: border-box;
}