:root {
    --color-primary: #2c8ec2; /* Bright blue (focus/active color) */
    --color-dark: #1b243b; /* Deep navy (text/label color) */
    --color-bg: #f9fafb; /* Light input background */
    --color-border: #ccc; /* Default border */
    --color-placeholder: #aaa;
}

h1, h5 {
    color: var(--color-dark)
}

html {
  font-size: 14px;
}

@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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-logo {
    max-height: 140px;
    margin-left: 1rem;
}


.page-gradient-bg {
    background: linear-gradient(to right, var(--color-dark), var(--color-primary));
    min-height: 100vh;
    padding: 3rem 1rem;
}

.form-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    max-width: 1100px;
    margin: auto;
}

/* Override Bootstrap variable */
.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: color-mix(in srgb, var(--color-primary) 90%, black) !important;
        border-color: color-mix(in srgb, var(--color-primary) 90%, black) !important;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 20%, transparent);
    }

.form-button {
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: none;
    border: 1px solid var(--color-border);
    background-color: var(--bs-btn-bg); /* Fallback to Bootstrap btn color */
    /*color: var(--color-dark);*/
    transition: all 0.3s ease;
}

    .form-button:focus,
    .form-button:hover {
        border-color: var(--color-dark);
        background-color: var(--color-dark);
        color: #fff;
        outline: none;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 20%, transparent);
    }


/* Custom Header Styling */
.custom-header-bg {
    background-color: #f8f9fa; /* Light background for the header */
    border-bottom: 1px solid #dee2e6; /* Subtle border at the bottom */
}

.custom-logo-size {
    max-height: 50px; /* Adjust as needed */
}

.custom-header-text {
    color: #002D5A; /* Dark blue from Dowgate Wealth logo */
    font-weight: bold;
}

/* Custom Form Title and Subtitle */
.custom-form-title {
    color: #002D5A;
    font-size: 2.5rem; /* Larger font size */
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.custom-form-subtitle {
    color: #1167B1; /* Blue from Dowgate Wealth logo */
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Custom Text (like introductory paragraphs) */
.custom-text-muted {
    color: #6c757d; /* Standard Bootstrap muted text color, or adjust */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Custom Section Styling */
.custom-section-border {
    border: 1px solid #e9ecef; /* Light border around sections */
    border-radius: 0.25rem;
    background-color: #ffffff; /* White background for sections */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
}

.custom-section-header {
    color: #002D5A;
    font-size: 1.75rem;
    font-weight: bold;
    border-bottom: 2px solid #1167B1; /* Blue underline */
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.custom-section-description {
    color: #343a40;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Custom Labels and Form Controls */
.custom-label-text {
    font-weight: 600; /* Slightly bolder labels */
    color: #343a40; /* Darker text for labels */
}

.custom-form-control {
    border-color: #ced4da; /* Default Bootstrap border color, or slight variation */
    box-shadow: none; /* Remove default focus shadow if desired */
}

    .custom-form-control:focus {
        border-color: #80bdff; /* Bootstrap's focus color, or a custom one */
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Bootstrap's focus shadow, or a custom one */
    }

.custom-subsection-header {
    color: #1167B1; /* Use the blue for sub-headings */
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Custom Footer Styling */
.custom-footer-bg {
    background-color: #f8f9fa; /* Light background for footer */
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.85rem;
}

.custom-footer-text {
    padding: 10px 0;
}

/* ... (previous custom CSS from the last response) ... */

.custom-table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse; /* Ensure borders are clean */
}

    .custom-table th,
    .custom-table td {
        padding: 0.75rem;
        vertical-align: top;
        border: 1px solid #dee2e6;
    }

.custom-table-header {
    background-color: #f2f2f2; /* Light grey background for table headers */
    color: #343a40;
    font-weight: bold;
    text-align: left;
}

.custom-small-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.custom-signature-line {
    border-bottom: 1px solid #000; /* A line for signatures */
    border-top: none;
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0; /* Remove rounded corners */
}


/* === INPUTS === */
.form-control, .form-select {
    border-radius: 0;
    border: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--color-bg);
    transition: all 0.3s ease;
    box-shadow: none;
    color: var(--color-dark);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--color-primary);
        background-color: #fff;
        color: var(--color-dark);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 20%, transparent);
        outline: none;
    }

input::placeholder {
    color: var(--color-placeholder);
}

/* Ensure the selection container matches full height */
.select2-container--default .select2-selection--single {
    height: 100% !important;
    min-height: 3.15rem; /* Adjust to match your .form-control height */
    border-radius: 0;
    border: 1px solid var(--color-border);
    padding: 0.65rem 1rem;
    font-size: 1rem;
    background-color: var(--color-bg);
    transition: all 0.3s ease;
    box-shadow: none;
    display: flex;
    align-items: center;
}

/* Ensure the rendered text is vertically centered */
.select2-selection__rendered {
    padding-left: 0;
    margin-left: 0;
    color: var(--color-dark);
    line-height: normal;
}

/* Make sure the arrow is vertically centered too */
.select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 1rem;
}
/* === LABELS === */
.form-label {
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
    display: block;
}

/* === FORM ROW BLOCK (OPTIONAL) === */
.row.mb-3 {
    margin-bottom: 2rem !important;
}

/* === FORM SECTION BACKGROUND (OPTIONAL) === */
.form-section {
    padding: 2rem;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* === CHECKBOXES & RADIOS === */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.15rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    transition: all 0.2s ease;
    margin-top: 0.3rem;
    box-shadow: none;
}

    .form-check-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
        outline: none;
    }

    .form-check-input:checked {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
    }

    .form-check-input[type="radio"] {
        border-radius: 50%;
    }

.form-check-label {
    margin-left: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-check {
    margin-bottom: 1rem;
}



.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

.progressbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.progress {
    position: absolute;
    height: 4px;
    background-color: #007bff;
    top: 50%;
    left: 0;
    width: 0%;
    transition: 0.3s;
}

.progress-step {
    width: 20px;
    height: 20px;
    background-color: lightgray;
    border-radius: 50%;
    z-index: 1;
}

    .progress-step.active {
        background-color: #007bff;
    }
