/* ========================
   FeelCovered.com CSS Base (Optimized)
   ======================== */

/* ---------- Root Variables ---------- */
:root {
    --color-primary: #1F3B4D;
    --color-secondary: #3C7A6F;
    --color-accent: #F5A623;
    --color-accent-hover: #D48806;
    --color-bg: #FAFAF7;
    --color-text: #4A4A4A;
    --color-heading: #222222;

    --space-1: 1rem;
    --space-2: 2rem;
    --space-3: 3rem;
    --radius: 4px;
}

/* ---------- Global Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* ---------- Layout Containers ---------- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--space-1);
}

.section {
    padding: var(--space-2) var(--space-1);
}

.section.hero {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

/* ---------- Header & Footer ---------- */
.header,
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 1.5rem var(--space-1);
}

.footer {
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- Headings ---------- */
h1, h2, h3 {
    color: var(--color-heading);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* ---------- Buttons ---------- */
.button,
.btn {
    background-color: var(--color-accent);
    color: white;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover,
.btn:hover {
    background-color: var(--color-accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--color-accent);
    border: 2px solid #ddd;
}

/* ---------- Forms ---------- */
form {
    margin-bottom: var(--space-1);
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: var(--space-1);
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius);
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-heading);
}

/* ---------- Cards ---------- */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(31, 59, 77, 0.08);
    margin-bottom: var(--space-2);
}

/* ---------- Utilities ---------- */
.bg-light {
    background-color: var(--color-bg);
}

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

.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

.mt-1 {
    margin-top: var(--space-1);
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

/* ---------- Hero Image ---------- */
.hero-image {
    max-width: 90%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

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

/* ---------- Widgets ---------- */
.user-widget .btn {
    font-weight: 500;
    border-radius: var(--radius);
}

.trusted-form-badge {
    width: 180px;
    margin-inline-start: 40px;
}

.vertical-align-top {
    align-items: flex-start;
}

/* ---------- Navigation ---------- */
.nav-link-hover {
    position: relative;
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
    width: 100%;
}

.nav-link-hover:hover {
    color: #ffc107 !important;
}

.sidebar {
    width: 220px;
    background: #f8f9fa;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 70px;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
}

.sidebar .dropdown-menu {
    position: static;
    float: none;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: none;
}

.sidebar .dropdown-item {
    padding: 0.3rem 1rem;
    color: #666;
    text-decoration: none;
}

.sidebar .nav-link:hover,
.sidebar .dropdown-item:hover {
    background-color: #e9ecef;
    color: #000;
}

/* ---------- Media Queries ---------- */
@media (min-width: 768px) {
    .section {
        padding: var(--space-3) var(--space-2);
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }

    .section.hero {
        padding-top: var(--space-3);
        padding-bottom: var(--space-3);
    }
}

@media (max-width: 768px) {
    .hero-image {
        margin-top: var(--space-1);
    }
}

@media (max-width: 576px) {
    .hide-mobile {
        display: none !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .user-widget {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 991px) {
    .info-box {
        order: -1;
        margin-bottom: var(--space-2);
    }
}

/* FeelCovered.com - Bootstrap Form Styling Alignment */

.form-control,
.form-select {
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2); /* accent */
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.form-check-input {
    border-color: #ccc;
    margin-top: 0.3rem;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-check-label {
    margin-left: 0.5rem;
    color: var(--color-text);
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-heading);
}

button[type="submit"].btn-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f5a623, #f38700);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #212529 !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    border-color: #ced4da !important;
}

input.form-control,
select.form-select {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
}

input.form-control:focus,
select.form-select:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25);
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #1F3B4D;
    }
}

section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Reduce card spacing and center everything tighter */
.card {
    margin-bottom: 1rem !important;
}

/* Optional: force hero row to be tighter */
.hero-row {
    min-height: auto !important;
    align-items: start !important;
}

.card {
    border-radius: 8px;
    border: none;
    background: white;
}

section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.row.g-4 > .col-md-6 {
    display: flex;
    flex-direction: column;
}

.hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.list-group-item {
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
}

.card.equal-height {
    min-height: 480px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

section.container {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

body.framed-layout {
    background-color: #f5f5f5; /* fallback if needed */
}

.framed-background {
    display: flex;
    justify-content: center;
    background-color: #f5f5f5; /* Left/Right framing color */
    padding-left: 0;
    padding-right: 0;
}

.framed-content {
    background-color: white;
    max-width: 1140px;
    width: 100%;
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: 0 0 0 100vmax #f5f5f5;
    clip-path: inset(0 -100vmax);
}

.framed-content.container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


.overlay {
    background: rgba(0, 0, 0, 0);
}

.hero-overlay h1,
.hero-overlay p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.75);
}

.hero-overlay .overlay {
    padding: 2.25rem 1rem;
    min-height: 340px;
}


@media (min-width: 768px) {
    .hero-overlay .overlay {
        min-height: 420px;
        padding: 4rem 2rem;
    }
}

.hero-overlay h1 {
    font-size: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7),
    0 0 2px rgba(0, 0, 0, 0.6);
    color: whitesmoke;
}

@media (min-width: 768px) {
    .hero-overlay h1 {
        font-size: 2.75rem;
    }
}

.btn-warning {
    box-shadow: 0 0 0.3rem rgba(255, 255, 255, 0.4);
}

.hero-text-box {
    background: rgba(0, 0, 0, 0.55);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.hero-text-box h1,
.hero-text-box p {
    margin-bottom: 0.5rem;
    text-shadow: none; /* Let background handle contrast now */
}

.section-heading.with-accent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

.section-heading .brand {
    color: var(--color-accent);
}

.card.highlight {
    background: linear-gradient(to bottom right, #fffdf8, #fff);
    border: 1px solid #f5a62333;
    /*border: 1px solid #f5e8d0;*/
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.1);
    background: #fffdf7;
    /*box-shadow: 0 2px 10px rgba(245, 166, 35, 0.08);*/
    border-radius: 10px;
}

.testimonials {
    background: linear-gradient(to bottom right, #fffdf8, #fff);
    background: #fffdf7;
    /*border: 1px solid #f5a62333;*/
    border: 1px solid #f5e8d0;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.1);
    /*box-shadow: 0 2px 10px rgba(245, 166, 35, 0.08);*/
    border-radius: 10px;
}

.list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: #fff9f1;
    border-left-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

.trust-bar {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    text-shadow: none;
}
