:root {
    --midnight-steel: #231F20;
    --flame-red: #C43C31;
    --sky-blue: #4C98D3;
    --steel-grey: #BDBDBD;
    --rusic-red: #7D261F;
    --flat-iron: #E29E98;
    --deep-ocean-blue: #2F6086;
    --clear-sky-blue: #A6CCE9;
    --midnight-blue: #19488D;
    --horizon-blue: #CCDEEA;
    --desert-sand: #ECE7DC;
    --cobalt-blue: #2365C6;
    --steel-blue: #729EBB;
    --stone: #BBB19B
}

/* General styling */

h1 {
    font-family: "Lato", sans-serif;
    font-size: 48px;
    font-weight: 700;
}

h2 {
    font-family: "Cabin", sans-serif;
    font-size: 32px;
    font-weight: 600;
}

h3 {
    font-family: "Cabin", sans-serif;
    font-size: 22px;
    font-weight: 600;
}

h4 {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

h5,
h6 {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

p,
label,
select,
li {
    font-family: "Cabin", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.container {
    margin-bottom: 10px;
}

input {
    background-color: var(--clear-sky-blue);
}

select {
    background-color: var(--clear-sky-blue);
}

button,
a.btn {
    background-color: var(--sky-blue);
    color: white;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--sky-blue);
}

button:hover {
    background-color: var(--cobalt-blue);
    border: 1px solid var(--cobalt-blue);
}

a.btn-edit {
    text-decoration: underline;
    cursor: pointer;
}

/* Pricing cards */
.card {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.card-title,
.payment-amount,
.card-text:first-of-type {
    text-align: center;
}

.card-text:not(:first-of-type) {
    text-align: left;
}

.card.selected {
    transform: scale(1.03);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
    border: 2px solid var(--sky-blue);
    position: relative;
    z-index: 10;
}

.card:not(.selected) {
    opacity: 0.5;
    filter: grayscale(30%);
}

.card:hover:not(.selected) {
    opacity: 0.9;
    filter: grayscale(10%);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.buttons button:active {
    transform: scale(0.97);
}

li {
    margin: 5px;
}

/* Source for breadcrumb styling: https://codepen.io/cassidoo/pen/wEXQaG */

.steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 250px;
    z-index: 2;
}

.step {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background: #fff;
    border: 2px solid #ACACA6;
    border-radius: 50%;
}

.step.complete {
    color: white;
    background: var(--clear-sky-blue);
    border: 2px solid var(--clear-sky-blue);
    border-radius: 50%;
}

.step.current {
    color: white;
    background: var(--midnight-blue);
    border: 2px solid var(--midnight-blue);
}

.step.incomplete {
    border: 2px solid var(--steel-grey);
    background: var(--steel-grey);
}

.line {
    left: 0px;
    position: relative;
    height: 50%;
}

.line-start {
    top: 12px;
    width: 100%;
    border-bottom: 2px solid var(--steel-grey);
    z-index: 0;
}

.line-partial {
    top: 14px;
    border-bottom: 2px solid var(--clear-sky-blue);
    z-index: 1;
}

.step-2 {
    width: 20%;
}

.step-3 {
    width: 30%;
}

.step-4 {
    width: 50%;
}

.step-5 {
    width: 60%;
}

.step-6 {
    width: 80%;
}

.line-complete {
    top: 12px;
    width: 100%;
    border-bottom: 2px solid var(--clear-sky-blue);
    z-index: 1;
}

.bg-lpSecondaryLightBlue {
    background-color: var(--horizon-blue);
}

.bg-lpPrimaryBlue {
    background-color: var(--sky-blue);
    color: white;
}

input[type=search] {
    border-radius: 5px;
    padding-left: 10px;
}

#search-button {
    border-radius: 0px 5px 5px 0px;
}

.input-group:focus-within {
    color: #212529;
    background-color: #fff;
    border-color: var(--horizon-blue);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%) !important;
    z-index: 3;
    border-radius: 5px;
}

.input-group .form-control:focus {
    box-shadow: none !important;
    border-style: hidden;
}

input[type="range"] {
    -webkit-appearance: none;
    /* Remove default appearance */
    appearance: none;
    /* Remove default appearance */
    width: 100%;
    /* Full-width */
    height: 8px;
    border-radius: 5px;
    background: transparent;
}

input[type=range]:active::-webkit-slider-thumb {
    background: var(--rusic-red);
    border: 5px solid var(--rusic-red);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: var(--rusic-red);
    border: 1px solid var(--rusic-red);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin: -6px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right,
        var(--sky-blue) 0%,
        var(--sky-blue) calc(var(--value, 0) * 1%),
        var(--clear-sky-blue) calc(var(--value, 0) * 1%),
        var(--clear-sky-blue) 100%);
    border-radius: 5px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: var(--clear-sky-blue);
    border-radius: 5px;
}

input[type=range]::-moz-range-progress {
    background: var(--sky-blue);
    height: 12px;
    border-radius: 5px;
}

input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rusic-red);
    cursor: pointer;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: var(--clear-sky-blue);
    border-radius: 5px;
}

input[type=range]::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rusic-red);
    cursor: pointer;
}

.radio-container {
    margin-left: 90px;
}

/* Custom CSS for radio buttons */
.form-check-input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid;
    border-color: var(--midnight-blue);
    border-radius: 50%;
    position: relative;
    margin-top: 0;
}

.form-check-input[type="radio"]:checked {
    border-color: var(--deep-ocean-blue);
}

.form-check-input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--deep-ocean-blue);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Custom CSS for check boxes */
.form-check-input:checked {
    background-color: var(--deep-ocean-blue);
    border-color: var(--deep-ocean-blue);
}

.form-check-input {
    border-width: 1px;
    border-color: var(--midnight-blue);
    transform: scale(1.4);
}

.custom-margin {
    margin-left: 5px;
}

.custom-margin-top {
    margin-top: -30px;
}

/* Custom CSS for file upload inputs */

.form-control[type=file] {
    background-color: var(--horizon-blue);
    border: var(--bs-border-width) solid var(--sky-blue);
}

.form-control[type=file]::file-selector-button {
    background-color: var(--sky-blue);
    color: white;
    padding: 0.5em;
}

.form-control[type=file]:hover::file-selector-button {
    color: black !important;
}

/* Change the background color of the dropdown options */
.dropdown-menu {
    background-color: var(--horizon-blue);
    width: 100%;
}

.dropdown-item:hover {
    background-color: var(--midnight-blue);
    color: white;
}

.deductible-option {
    max-width: 45%
}

.dropdown-item {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    min-height: 38px;
}

/* Custom CSS for radio buttons */
.radio-container .form-check {
    display: flex;
    align-items: center;
}

.radio-container label {
    padding-left: 10px;
    min-width: 120px;
}

.form-check-inline {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .mobile-padding {
        padding-left: 20px;
        padding-right: 20px;
    }

    .radio-container {
        flex-direction: column !important;
        margin-left: 50px !important;
        margin-right: 20px !important;
    }

    .form-check {
        margin-bottom: 0.5rem;
        /* Adjust margin between radio buttons */
    }

    .fixed-height {
        height: 20px;
        margin-bottom: 10px;
        margin-top: 0px;
    }

    .fixed-height-2 {
        height: 20px;
        margin-bottom: 4rem;
        margin-top: 10px;
    }

    .form-group {
        margin-bottom: 0;
    }

    .fixed-height:first-of-type {
        margin-top: 0;
    }

    .form-group label {
        margin-bottom: 0.0rem;
    }

    .form-group input {
        margin-bottom: 0;
    }

    #street-address {
        margin-bottom: 0.5rem;
    }

    #apt-number {
        margin-top: 1rem;
    }

    #state-check {
        margin-bottom: 3rem;
        margin-top: -1rem; 
    }

    #state-input {
        margin-bottom: -1.5rem;
    }

    #same-state-pulldown {
        margin-bottom: 4rem;
        margin-top: 5rem; 
        padding-top: 1.5rem;
    }

    #military-check {
        margin-top: 1rem;
    }

    .custom-state-garaged .custom-dropdown {
        margin-right: -1.5rem;
        width: 100% !important;
    }

    .dropdown-container {
        width: 100%; 
     }

    .dob-check {
        padding-bottom: 0.5rem;
    }

    .email-verify {
        margin-top: -2rem;
    }

    .email-input {
        margin-bottom: -2rem;
    }

    .email-instructions {
        margin-bottom: 2rem;
    }

    .custom-margin-top{
        margin-top: -2rem;
    }
}


.fixed-height {
    height: 40px;
}

.fixed-height-2 {
    height: 40px;
}

.coverage-red-line {
    height: 50%;
    border-bottom: 2px solid var(--flame-red);
}

.red-line {
    top: 12px;
    left: 0px;
    height: 50%;
    border-bottom: 2px solid var(--flame-red);
    align-self: center;
}

.option {
    background: var(--horizon-blue);
    min-width: 20%;
}

.btn-primary {
    background-color: var(--sky-blue);
    font-size: 14px;
    font-weight: 700;
    font-family: "Lato", sans-serif;
}

 .btn-secondary {
    font-size: 14px;
    font-weight: 700;
    font-family: "Lato", sans-serif;
}

.btn-check:hover {
    background: var(--horizon-blue);
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    border-color: var(--sky-blue);
    background-color: var(--sky-blue);
    color: white;
}

button:disabled {
    background: var(--steel-grey);
    border-color: var(--steel-grey);
}
button:disabled:hover {
    background: var(--steel-grey);
}

/* Card container */
#payment .row {
    display: flex;
    flex-wrap: wrap;
}

/* Card column */
#payment .col {
    display: flex;
    margin-bottom: 1.5rem;
}

/* Card styles */
#payment .card {
    background-color: var(--horizon-blue);
    border-color: var(--horizon-blue);
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#payment .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

#payment .card-title {
    margin-bottom: 0.75rem;
}

#payment .payment-amount {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

#payment .card-text {
    margin-bottom: 0.5rem;
}

#payment .card.selected {
    background-color: var(--sky-blue);
    border-color: var(--sky-blue);
    color: var(--lp-gray);
}

#payment .card.selected .text-body-secondary {
    color: var(--lp-gray) !important;
}

#payment .card.selected .card-text,
#payment .card.selected .card-title,
#payment .card.selected .payment-amount {
    color: white;
}

.info {
    background: var(--flame-red);
    border-color: var(--flame-red);
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 240px;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* move triangle in dropdown menu */
.custom-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown::after {
    margin-left: auto;
}

/* Prevent horizonal scrolling */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    overflow-y: scroll;
}

.table {
    padding: 10px;
    border-color: white;
}

th, td {
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.tiny-text {
    margin: 0;
    font-size: .75rem;
}

/* Prevent vertical scrollbar from appearing to eliminate shift of dropdown menu */
.custom-dropdown-menu {
    max-height: 200px; 
    overflow-y: auto;
}

.extra-info {
    padding: .5rem;
    margin-top: 4rem;
    border-radius: 10px;
    font-family: "Cabin", sans-serif;
}

.lp-development-warning {
    background-color: var(--flame-red);
    color: var(--desert-sand);
    padding: 10px;
    text-align: center;
}

.custom-state-garaged {
    margin-left: -1.5rem;
}

.dropdown-container {
    margin-bottom: 3rem;
}

.dob-check {
    margin-bottom: -0.25rem;
}

.code-validation {
  margin-top: 10%;
}

#code {
  border: var(--bs-border-width) solid var(--bs-border-color);
  width: 50%;
  padding: .375rem .75rem;
}

#code:focus {
  box-shadow: none !important;
  border-style: hidden;
}

#code:focus-within {
  background-color: #fff;
  border-color: var(--horizon-blue);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%) !important;
  z-index: 3;
}

.flash {
    animation: fadeInOut 3s linear 1 forwards;
    color: var(--flame-red);
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 0.75; }
    100% { opacity: 1; }
}

.input-required {
    border-color: var(--flame-red) !important;
}
