/* Modern React-like UI System for Hospital */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3399ff;
    --secondary: #6366f1;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Modern Glassmorphism Cards */
.modern-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card.elevated {
    box-shadow: var(--shadow-md);
}

.modern-card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Modern Buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    height: 44px;
    text-decoration: none;
    font-family: inherit;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-btn:active::before {
    width: 300px;
    height: 300px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 102, 255, 0.39);
}

.modern-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
    transform: translateY(-2px);
}

.modern-btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.modern-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.modern-btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid transparent;
}

.modern-btn-ghost:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary);
}

/* Modern Inputs */
.modern-input-group {
    position: relative;
    margin-bottom: 24px;
}

.modern-input {
    width: 100%;
    padding: 16px 16px 16px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.modern-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: white;
}

.modern-input::placeholder {
    color: var(--text-muted);
}

.modern-input textarea {
    resize: vertical;
    min-height: 120px;
}

.modern-input select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.modern-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Modern Navigation */
.modern-nav {
    background: var(--surface);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

.modern-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.modern-nav-brand {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.modern-nav-item {
    position: relative;
}

.modern-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    position: relative;
}

.modern-nav-link:hover {
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
}

.modern-nav-link.active {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

/* Mobile Bottom Navigation */
.modern-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.modern-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-fast);
    border-radius: var(--radius);
}

.modern-bottom-nav-item.active {
    color: var(--primary);
}

.modern-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

/* Modern Container */
.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Modern Grid */
.modern-grid {
    display: grid;
    gap: 24px;
}

.modern-grid-1 { grid-template-columns: 1fr; }
.modern-grid-2 { grid-template-columns: repeat(2, 1fr); }
.modern-grid-3 { grid-template-columns: repeat(3, 1fr); }
.modern-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Modern Typography */
.modern-headline {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modern-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modern-subtitle {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.modern-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
}

.modern-body-small {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Modern Hero Section */
.modern-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: var(--radius-xl);
    padding: 80px 48px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.modern-hero-content {
    position: relative;
    z-index: 1;
}

/* Modern Stats Cards */
.modern-stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modern-stat-card-content {
    position: relative;
    z-index: 1;
}

.modern-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Modern List */
.modern-list {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.modern-list-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
    cursor: pointer;
    background: var(--surface);
}

.modern-list-item:last-child {
    border-bottom: none;
}

.modern-list-item:hover {
    background: rgba(0, 102, 255, 0.04);
}

.modern-list-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 20px;
}

.modern-list-item-content {
    flex: 1;
}

.modern-list-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modern-list-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Modern Badge */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
}

/* Modern Divider */
.modern-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
    border: none;
}

/* Modern Snackbar */
.modern-snackbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.modern-snackbar.show {
    transform: translateX(-50%) translateY(0);
}

.modern-snackbar.success {
    background: var(--success);
}

.modern-snackbar.error {
    background: var(--error);
}

/* Modern FAB */
.modern-fab {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 999;
    transition: var(--transition);
}

.modern-fab:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.1);
}

.modern-fab:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.modern-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.modern-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-nav-menu {
        display: none;
    }
    
    .modern-bottom-nav {
        display: flex;
    }
    
    .modern-container {
        padding: 24px 16px;
        padding-bottom: 88px;
    }
    
    .modern-grid-2,
    .modern-grid-3,
    .modern-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .modern-headline {
        font-size: 32px;
    }
    
    .modern-title {
        font-size: 24px;
    }
    
    .modern-subtitle {
        font-size: 18px;
    }
    
    .modern-nav-content {
        height: 64px;
        padding: 0 16px;
    }
    
    .modern-fab {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    .modern-hero {
        padding: 48px 24px;
        border-radius: var(--radius-lg);
    }
    
    .modern-stat-card {
        padding: 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .modern-grid-3,
    .modern-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.modern-text-center { text-align: center; }
.modern-text-right { text-align: right; }
.modern-mt-1 { margin-top: 8px; }
.modern-mt-2 { margin-top: 16px; }
.modern-mt-3 { margin-top: 24px; }
.modern-mt-4 { margin-top: 32px; }
.modern-mb-1 { margin-bottom: 8px; }
.modern-mb-2 { margin-bottom: 16px; }
.modern-mb-3 { margin-bottom: 24px; }
.modern-mb-4 { margin-bottom: 32px; }
.modern-p-1 { padding: 8px; }
.modern-p-2 { padding: 16px; }
.modern-p-3 { padding: 24px; }
.modern-p-4 { padding: 32px; }

/* Laravel paginator (resources/views/vendor/pagination/tailwind.blade.php) — compact, no Tailwind build */
.laravel-pagination {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.laravel-pagination__mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

@media (min-width: 640px) {
    .laravel-pagination__mobile {
        display: none;
    }
}

.laravel-pagination__desktop {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

@media (min-width: 640px) {
    .laravel-pagination__desktop {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
}

.laravel-pagination__summary {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.laravel-pagination__summary strong {
    color: var(--text-primary);
    font-weight: 600;
}

.laravel-pagination__controls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.laravel-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    min-height: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.laravel-pagination__btn:hover:not(.laravel-pagination__btn--disabled) {
    background: rgba(0, 102, 255, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.laravel-pagination__btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--text-muted);
}

.laravel-pagination__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.laravel-pagination__icon:hover:not(.laravel-pagination__icon--disabled) {
    background: rgba(0, 102, 255, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.laravel-pagination__icon--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--text-muted);
}

.laravel-pagination__icon svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

.laravel-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.laravel-pagination__page:hover {
    background: rgba(0, 102, 255, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.laravel-pagination__page--current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: default;
}

.laravel-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    font-size: 12px;
    color: var(--text-muted);
    user-select: none;
}

/* --------------------------------------------------------------------------
   Public home: responsive rhythm, cards, hero (body.home-page from layout)
   -------------------------------------------------------------------------- */
body.home-page {
    --home-section-y: clamp(2.75rem, 7vw, 6.25rem);
    --home-section-x: clamp(1rem, 4vw, 1.5rem);
    --home-card-radius: clamp(1rem, 2.2vw, 1.5rem);
    --home-card-pad: clamp(1.25rem, 3.5vw, 2.5rem);
    --home-shadow-card: 0 4px 24px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --home-shadow-card-hover: 0 18px 48px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.06);
    background-color: #f1f5f9;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(102, 126, 234, 0.16), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 40%, rgba(192, 132, 252, 0.08), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 40%, #e2e8f0 100%);
}

@media (min-width: 900px) {
    body.home-page {
        background-attachment: fixed;
    }
}

/* Full-bleed home content: nested .modern-container inside sections handles width */
body.home-page main > .modern-container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    body.home-page main > .modern-container {
        padding-bottom: 88px;
    }
}

body.home-page .home-section {
    padding: var(--home-section-y) var(--home-section-x);
}

body.home-page .home-heading {
    font-size: clamp(1.65rem, 3.2vw + 0.85rem, 3rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

body.home-page .home-heading--light {
    color: #fff;
}

body.home-page .home-lead {
    font-size: clamp(1rem, 1.5vw + 0.65rem, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

body.home-page .home-lead--light {
    color: rgba(255, 255, 255, 0.92);
}

body.home-page .home-heading-wrap {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

body.home-page .home-heading-wrap--fancy {
    position: relative;
}

body.home-page .home-heading-wrap--fancy .home-heading {
    background: linear-gradient(135deg, #0f172a 0%, var(--primary) 45%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.home-page .home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.09), rgba(99, 102, 241, 0.09));
    border: 1px solid rgba(0, 102, 255, 0.14);
    box-shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.35);
}

body.home-page .home-eyebrow i {
    font-size: 0.65rem;
    opacity: 0.9;
}

body.home-page .home-eyebrow--on-dark {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.2);
}

/* Floating trust strip under hero */
body.home-page .home-trust-strip {
    position: relative;
    z-index: 5;
    margin-top: clamp(-2.25rem, -5vw, -1.25rem);
    padding: 0 var(--home-section-x);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

body.home-page .home-trust-strip__panel {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem clamp(1.25rem, 4vw, 2.5rem);
    padding: clamp(0.9rem, 2.2vw, 1.15rem) clamp(1rem, 3vw, 1.75rem);
    border-radius: var(--home-card-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 22px 50px -18px rgba(79, 70, 229, 0.22),
        0 8px 20px -12px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.home-page .home-trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

body.home-page .home-trust-strip__item i {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 16px -4px rgba(99, 102, 241, 0.45);
}

/* Premium hero: animated mesh + depth */
@keyframes homeHeroGradientShift {
    0%, 100% { background-position: 0% 42%; }
    50% { background-position: 100% 58%; }
}

@keyframes homeHeroShimmer {
    0% { opacity: 0.35; transform: translateX(-15%) scale(1); }
    50% { opacity: 0.55; transform: translateX(10%) scale(1.02); }
    100% { opacity: 0.35; transform: translateX(-15%) scale(1); }
}

body.home-page .home-hero--premium {
    background: linear-gradient(125deg, #667eea 0%, #764ba2 22%, #a855f7 48%, #6366f1 72%, #4338ca 100%);
    background-size: 280% 280%;
    animation: homeHeroGradientShift 22s ease-in-out infinite;
}

body.home-page .home-hero--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 70% at 15% 20%, rgba(255, 255, 255, 0.22), transparent 52%),
        radial-gradient(ellipse 70% 60% at 88% 75%, rgba(192, 132, 252, 0.35), transparent 48%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15, 23, 42, 0.2), transparent 55%);
}

body.home-page .home-hero--premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 90%;
    height: 140%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.2), transparent);
    animation: homeHeroShimmer 12s ease-in-out infinite;
}

body.home-page .home-hero--premium .hero-pattern {
    z-index: 1;
    opacity: 0.35;
    mix-blend-mode: overlay;
}

body.home-page .home-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: clamp(0.78rem, 1.8vw, 0.9rem);
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.home-page .home-hero__kicker i {
    opacity: 0.95;
}

body.home-page .home-hero--premium .home-hero__title {
    text-shadow:
        0 2px 16px rgba(0, 0, 0, 0.18),
        0 12px 48px rgba(67, 56, 202, 0.35);
}

body.home-page .home-hero--premium .home-hero__orbit {
    box-shadow:
        0 0 80px -20px rgba(255, 255, 255, 0.45),
        0 24px 48px -16px rgba(15, 23, 42, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Accent bar on feature cards (home) */
body.home-page .home-section:not(.home-emergency) .modern-card.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;
}

@media (hover: hover) and (pointer: fine) {
    body.home-page .home-section:not(.home-emergency) .modern-card.feature-card:hover::after {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .home-hero--premium {
        animation: none;
        background-size: 100% 100%;
    }

    body.home-page .home-hero--premium::after {
        animation: none;
        opacity: 0.25;
    }
}

body.home-page .home-cta-final {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.home-page .home-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.2), transparent 55%);
    z-index: 0;
}

body.home-page .home-cta-final .cta-pattern {
    z-index: 1;
}

body.home-page .home-cta-final .modern-container {
    position: relative;
    z-index: 2;
}

/* Hero grid pattern + motion (shared with subpage heroes) */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes gambo-hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes gambo-hero-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-float {
    animation: gambo-hero-float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: gambo-hero-pulse 3s ease-in-out infinite;
}

/* Inner pages: same hero band as Departments / Services */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-bg, #667eea) 0%, var(--primary, #0066ff) 100%);
    border-radius: var(--radius-xl, 24px);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0.65;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: var(--hero-text, #ffffff);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
}

.page-hero-title {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--hero-text, #ffffff);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.65rem, 1.2rem);
    color: rgba(255, 255, 255, 0.94);
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    line-height: 1.65;
    font-weight: 400;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.page-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s;
}

.page-hero-breadcrumb a:hover {
    color: #fff;
}

.page-hero-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 280px;
        border-radius: var(--radius-lg, 16px);
    }

    .page-hero-content {
        padding: 2rem 1.25rem 2.25rem;
    }
}

/* Hero */
body.home-page .home-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow:
        0 28px 80px -28px rgba(49, 46, 129, 0.55),
        0 12px 40px -16px rgba(15, 23, 42, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 992px) {
    body.home-page .home-hero {
        min-height: min(92vh, 900px);
    }
}

body.home-page .home-hero .home-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 5rem) var(--home-section-x) clamp(2rem, 4vw, 3rem);
}

body.home-page .home-hero .modern-grid-2 {
    gap: clamp(1.75rem, 4vw, 3.75rem);
    align-items: center;
}

body.home-page .home-hero__title {
    color: #fff;
    font-size: clamp(1.85rem, 4vw + 1rem, 3.85rem);
    line-height: 1.12;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.22);
}

body.home-page .home-hero__lead {
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1rem, 1.2vw + 0.75rem, 1.375rem);
    line-height: 1.7;
    margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

body.home-page .home-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 480px) {
    body.home-page .home-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
    }
}

body.home-page .home-hero__actions .modern-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}

@media (min-width: 480px) {
    body.home-page .home-hero__actions .modern-btn {
        width: auto;
        min-width: min(100%, 200px);
    }
}

body.home-page .home-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 520px) {
    body.home-page .home-hero__meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.25rem 2rem;
    }
}

body.home-page .home-hero__visual {
    text-align: center;
    margin-top: 0.5rem;
}

body.home-page .home-hero__orbit-wrap {
    position: relative;
    display: inline-block;
    max-width: min(92vw, 420px);
    margin: 0 auto;
}

body.home-page .home-hero__orbit {
    width: min(85vw, 340px);
    height: min(85vw, 340px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.28);
}

body.home-page .home-hero__orbit-inner {
    width: 72%;
    height: 72%;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

body.home-page .home-hero__orbit-inner img {
    max-width: min(45vw, 180px);
    max-height: min(45vw, 180px);
    width: auto;
    height: auto;
    object-fit: contain;
}

body.home-page .home-hero__orbit-inner .fa-hospital {
    font-size: clamp(3.5rem, 14vw, 6rem);
    color: rgba(255, 255, 255, 0.92);
}

body.home-page .home-hero__pulse-ring {
    display: none;
}

@media (min-width: 480px) {
    body.home-page .home-hero__pulse-ring {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(110vw, 460px);
        height: min(110vw, 460px);
        max-width: 460px;
        max-height: 460px;
        border: 2px solid rgba(255, 255, 255, 0.18);
        border-radius: 50%;
        z-index: -1;
        pointer-events: none;
    }
}

body.home-page .home-hero__scroll {
    display: none;
}

@media (min-width: 768px) {
    body.home-page .home-hero__scroll {
        display: block;
        position: absolute;
        bottom: clamp(1.25rem, 3vw, 2.5rem);
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }
}

/* Cards on home (exclude emergency glass tiles) */
body.home-page .home-section:not(.home-emergency) .modern-card.feature-card {
    border-radius: var(--home-card-radius);
    padding: var(--home-card-pad);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--home-shadow-card);
}

@media (hover: hover) and (pointer: fine) {
    body.home-page .home-section:not(.home-emergency) .modern-card.feature-card:hover {
        box-shadow: var(--home-shadow-card-hover);
        transform: translateY(-6px);
        border-color: rgba(0, 102, 255, 0.22);
    }
}

body.home-page .home-emergency a.modern-card.feature-card {
    border-radius: var(--home-card-radius);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

@media (hover: hover) and (pointer: fine) {
    body.home-page .home-emergency a.modern-card.feature-card:hover {
        background: rgba(255, 255, 255, 0.16) !important;
        transform: translateY(-4px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    }
}

body.home-page a.department-card {
    border-radius: var(--home-card-radius);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--home-shadow-card);
    background: #fff;
}

body.home-page a.department-card img,
body.home-page a.department-card .dept-card-placeholder {
    height: clamp(160px, 38vw, 240px);
}

@media (hover: hover) and (pointer: fine) {
    body.home-page a.department-card:hover {
        box-shadow: var(--home-shadow-card-hover);
        transform: translateY(-8px);
    }
}

body.home-page .doctor-card.modern-card {
    border-radius: var(--home-card-radius);
    box-shadow: var(--home-shadow-card);
}

body.home-page .testimonial-card {
    border-radius: var(--home-card-radius) !important;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--home-shadow-card) !important;
}

@media (hover: hover) and (pointer: fine) {
    body.home-page .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--home-shadow-card-hover) !important;
    }
}

body.home-page .stat-counter {
    font-size: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 767px) {
    body.home-page .modern-grid {
        gap: clamp(0.875rem, 2.5vw, 1.25rem);
    }
}

body.home-page .statistics-section {
    padding-top: clamp(2.25rem, 6vw, 4rem);
    padding-bottom: clamp(2.25rem, 6vw, 4rem);
}

body.home-page .doctor-avatar {
    width: clamp(96px, 26vw, 120px);
    height: clamp(96px, 26vw, 120px);
    margin-bottom: 16px;
}

/* Softer icon tiles on "Why choose us" (mobile) */
@media (max-width: 480px) {
    body.home-page .home-section:not(.home-emergency) .modern-card.feature-card [style*="100px"] {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
}

/* ========== Hospital public pages: Contact & Appointments ========== */
.hp-page {
    --hp-x: clamp(0.75rem, 4vw, 1.5rem);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hp-page {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
    }
}

.hp-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: var(--hp-x);
    padding-right: var(--hp-x);
    box-sizing: border-box;
}

.hp-section {
    padding-top: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(2rem, 6vw, 4rem);
    background: var(--background);
}

.hp-hero-split {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 48%, #faf5ff 100%);
}

.hp-hero-split::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(58%, 720px);
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.07) 0%, rgba(99, 102, 241, 0.09) 100%);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.hp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: var(--hp-x);
    padding-right: var(--hp-x);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

@media (min-width: 960px) {
    .hp-hero-inner {
        grid-template-columns: 1.12fr 1fr;
    }
}

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.28);
}

.hp-badge-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.hp-hero-title {
    font-size: clamp(1.85rem, 3.5vw + 0.65rem, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hp-hero-title-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero-lead {
    font-size: clamp(1rem, 1.2vw + 0.75rem, 1.125rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 36rem;
    margin-bottom: 1.25rem;
}

.hp-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.25rem;
}

.hp-hero-stat-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hp-hero-stat-lbl {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.hp-hero-visual {
    position: relative;
    min-height: 240px;
}

@media (min-width: 960px) {
    .hp-hero-visual {
        min-height: 380px;
    }
}

.hp-hero-icons-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.hp-hero-floater {
    position: absolute;
    width: clamp(4rem, 17vw, 7rem);
    height: clamp(4rem, 17vw, 7rem);
    background: var(--surface);
    border-radius: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.35rem, 4.5vw, 2.35rem);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.hp-hero-floater--1 { top: 6%; left: 4%; }
.hp-hero-floater--2 { top: 38%; right: 10%; }
.hp-hero-floater--3 { bottom: 10%; left: 16%; }
.hp-hero-floater--4 { top: 14%; right: 28%; }

.hp-section-head {
    text-align: center;
    margin-bottom: clamp(1.35rem, 3.5vw, 2.25rem);
}

.hp-section-title {
    font-size: clamp(1.45rem, 2.5vw + 0.65rem, 2.15rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.hp-section-sub {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

.hp-form-shell {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hp-appt-form-shell {
    width: 100%;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.hp-surface-card {
    background: var(--surface);
    border-radius: clamp(1rem, 2.5vw, 1.75rem);
    padding: clamp(1.1rem, 3.75vw, 2.15rem);
    box-shadow: 0 4px 32px rgba(15, 23, 42, 0.07);
    border: 1px solid var(--border);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.hp-surface-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hp-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 560px) {
    .hp-field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(1rem, 2.75vw, 1.35rem);
}

.hp-info-card {
    background: var(--surface);
    border-radius: clamp(0.95rem, 2vw, 1.4rem);
    padding: clamp(1.15rem, 3vw, 1.75rem);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .hp-info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    }
}

.hp-info-card-icon {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(99, 102, 241, 0.12));
    margin-bottom: 0.9rem;
}

.hp-info-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.hp-info-body {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.hp-info-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.hp-info-body a:hover {
    text-decoration: underline;
}

.hp-emergency {
    color: #ef4444;
    font-weight: 600;
}

.hp-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 0.65rem;
    max-width: 56rem;
    margin: 0 auto;
}

.hp-hour-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.8125rem;
}

.hp-hour-pill strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.hp-hour-time {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.hp-hour-pill.is-closed .hp-hour-time {
    color: #ef4444;
}

.hp-map-box {
    width: 100%;
    max-width: 100%;
    height: clamp(220px, 52vw, 480px);
    border-radius: clamp(1rem, 2.5vw, 1.75rem);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.hp-map-box iframe,
.hp-map-box #google-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hp-alert-success {
    padding: 1rem 1.1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.hp-btn-gradient {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.hp-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 102, 255, 0.38);
}

.hp-stack-lg {
    margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
}

.hp-appt-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hp-appt-feature {
    display: flex;
    gap: 0.9rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.04);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.hp-appt-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.hp-appt-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.hp-appt-feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hp-appt-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.hp-appt-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-appt-cta--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
}

.hp-appt-cta--secondary {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

@media (hover: hover) and (pointer: fine) {
    .hp-appt-cta:hover {
        transform: translateY(-2px);
    }
}

.hp-form-header-icon {
    width: clamp(3.5rem, 12vw, 4.5rem);
    height: clamp(3.5rem, 12vw, 4.5rem);
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(99, 102, 241, 0.14));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    color: var(--primary);
    border: 2px solid rgba(0, 102, 255, 0.2);
}

.hp-form-header-title {
    text-align: center;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-form-header-sub {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.35rem;
    line-height: 1.55;
}

.hp-info-box {
    background: rgba(0, 102, 255, 0.04);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
}

.hp-info-box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.98rem;
}

.hp-info-box-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}
