/*
 * Main Stylesheet
 * Copyright (c) 2025 Matched Benefits
 */

/* ======= 1. Global Variables & Fonts ======= */
:root {
    --primary-blue: #005BDD; /* Main blue for headers and CTAs */
    --primary-dark-blue: #004ab3; /* Darker blue for accents/hovers */
    --accent-blue: #005BDD; /* Replaces old red for consistency */
    --accent-blue-dark: #004ab3; /* Replaces old red for consistency */
    --background-grey: #f0f2f5; /* Light grey page background */
    --text-color-dark: #212529; /* Dark text for light backgrounds */
    --text-color-light: #ffffff; /* White text for dark backgrounds */
    --border-color: #ced4da; /* Standard border color */
    --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 0.25rem;
    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

/* ======= 2. Base & Body Layout ======= */
html {
    height: 100%;
}

body {
    background-color: var(--background-grey);
    color: var(--text-color-dark);
    font-family: var(--font-primary), sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* ======= 3. Header ======= */
.site-header {
    background-color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.top-bar {
    background-color: var(--primary-dark-blue);
    color: var(--text-color-light);
    font-family: var(--font-display), sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.top-bar a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: #f1c40f;
}

.header-logo {
    max-width: 250px;
    height: auto;
}

/* ======= 4. Main Content & Single Column Layout ======= */
.content-block {
    margin-bottom: 2.5rem; /* Space between blocks */
}

.info-content-block {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.list-styled {
    list-style: none;
    padding-left: 0;
}

.list-styled li {
    font-size: 1.1rem;
    padding-left: 1.8em;
    text-indent: -1.8em;
    margin-bottom: 0.75rem;
}

.list-styled li::before {
    content: "✓";
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 0.7em;
}

/* ======= 5. Form Container ======= */
.form-container {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Important for border-radius */
    border: 1px solid var(--border-color);
}

.form-header {
    background-color: var(--accent-blue);
    position: relative;
    font-family: var(--font-display), sans-serif;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -19px; /* Controls how far down the arrow goes */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--accent-blue); /* Arrow color */
}

.form-body {
    background-color: #fdfdfd;
}

.form-check-input {
    border-color: black;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 0.75rem;
}

.form-control::placeholder {
    color: #6c757d;
}

.form-questions {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fff;
}

.form-questions-header {
    background-color: var(--primary-dark-blue);
    font-size: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.question-item {
    border-bottom: 1px solid #e9ecef;
}

.question-item:last-child {
    border-bottom: none;
}

.question-item label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.btn-submit {
    background-color: var(--accent-blue);
    color: var(--text-color-light);
    border-radius: var(--border-radius);
    padding: 0.85rem;
    border: none;
    transition: background-color 0.2s ease;
    font-family: var(--font-display), sans-serif;
}

.btn-submit:hover {
    background-color: var(--accent-blue-dark);
    color: var(--text-color-light);
}

/* ======= 6. Footer ======= */
.site-footer {
    background-color: #ffffff;
    color: var(--text-color-dark);
    padding-top: 30px;
    padding-bottom: 20px;
    border-top: 2px solid var(--border-color);
    flex-shrink: 0;
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 10px 25px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: var(--text-color-dark);
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Back to Top Button */
.back-to-top {
    text-align: center; /* Ensures the inline-flex button is centered */
}

#backToTopBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--accent-blue); /* Updated Color */
    color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#backToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: var(--accent-blue-dark); /* Updated Hover Color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

#backToTopBtn i {
    font-size: 1.5rem;
    line-height: 1;
}