/* MX-QR Custom Styles */

/* Base font size improvements - much larger */
html {
    font-size: 18px !important;
}

body {
    font-size: 18px !important;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hero section typography - much larger */
.hero-section h1.display-4 {
    font-size: 4.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

.hero-section .lead {
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* Section headings - much larger */
.display-5 {
    font-size: 3.5rem !important;
    font-weight: 600 !important;
}

.display-4 {
    font-size: 4.5rem !important;
    font-weight: 700 !important;
}

h2.display-5 {
    font-size: 3.5rem !important;
    font-weight: 600 !important;
}

/* Lead text - much larger */
.lead {
    font-size: 1.6rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
}

p.lead {
    font-size: 1.6rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Step numbers in how it works - larger */
.step-number {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
}

/* How it works text */
.col-md-4 h5 {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
}

.col-md-4 p {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
}

.list-unstyled li {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
}

/* Navigation improvements */
.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700;
}

.nav-link {
    font-size: 1.1rem !important;
    font-weight: 500;
}

/* Footer improvements */
footer h5, footer h6 {
    font-size: 1.2rem !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p, footer li {
    font-size: 1rem !important;
    line-height: 1.6;
}

footer a {
    font-size: 1rem !important;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive font scaling */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 2.5rem !important;
    }

    .hero-section .lead {
        font-size: 1.25rem !important;
    }

    .lead {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px !important;
    }

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

    .display-5 {
        font-size: 1.8rem !important;
    }

    .hero-section .lead {
        font-size: 1.1rem !important;
    }

    .btn-lg {
        font-size: 1.1rem !important;
        padding: 0.75rem 1.5rem;
    }
}

/* Additional spacing improvements */
section {
    padding: 4rem 0 !important;
}

.hero-section {
    padding: 5rem 0 !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Feature icons */
.feature-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.5rem !important;
}

.feature-icon i {
    font-size: 1.5rem !important;
}

/* Improved readability - much larger */
p {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

/* All text elements */
* {
    font-size: inherit !important;
}

/* Specific overrides for common elements */
span, div, li, td, th {
    font-size: inherit !important;
}

/* Small text elements */
small, .small {
    font-size: 1rem !important;
}

/* Badge improvements */
.badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem;
}

/* Container spacing */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Flash Messages - Bootstrap styled alerts */
.message {
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 1.1rem !important;
    font-weight: 500;
}

.message.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.message.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.message.warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.message.info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Flash message icons */
.message::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

.message.success::before {
    content: "\f00c"; /* check icon */
    color: #198754;
}

.message.error::before {
    content: "\f06a"; /* exclamation-circle icon */
    color: #dc3545;
}

.message.warning::before {
    content: "\f071"; /* exclamation-triangle icon */
    color: #fd7e14;
}

.message.info::before {
    content: "\f05a"; /* info-circle icon */
    color: #0dcaf0;
}
