/* Clinic Core Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --clinical-teal: #0d9488;
    --teal-hover: #0f766e;
    --navy-dark: #0f172a;
    --bg-soft: #f8fafc;
    --text-main: #334155;
    --border-grey: #cbd5e1;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header UI */
header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo span {
    color: var(--clinical-teal);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--clinical-teal);
}

.btn-emergency {
    background: #ef4444;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
}

/* Hero Section */
.clinic-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?q=80&w=1000') no-repeat center center/cover;
    color: white;
    padding: 120px 6% 90px 6%;
}

.clinic-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    max-width: 750px;
    line-height: 1.2;
}

.clinic-hero p {
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 20px 0 30px 0;
}

.btn-teal {
    display: inline-block;
    background: var(--clinical-teal);
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-teal:hover {
    background: var(--teal-hover);
}

/* Department Grid Matrix */
.section-space {
    padding: 80px 6%;
}

.section-head {
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: 2.2rem;
    color: var(--navy-dark);
}

.medical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.medical-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: 0.3s;
}

.medical-card:hover {
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.08);
    border-color: var(--clinical-teal);
}

/* ---- NEW UPGRADATION: HIGH-END ENGINE FORM STYLING ---- */
.form-container {
    background: white;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    outline: none;
    background: #f8fafc;
    transition: all 0.3s ease;
}

/* Input Focus state upgrades */
.form-control:focus {
    border-color: var(--clinical-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

button.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--clinical-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

button.btn-submit:hover {
    background: var(--teal-hover);
}

/* Responsive adjustments for phones */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 12px;
    }
    .grid-2-form {
        grid-template-columns: 1fr;
    }
    .clinic-hero h1 {
        font-size: 2.2rem;
    }
}
