/* Custom CSS for Budget Bath Solutions */
/* GitHub-Inspired Modern Professional Design */

/* Root Variables - Modern Professional Color Palette */
:root {
    /* Modern Base Colors - Softer, more refined */
    --primary-color: #1e293b; /* Slate 800 - modern dark blue-gray for headers */
    --secondary-color: #475569; /* Slate 600 - medium gray for secondary text */
    --accent-color: #3b82f6; /* Blue 500 - professional, modern accent */
    --accent-hover: #2563eb; /* Blue 600 - darker blue for hover states */
    
    /* Status Colors - Modern, less saturated */
    --success-color: #3b82f6; /* Blue 500 - modern blue for success */
    --warning-color: #d97706; /* Amber 600 - warm, professional orange */
    --danger-color: #dc2626; /* Red 600 - modern red */
    --info-color: #0ea5e9; /* Sky 500 - bright but professional blue */
    
    /* Text Colors */
    --text-primary: #1e293b; /* Main text - slate 800 */
    --text-secondary: #475569; /* Secondary text - slate 600 */
    --text-tertiary: #64748b; /* Tertiary text - slate 500 */
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-canvas: #f8fafc; /* Slate 50 - modern light background */
    --bg-inset: #f1f5f9; /* Slate 100 - slightly darker */
    --bg-subtle: #f8fafc; /* Subtle background */
    --bg-overlay: rgba(15, 23, 42, 0.5); /* Modern dark overlay */
    
    /* Border Colors */
    --border-default: #cbd5e1; /* Slate 300 - softer borders */
    --border-muted: #e2e8f0; /* Slate 200 - muted borders */
    --border-accent: #3b82f6; /* Accent border - blue */
    
    /* Navbar Colors - Modern gradient */
    --navbar-bg: linear-gradient(135deg, #1e293b 0%, #334155 100%); /* Slate gradient */
    --navbar-bg-solid: #1e293b; /* Fallback solid color */
    
    /* Shadow System */
    --shadow-sm: 0 1px 0 rgba(31, 35, 40, 0.04);
    --shadow-md: 0 3px 6px rgba(140, 149, 159, 0.15);
    --shadow-lg: 0 8px 24px rgba(140, 149, 159, 0.2);
    --shadow-xl: 0 12px 28px rgba(140, 149, 159, 0.25);
    --shadow-inset: inset 0 1px 0 rgba(208, 215, 222, 0.2);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.1s cubic-bezier(0.3, 0, 0.5, 1);
    --transition-base: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    --transition-slow: 0.3s cubic-bezier(0.3, 0, 0.5, 1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

/* Modern Container with Better Spacing */
.container-xxl {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container-xxl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1200px) {
    .container-xxl {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* GitHub-like Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 24px;
    margin-bottom: 16px;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; border-bottom: 1px solid var(--border-muted); padding-bottom: 8px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; color: var(--text-secondary); }

p {
    margin-top: 0;
    margin-bottom: 16px;
}

a {
    color: var(--info-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
}

/* Navbar - Modern Professional Theme */
.navbar {
    background: var(--navbar-bg) !important; /* Modern gradient */
    background-color: var(--navbar-bg-solid) !important; /* Fallback */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 14px 0;
    transition: all var(--transition-base);
}

.navbar-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white) !important;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Logo styling */
.logo-img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .logo-img {
    max-height: 32px;
}

/* Hide phone numbers from website */
.phone-number {
    display: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 16px !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white) !important;
    text-decoration: none;
}

.nav-link.active {
    color: var(--text-white) !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Book Appointment CTA Button */
.btn-appointment {
    background-color: var(--accent-color) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(31, 35, 40, 0.15);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-appointment:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-appointment.active {
    background-color: var(--accent-hover) !important;
}

/* Login Button - Distinct style from primary CTA */
.btn-login {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: var(--text-white) !important;
    text-decoration: none;
}

.btn-login.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-white) !important;
}

/* Mobile-first: Base button styles for mobile */
.btn-appointment,
.btn-login {
    display: block;
    width: 100%;
    margin-top: 8px;
}

/* Tablet and up: Inline button */
@media (min-width: 992px) {
    .btn-appointment,
    .btn-login {
        display: inline-block;
        width: auto;
        margin-top: 0;
    }
}

/* Hero Section - Modern Clean Design with Animations */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    border-bottom: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Decorative shapes in hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

/* Hero content with fade-in animation */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--text-white);
    border-bottom: none;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-section .badge {
    animation: fadeInDown 0.8s ease-out 0.1s both;
}

.hero-section .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards - GitHub Style */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    margin-bottom: 16px;
}

.card:hover {
    border-color: var(--border-muted);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-default);
    padding: 16px;
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

.card-footer {
    background-color: var(--bg-canvas);
    border-top: 1px solid var(--border-default);
    padding: 16px;
}

/* Buttons - GitHub Style */
.btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: var(--text-white);
    background-color: var(--accent-color);
    border-color: rgba(31, 35, 40, 0.15);
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: rgba(31, 35, 40, 0.15);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    border-color: rgba(31, 35, 40, 0.15);
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: rgba(31, 35, 40, 0.15);
}

.btn-success {
    color: var(--text-white);
    background-color: var(--success-color);
    border-color: rgba(31, 35, 40, 0.15);
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.btn-success:hover {
    background-color: #116329;
}

.btn-outline-light {
    color: var(--text-white);
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--text-white);
}

.btn-light {
    color: var(--text-primary);
    background-color: var(--bg-white);
    border-color: rgba(31, 35, 40, 0.15);
}

.btn-light:hover {
    background-color: var(--bg-canvas);
}

.btn-lg {
    padding: 10px 20px;
    font-size: 16px;
}

.btn-sm {
    padding: 3px 12px;
    font-size: 12px;
}

/* Footer - GitHub Style */
footer {
    background-color: var(--bg-canvas);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-default);
    padding: 40px 0 24px;
    margin-top: 40px;
}

footer h5 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 14px;
}

footer a:hover {
    color: var(--info-color);
    text-decoration: underline;
}

footer .text-muted {
    color: var(--text-tertiary) !important;
    font-size: 12px;
}

/* Page Header - Modern Style */
.page-header {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-canvas) 100%);
    border-bottom: 1px solid var(--border-default);
    padding: 40px 0;
    margin-bottom: 24px;
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: 8px;
    border-bottom: none;
}

.page-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Form Controls - GitHub Style */
.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 5px 12px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
    background-color: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    outline: none;
    box-shadow: var(--shadow-inset);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--info-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-text {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

/* Input Groups */
.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    flex: 1;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-default);
    border-left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Badge Styles - GitHub Inspired */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: 12px;
    border: 1px solid transparent;
}

.badge-primary {
    color: var(--text-white);
    background-color: var(--accent-color);
}

.badge-success {
    color: var(--text-white);
    background-color: var(--success-color);
}

.badge-danger {
    color: var(--text-white);
    background-color: var(--danger-color);
}

.badge-warning {
    color: #24292f;
    background-color: #d29922;
}

.badge-info {
    color: var(--text-white);
    background-color: var(--info-color);
}

.badge-secondary {
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    border-color: var(--border-default);
}

/* Alert Styles - GitHub Inspired */
.alert {
    position: relative;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.alert-success {
    color: #1a7f37;
    background-color: #dafbe1;
    border-color: rgba(26, 127, 55, 0.2);
}

.alert-danger {
    color: #cf222e;
    background-color: #ffebe9;
    border-color: rgba(207, 34, 46, 0.2);
}

.alert-warning {
    color: #9a6700;
    background-color: #fff8c5;
    border-color: rgba(154, 103, 0, 0.2);
}

.alert-info {
    color: #0969da;
    background-color: #ddf4ff;
    border-color: rgba(9, 105, 218, 0.2);
}

/* Table Styles - GitHub Inspired */
.table {
    width: 100%;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-collapse: collapse;
}

.table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-muted);
}

.table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-muted);
}

.table tbody tr:hover {
    background-color: var(--bg-canvas);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-bordered {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-canvas);
}

/* Dropdown Menu - GitHub Style */
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
    margin: 2px 0 0;
    font-size: 14px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 16px;
    clear: both;
    font-weight: 400;
    color: var(--text-primary);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    color: var(--text-white);
    background-color: var(--info-color);
    text-decoration: none;
}

/* Modal - GitHub Style */
.modal-content {
    background-color: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-default);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-default);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Thank You Popup */
.thank-you-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1100;
    text-align: center;
    min-width: 300px;
    max-width: 90vw;
    animation: fadeIn 0.3s ease-in;
    border: 1px solid var(--border-default);
}

.thank-you-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 1090;
}

.thank-you-popup .icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 16px;
}

.thank-you-popup h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 20px;
}

.thank-you-popup p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Utility Classes */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-tertiary) !important;
}

.text-white {
    color: var(--text-white) !important;
}

.bg-primary {
    background-color: var(--accent-color) !important;
    color: var(--text-white) !important;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

.bg-light {
    background-color: var(--bg-canvas) !important;
}

.border-primary {
    border-color: var(--border-accent) !important;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--info-color);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Modern Scroll Bar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-muted);
}

/* ============================================
   MOBILE-FIRST RESPONSIVE STYLES
   Priority: Mobile Friendliness
   ============================================ */

/* Base mobile styles (320px and up) - DEFAULT */
body {
    font-size: 14px;
}

h1 {
    font-size: 24px;
    margin-top: 16px;
    margin-bottom: 12px;
}

h2 {
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 12px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

/* Mobile button sizes - increased touch targets */
.btn {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px; /* iOS recommended minimum */
}

.btn-lg {
    padding: 12px 20px;
    font-size: 16px;
    min-height: 48px;
    width: 100%;
    margin-bottom: 8px;
}

/* Mobile navigation */
.navbar {
    padding: 12px 0;
}

.nav-link {
    padding: 12px 16px !important;
    font-size: 16px; /* Larger for easier tapping */
}

/* Mobile card adjustments */
.card {
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}

.card-body {
    padding: 12px;
}

/* Mobile form improvements */
.form-control,
.form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 8px 12px;
    min-height: 44px;
}

.form-label {
    font-size: 14px;
}

/* Mobile table adjustments */
.table {
    font-size: 13px;
}

.table thead th,
.table tbody td {
    padding: 8px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile modal adjustments */
.modal-content {
    margin: 16px;
}

.modal-body {
    padding: 16px;
}

/* Mobile hero section */
.hero-section {
    padding: 32px 0 !important;
    min-height: 500px !important;
}

.hero-section h1 {
    font-size: 2rem !important;
}

.hero-section p {
    font-size: 1rem !important;
}

.hero-section::before,
.hero-section::after {
    width: 300px;
    height: 300px;
}

/* Mobile page header */
.page-header {
    padding: 24px 0;
}

/* Mobile popup adjustments */
.thank-you-popup {
    min-width: 280px;
    padding: 20px;
}

.thank-you-popup h2 {
    font-size: 18px;
}

/* Mobile container padding */
.container {
    padding-left: 16px;
    padding-right: 16px;
}

/* Mobile-friendly dropdown */
.dropdown-menu {
    min-width: 100%;
    font-size: 16px;
}

.dropdown-item {
    padding: 12px 16px;
}

/* Stack buttons vertically on small screens */
.btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-group-mobile .btn {
    width: 100%;
}

/* Landscape phone optimization */
@media (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 24px 0 !important;
    }
    
    .navbar {
        padding: 8px 0;
    }
}

/* Small tablets (600px and up) */
@media (min-width: 600px) {
    .container {
        max-width: 540px;
    }
}

/* Tablets and small desktops (768px and up) */
@media (min-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        max-width: 720px;
    }
    
    h1 { 
        font-size: 40px;
        margin-top: 24px;
        margin-bottom: 16px;
    }
    
    h2 { 
        font-size: 28px;
        margin-top: 24px;
        margin-bottom: 16px;
    }
    
    h3 { 
        font-size: 22px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    /* Desktop button sizes */
    .btn {
        padding: 6px 16px;
        font-size: 14px;
        min-height: auto;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 16px;
        min-height: auto;
        width: auto;
        margin-bottom: 0;
    }
    
    /* Desktop navigation */
    .navbar {
        padding: 16px 0;
    }
    
    .nav-link {
        padding: 6px 16px !important;
        font-size: 14px;
    }
    
    /* Desktop card sizes */
    .card {
        margin-bottom: 16px;
        border-radius: var(--radius-md);
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Desktop form sizes */
    .form-control,
    .form-select {
        font-size: 14px;
        padding: 5px 12px;
        min-height: auto;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    /* Desktop table sizes */
    .table {
        font-size: 14px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px 16px;
    }
    
    /* Desktop modal */
    .modal-content {
        margin: 0;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    /* Desktop hero section */
    .hero-section {
        padding: 80px 0 !important;
        min-height: auto !important;
    }
    
    .hero-section h1 {
        font-size: 3rem !important;
    }
    
    .hero-section p {
        font-size: 1.25rem !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        width: 600px;
        height: 600px;
    }
    
    /* Desktop page header */
    .page-header {
        padding: 40px 0;
    }
    
    /* Desktop popup */
    .thank-you-popup {
        min-width: 300px;
        padding: 24px;
    }
    
    .thank-you-popup h2 {
        font-size: 20px;
    }
    
    /* Desktop container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Desktop dropdown */
    .dropdown-menu {
        min-width: 160px;
        font-size: 14px;
    }
    
    .dropdown-item {
        padding: 6px 16px;
    }
    
    /* Inline buttons on desktop */
    .btn-group-mobile {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-group-mobile .btn {
        width: auto;
    }
}

/* Desktops (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* Large desktops (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1140px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .badge {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modal fixes to ensure proper functionality */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

/* Ensure modal body can scroll if content is long */
/* 200px accounts for: modal header (~60px) + modal footer (~60px) + padding/margins (~80px) */
.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Ensure modals are centered properly */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Fix for multiple modals */
.modal-backdrop.show {
    opacity: 0.5;
}

/* Ensure modal animations work smoothly */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(-50px);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Modern Card Styles - Subtle, Professional Colors */
/* Replaces bright Bootstrap colors with sophisticated tones */

/* Modern Card Headers - Subtle Backgrounds */
.card-header-modern-primary {
    background: linear-gradient(135deg, #f6f8fa 0%, #e8eaed 100%);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
}

.card-header-modern-success {
    background: linear-gradient(135deg, #f0f9f4 0%, #e6f4ea 100%);
    color: #0d5028;
    border-bottom: 2px solid var(--success-color);
    font-weight: 600;
}

.card-header-modern-info {
    background: linear-gradient(135deg, #f0f6fc 0%, #e7f0f8 100%);
    color: #0550ae;
    border-bottom: 2px solid var(--info-color);
    font-weight: 600;
}

.card-header-modern-warning {
    background: linear-gradient(135deg, #fef9e6 0%, #fcf3d9 100%);
    color: #744c00;
    border-bottom: 2px solid var(--warning-color);
    font-weight: 600;
}

.card-header-modern-accent {
    background: linear-gradient(135deg, #fef0f2 0%, #fce8eb 100%);
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
}

/* Modern Stat Cards - Subtle, Elegant Style */
.stat-card-modern {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-left: 4px solid;
    transition: all var(--transition-base);
}

.stat-card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-modern.stat-primary {
    border-left-color: var(--accent-color);
}

.stat-card-modern.stat-primary .stat-icon {
    color: var(--accent-color);
    background-color: rgba(196, 30, 58, 0.08);
}

.stat-card-modern.stat-success {
    border-left-color: var(--success-color);
}

.stat-card-modern.stat-success .stat-icon {
    color: var(--success-color);
    background-color: rgba(26, 127, 55, 0.08);
}

.stat-card-modern.stat-info {
    border-left-color: var(--info-color);
}

.stat-card-modern.stat-info .stat-icon {
    color: var(--info-color);
    background-color: rgba(9, 105, 218, 0.08);
}

.stat-card-modern.stat-warning {
    border-left-color: var(--warning-color);
}

.stat-card-modern.stat-warning .stat-icon {
    color: var(--warning-color);
    background-color: rgba(154, 103, 0, 0.08);
}

.stat-card-modern .stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-card-modern .card-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card-modern h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    border-bottom: none;
}

/* Modern Gradient Cards - Subtle, Professional */
.stat-box-modern {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-box-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--info-color) 100%);
}

.stat-box-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-box-modern.variant-pink::before {
    background: linear-gradient(90deg, #ec4899 0%, #c026d3 100%);
}

.stat-box-modern.variant-blue::before {
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
}

.stat-box-modern.variant-green::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.stat-box-modern .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-box-modern .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Social Media Buttons - Modern Styling */
.btn-social-facebook {
    background-color: #385898;
    border-color: #385898;
    color: white;
}

.btn-social-facebook:hover {
    background-color: #2d4373;
    border-color: #2d4373;
    color: white;
}

.btn-social-whatsapp {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
}

.btn-social-whatsapp:hover {
    background-color: #0d6e63;
    border-color: #0d6e63;
    color: white;
}
