/* ==========================================================
   FEX Quote Shared CSS
   Used by:
     - Input quote form
     - Results / requote page
   ========================================================== */

/* ==========================================================
   PAGE BACKGROUND
   ========================================================== */
html, body {
    background:
        linear-gradient(rgba(15,81,142,.06), rgba(15,81,142,.06)),
        url('https://fexquotes.com/img/bg2026.png');
    background-repeat: repeat;
    background-position: right top;
    background-attachment: scroll;
}

/* ==========================================================
   SHARED FORM CONTROLS
   ========================================================== */
.form-control-sm {
    height: 34px;
    font-size: .875rem;
}

label {
    font-weight: 600;
    color: #495057;
}

label.small {
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 1.0rem;
}

.form-control:hover {
    border-color: #0d6efd;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
}

.btn-primary {
    border-radius: 6px;
    font-weight: 600;
}

/* ==========================================================
   SHARED RADIO BUTTON STYLING
   ========================================================== */
.custom-control-label-sm {
    height: auto;
    line-height: 1.2;
}

.custom-control-label::before {
    width: 1rem;
    height: 1rem;
    border: 1px solid #6c757d;
    border-radius: 50%;
    background: #fff;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #7c8c9b;
    border-color: #6c757d;
    box-shadow: inset 0 0 0 2px #fff;
}

.custom-control-label::after,
.custom-control-input:checked ~ .custom-control-label::after {
    background-image: none !important;
}

/* ==========================================================
   INPUT FORM PAGE
   ========================================================== */
.toolbar-divider {
    height: 3px;
    background: #913a5a;
    margin-bottom: 42px !important;
}

.quote-wrapper {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: 760px;
    margin: 40px auto;
    background: #f2f2f2;
    padding: 28px 32px;
    border-radius: 10px;
    border: 1px solid #206eb2;
    position: relative;
    overflow: hidden;
}

.quote-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #206eb2;
}

.quote_form-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f2937;
}

.btn-submit {
    height: 42px;
    font-size: 1rem;
}

.logo {
    color: #0f518e;
    --logo-accent: #af0e4c;
}

.dob-or {
    padding-bottom: 7px;
    color: #6c757d;
    font-weight: 700;
    font-size: .85rem;
}

.dob-or span {
    display: inline-block;
    padding: 0 4px;
}

.radio-block {
    border: 1px solid #CED4DA;
    border-radius: 6px;
    padding: 5px 10px 4px;
    background: #FFF;
}

.radio-block > label {
    margin-bottom: 3px;
    line-height: 1.5;
    margin-left: -2px;
}

.radio-block .custom-control {
    padding-left: 1.15rem;
}

.radio-block .custom-control-inline {
    margin-bottom: 0;
}

.radio-block .custom-control-label {
    font-size: .92rem;
}

.radio-block .custom-control-label::before,
.radio-block .custom-control-label::after {
    width: .85rem;
    height: .85rem;
    top: .18rem;
    left: -1.05rem;
}

.radio-block .custom-control-label::before {
    border-width: 1px;
}

.radio-block .custom-control-input:checked ~ .custom-control-label::before {
    box-shadow: inset 0 0 0 1.5px #fff;
}

/* ==========================================================
   HELP TIP / POPOVER
   ========================================================== */
.help-tip {
    cursor: pointer;
    color: #8c98a5 !important;
    transition: all .15s ease;
}

.help-tip:hover {
    color: #206eb2 !important;
    transform: scale(1.08);
}

/* Danger variant of the help-tip: stands out as caution without red alarm */
.warn-tip {
    color: #d9822b !important;
}

.warn-tip:hover {
    color: #b86a1c !important;
}

.tooltip {
    font-size: .80rem;
}

.tooltip-inner {
    max-width: 260px;
    padding: 8px 12px;
    background: #206eb2;
    color: #fff;
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.bs-tooltip-right .arrow::before { border-right-color: #206eb2; }
.bs-tooltip-left .arrow::before { border-left-color: #206eb2; }
.bs-tooltip-top .arrow::before { border-top-color: #206eb2; }
.bs-tooltip-bottom .arrow::before { border-bottom-color: #206eb2; }

/* ==========================================================
   AMOUNT INPUT / CUSTOM AMOUNT BUTTON
   ========================================================== */
.amount-wrap {
    display: flex;
    align-items: center;
}

.amount-wrap select {
    flex: 1;
}

.amount-custom-btn {
    margin-left: 8px;
    border: 0;
    background: transparent;
    color: #8c98a5;
    cursor: pointer;
    padding: 3px 5px;
}

.amount-custom-btn:hover {
    color: #206eb2;
}

.amount-switch-link {
    display: inline-block;
    margin-top: 5px;
    color: #206eb2;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.amount-switch-link:hover {
    color: #0f518e;
    text-decoration: underline;
}

/* ==========================================================
   RESULTS PAGE - TIP BUTTON
   ========================================================== */
.native-tip-btn {
    width: 22px;
    height: 22px;
    background-color: #007bff;
    color: #ffffff !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: transform 0.15s ease-in-out;
    flex-shrink: 0;
    user-select: none;
    line-height: 1;
}

.native-tip-btn:hover {
    transform: scale(1.15);
    background-color: #0056b3;
    text-decoration: none;
}

.tip-spacer {
    width: 22px;
    display: inline-block;
    flex-shrink: 0;
}

/* ==========================================================
   RESULTS PAGE - TOP BANNER / REQUOTE PANEL
   ========================================================== */
.quote-results-banner {
    border-top: 3px solid #206eb2 !important;
    border-radius: 10px;
}

.quote-results-banner .row {
    align-items: flex-start;
}

.quote-count-badge {
    font-size: .78rem;
    padding: .4rem .65rem;
    color: #495057;
    border: 1px solid #dbe3ec;
}

.quote-panel {
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #ffffff;
}

.quote-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f518e;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: .5rem;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem 1.25rem;
}

.scenario-item {
    display: flex;
    align-items: center;
    font-size: .9rem;
    color: #344054;
    font-weight: 600;
}

.scenario-icon {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: #206eb2;
}

.quote-panel-edit label {
    font-size: .72rem;
}

.quote-panel-edit .form-group {
    margin-bottom: .75rem;
}

.quote-panel-edit .form-control-sm,
.quote-panel-edit .btn-sm,
.quote-panel-edit .input-group-sm .form-control {
    height: 31px;
    font-size: .82rem;
}

.quote-panel-edit .custom-control-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}

.quote-panel-edit .custom-control-label {
    line-height: 1rem;
    padding-top: 1px;
}

.quote-panel-edit .custom-control-label::before,
.quote-panel-edit .custom-control-label::after {
    top: .05rem;
}

.fex-results-container {
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 1.5rem auto 0;
}

/* Inline result count beside the Current Quote panel title */
.quote-count-inline {
    font-weight: 600;
    color: #6c757d;
}
