/* ==========================================================================
   Free Services Pages — Shared Styles
   Bootstrap 3.3.7 base + custom warm/friendly theme
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --fs-primary: #336699;
    --fs-primary-dark: #264d73;
    --fs-primary-light: #4a8ac4;
    --fs-accent: #e8f0f8;
    --fs-warm-bg: #f7f9fc;
    --fs-card-bg: #ffffff;
    --fs-text: #333333;
    --fs-text-muted: #666666;
    --fs-border: #e0e6ed;
    --fs-success: #5cb85c;
    --fs-radius: 12px;
    --fs-radius-sm: 8px;
    --fs-shadow: 0 2px 12px rgba(51, 102, 153, 0.08);
    --fs-shadow-hover: 0 4px 20px rgba(51, 102, 153, 0.15);
    --fs-transition: all 0.25s ease;
}

/* ---------- Base ---------- */
.fs-body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background: var(--fs-warm-bg);
    color: var(--fs-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Page Wrapper ---------- */
.fs-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

/* ---------- Logo ---------- */
.fs-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}
.fs-logo-wrap img,
.fs-logo-wrap svg {
    max-width: 220px;
    height: auto;
}

/* ---------- Header / LO Contact Bar ---------- */
.fs-header {
    background: var(--fs-card-bg);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    box-shadow: var(--fs-shadow);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.fs-header-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--fs-border);
}
.fs-header-info {
    flex: 1;
    min-width: 200px;
}
.fs-header-name-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 2px;
}
.fs-header-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-primary);
    margin: 0 0 2px;
}
.fs-header-license {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fs-primary-dark);
    background: var(--fs-accent);
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 700;
    white-space: nowrap;
}
.fs-header-title {
    font-size: 12px;
    color: var(--fs-text-muted);
    font-weight: 500;
    margin: 0 0 4px;
}
.fs-header-company {
    font-size: 12px;
    color: var(--fs-text-muted);
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.4;
}
.fs-header-company .sep { color: #c8d3e1; margin: 0 4px; font-weight: 400; }
.fs-header-contact {
    font-size: 13px;
    color: var(--fs-text-muted);
    margin: 0;
    line-height: 1.7;
}
.fs-header-contact a {
    color: var(--fs-primary);
    text-decoration: none;
}
.fs-header-contact a:hover {
    text-decoration: underline;
}
.fs-header-contact .fa {
    width: 18px;
    text-align: center;
    margin-right: 4px;
    color: var(--fs-primary-light);
}
.fs-header-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(51, 102, 153, 0.18);
    background: #f0f4f8;
    align-self: center;
}
.fs-header-logo {
    max-height: 80px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    align-self: center;
}
.fs-header-licenses {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.fs-header-contact .lbl {
    font-size: 10px;
    color: #98a2b3;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 1px;
}
.fs-mobile-only { display: none; }
@media (max-width: 600px) {
    .fs-mobile-only { display: inline; }
}

@media (max-width: 600px) {
    .fs-header {
        padding: 16px;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
    .fs-header-photo {
        width: 70px;
        height: 70px;
        order: 1;
    }
    .fs-header-logo {
        order: 2;
        max-height: 60px;
        max-width: 160px;
    }
    .fs-header-info {
        order: 3;
        flex-basis: 100%;
        min-width: 100%;
        text-align: center;
    }
    .fs-header > p,
    .fs-header > .fs-text-sm {
        order: 4;
        flex-basis: 100%;
        text-align: center;
    }
    .fs-header-name-row {
        justify-content: center;
    }
    .fs-header-contact {
        text-align: center;
    }
}

/* ---------- Cards ---------- */
.fs-card {
    background: var(--fs-card-bg);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    box-shadow: var(--fs-shadow);
    padding: 28px 24px;
    margin-bottom: 24px;
    transition: var(--fs-transition);
}
.fs-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fs-primary);
    margin: 0 0 6px;
    text-align: center;
}
.fs-card-subtitle {
    font-size: 14px;
    color: var(--fs-text-muted);
    text-align: center;
    margin: 0 0 20px;
}

/* ---------- Service Selection Cards ---------- */
.fs-service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.fs-service-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 2px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    transition: var(--fs-transition);
    background: var(--fs-card-bg);
}
.fs-service-item:hover {
    border-color: #4ade80;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.15);
    transform: translateY(-1px);
}
.fs-service-item.active {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}
.fs-service-item.active .fs-service-label strong {
    color: #15803d;
}
.fs-service-item input[type="checkbox"] {
    display: none;
}
.fs-service-item input[type="checkbox"]:checked + .fs-service-icon {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}
.fs-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fs-accent);
    color: var(--fs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 14px;
    transition: var(--fs-transition);
}
.fs-service-label {
    font-size: 15px;
    color: var(--fs-text);
    flex: 1;
    transition: var(--fs-transition);
}
.fs-service-desc {
    font-size: 12px;
    color: var(--fs-text-muted);
    margin-top: 2px;
}

/* ---------- Buttons ---------- */
.fs-btn {
    display: inline-block;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Open Sans', Arial, sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--fs-transition);
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
}
.fs-btn-primary {
    background: linear-gradient(135deg, var(--fs-primary), var(--fs-primary-dark));
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(51, 102, 153, 0.3);
}
.fs-btn-primary:hover,
.fs-btn-primary:focus {
    background: linear-gradient(135deg, var(--fs-primary-light), var(--fs-primary));
    box-shadow: 0 5px 16px rgba(51, 102, 153, 0.4);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.fs-btn-secondary {
    background: #ffffff;
    color: var(--fs-primary);
    border: 2px solid var(--fs-primary);
}
.fs-btn-secondary:hover {
    background: var(--fs-accent);
}
.fs-btn-block {
    display: block;
    width: 100%;
}
.fs-btn-wrap {
    text-align: center;
    margin-top: 20px;
}

/* ---------- Forms ---------- */
.fs-form-group {
    margin-bottom: 16px;
}
.fs-form-group label,
.fs-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fs-text);
    margin-bottom: 5px;
}
.fs-form-group .form-control,
.fs-input {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    padding: 10px 14px;
    height: 42px;
    line-height: 20px;
    width: 100%;
    transition: var(--fs-transition);
    box-sizing: border-box;
    -webkit-appearance: none;
}
.fs-form-group .form-control:focus,
.fs-input:focus {
    border-color: var(--fs-primary-light);
    box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.1);
    outline: none;
}
/* Selects share the 42px control height; the native arrow is replaced (appearance: none) by a chevron. */
.fs-form-group select.form-control {
    height: 42px;
    padding: 0 36px 0 14px;
    line-height: normal;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -moz-appearance: none;
    appearance: none;
}
.fs-form-group select.form-control::-ms-expand { display: none; }
.fs-form-group textarea.form-control {
    height: auto;
    line-height: 1.5;
}
.fs-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.fs-form-row > .fs-form-group {
    flex: 1;
    min-width: 120px;
}
.fs-form-inline-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fs-form-inline-group input {
    text-align: center;
}
.fs-form-hint {
    font-size: 12px;
    color: var(--fs-text-muted);
    margin-top: 4px;
}
.fs-required {
    color: #d9534f;
}
.fs-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
}
.fs-checkbox-wrap input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* ---------- Accordion / Collapsible Sections ---------- */
.fs-accordion .panel {
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm) !important;
    margin-bottom: 10px;
    box-shadow: none;
}
.fs-accordion .panel-heading {
    background: var(--fs-card-bg);
    border-radius: var(--fs-radius-sm) !important;
    padding: 0;
    border-bottom: none;
}
.fs-accordion .panel-heading a,
.fs-accordion .panel-heading a:hover,
.fs-accordion .panel-heading a:focus {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fs-primary);
    text-decoration: none;
    transition: var(--fs-transition);
}
.fs-accordion .panel-heading a .fa {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}
.fs-accordion .panel-heading a .fs-accordion-arrow {
    margin-left: auto;
    transition: transform 0.25s ease;
}
.fs-accordion .panel-heading a.collapsed .fs-accordion-arrow {
    transform: rotate(-90deg);
}
.fs-accordion .panel-body {
    padding: 18px 20px 24px;
    border-top: 1px solid var(--fs-border);
}
.fs-accordion .panel-heading a:hover {
    background: var(--fs-accent);
}

/* ---------- Confirmation / Success ---------- */
.fs-confirmation {
    text-align: center;
    padding: 40px 24px;
}
.fs-confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fs-success), #4cae4c);
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.fs-confirmation h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--fs-primary);
    margin: 0 0 10px;
}
.fs-confirmation p {
    font-size: 15px;
    color: var(--fs-text-muted);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 8px;
}
.fs-confirmation .fs-conf-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-primary);
}

/* ---------- Error Display ---------- */
/* .fs-errors is a transparent wrapper — DisplayErrors2 outputs Bootstrap
   .alert.alert-danger divs which already provide red box styling.
   Avoid double-red nesting by keeping this container neutral. */
.fs-errors {
    margin-bottom: 20px;
}
.fs-errors .alert {
    margin-bottom: 8px;
}
.fs-errors .alert:last-child {
    margin-bottom: 0;
}
.fs-errors ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

/* ---------- Section Divider ---------- */
.fs-divider {
    border: none;
    border-top: 1px solid var(--fs-border);
    margin: 24px 0;
}

/* ---------- Radio / Checkbox Options as Cards ---------- */
.fs-option-cards {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fs-option-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    transition: var(--fs-transition);
}
.fs-option-card:hover {
    border-color: var(--fs-primary-light);
    background: var(--fs-accent);
}
.fs-option-card input[type="radio"],
.fs-option-card input[type="checkbox"] {
    flex-shrink: 0;
}
.fs-option-card .fa {
    color: var(--fs-primary-light);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ---------- Footer ---------- */
.fs-footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}
.fs-footer a {
    color: var(--fs-primary);
    text-decoration: none;
}

/* ---------- Utility ---------- */
.fs-text-center { text-align: center; }
.fs-text-muted { color: var(--fs-text-muted); }
.fs-text-primary { color: var(--fs-primary); }
.fs-text-success { color: #16a34a; }

/* ---------- Green section title with house icon ---------- */
.fs-card-title-success {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 16px;
}
.fs-house-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ---------- Selected Reports list (read-only green cards) ---------- */
.fs-selected-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.fs-selected-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 2px solid #16a34a;
    border-radius: var(--fs-radius-sm);
    background: var(--fs-card-bg);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10);
}
.fs-selected-item .fs-selected-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 12px;
}
.fs-selected-num {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
    margin-right: 8px;
    min-width: 14px;
}
.fs-selected-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
    line-height: 1.4;
}
.fs-text-sm { font-size: 13px; }
.fs-mt-0 { margin-top: 0; }
.fs-mb-0 { margin-bottom: 0; }
.fs-mb-10 { margin-bottom: 10px; }
.fs-mb-20 { margin-bottom: 20px; }
.fs-pt-0 { padding-top: 0; }
.fs-hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .fs-page-wrapper {
        padding: 12px 10px 30px;
    }
    .fs-card {
        padding: 20px 16px;
        border-radius: var(--fs-radius-sm);
    }
    .fs-card-title {
        font-size: 18px;
    }
    .fs-form-row {
        flex-direction: column;
        gap: 0;
    }
    .fs-form-row > .fs-form-group {
        min-width: 100%;
    }
    .fs-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
    .fs-accordion .panel-heading a {
        padding: 12px 14px;
        font-size: 14px;
    }
    .fs-accordion .panel-body {
        padding: 14px 14px 20px;
    }
    .fs-service-item {
        padding: 12px;
    }
    .fs-confirmation {
        padding: 28px 16px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .fs-page-wrapper {
        max-width: 720px;
    }
}

/* ---------- Print ---------- */
@media print {
    .fs-body {
        background: #fff;
    }
    .fs-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .fs-btn,
    .fs-footer {
        display: none;
    }
}

/* ---------- Confirmation: one card per requested report (2026-09-17) ---------- */
.fs-confirmation h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--fs-primary);
    margin: 0 0 8px;
}
.fs-report-list {
    text-align: left;
    max-width: 580px;
    margin: 20px auto 14px;
}
.fs-report-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--fs-border);
    border-left: 4px solid #16a34a;
    border-radius: var(--fs-radius-sm);
    background: var(--fs-card-bg);
}
.fs-report-item.is-pending { border-left-color: #f59e0b; }
.fs-report-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fs-report-item.is-pending .fs-report-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fs-report-main { flex: 1 1 0; min-width: 0; }   /* basis 0 keeps the text beside the icon when the row wraps on phones */
.fs-report-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fs-text);
    line-height: 1.3;
}
.fs-report-note {
    font-size: 13px;
    line-height: 1.45;
    color: var(--fs-text-muted);
    margin-top: 2px;
}
.fs-report-action { flex: 0 0 auto; }
.fs-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
@media (max-width: 520px) {
    .fs-report-item { flex-wrap: wrap; }
    .fs-report-action { flex-basis: 100%; }
    .fs-report-action .fs-btn { display: block; width: 100%; text-align: center; }
}

/* ---------- Home Valuation report page (free_services_valuation.asp, 2026-09-17) ---------- */
.fs-val-kicker {
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fs-primary);
    margin: 0 0 6px;
}
.fs-val-heading {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--fs-text);
    margin: 0 0 18px;
}
.fs-val-panel {
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    background: var(--fs-warm-bg);
    padding: 18px 20px;
    margin: 0 0 20px;
}
.fs-val-label {
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--fs-text-muted);
}
.fs-val-address {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--fs-text);
    margin: 2px 0 14px;
}
.fs-val-amount {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--fs-primary);
}
.fs-val-meta {
    font-size: 12px;
    color: var(--fs-text-muted);
    margin-top: 4px;
}
.fs-val-sub {
    font-size: 16px;
    font-weight: 700;
    color: var(--fs-text);
    margin: 0 0 6px;
}
.fs-valuation p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--fs-text);
    margin: 0 0 12px;
}
