html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =================================================================== */
/* Body Layout & Background                                            */
/* =================================================================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=2029&auto-format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

main {
    flex-grow: 1;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

/* =================================================================== */
/* Text Styling for Readability                                        */
/* =================================================================== */

/* Styles for text directly on the dark background (Hero section, titles) */
.hero-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =================================================================== */
/* Muted Card Styling                                                  */
/* =================================================================== */

/* --- THIS IS THE NEW STYLE FOR THE FEATURE BOXES --- */
.feature-box {
    /* A semi-transparent dark background */
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle light border */
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%; /* Ensures boxes in a row are equal height */
}

/* This rule ensures text inside the feature cards is light and readable */
.feature-box h3, .feature-box p, .feature-box a {
    color: #ced4da; /* A softer, light grey for better readability */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Add a subtle shadow */
}

.feature-box a {
    font-weight: bold; /* Make links stand out */
}

/* =================================================================== */
/* Form Page Styling                                                   */
/* =================================================================== */

.form-page-container {
    color: #ced4da; /* Use the soft grey for all text inside */
    background-color: rgba(10, 10, 10, 0.6); /* Same as feature-box */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.form-page-container h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ensure muted text within the form is also legible */
.form-page-container .text-muted {
    color: #adb5bd !important; /* A slightly darker, but still light, grey */
}

