﻿/* ===========================
   FNOL (First Notice of Loss)
   Consolidated Styles
   =========================== */


/* ===========================
   Modal — Base
   =========================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.modal-visible-by-default {
    display: block !important;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
}

    .modal-content .card-label-sub {
        display: block;
        margin-bottom: 20px;
    }

    .modal-content .card-label {
        display: block;
        margin-bottom: 20px;
    }

    .modal-content .warning-text {
        color: #d9534f;
        font-weight: 500;
    }


/* ===========================
   Modal — Typography
   =========================== */

.modal-label {
    display: block;
    padding: 0;
    margin-bottom: 8px;
    background-color: transparent;
    border-bottom: none;
    font-family: 'futura-pt', sans-serif;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    color: #1A5632;
}

.modal-label-sub {
    display: block;
    padding: 0;
    margin-bottom: 6px;
    background-color: transparent;
    border-bottom: none;
    font-family: 'futura-pt', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: none;
    color: #1A5632;
}

.modal-title {
    display: block;
    padding: 0;
    margin-bottom: 6px;
    background-color: transparent;
    border-bottom: none;
    font-family: 'futura-pt', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: none;
    color: #1A5632;
}


/* ===========================
   Modal — Buttons
   =========================== */

.modal-btn {
    margin: 10px 5px;
    padding: 10px 30px;
    background-color: #CFCFCF;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.modal-confirm-btn {
    margin: 10px 5px;
    padding: 10px 30px;
    background-color: #198754;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

    .modal-confirm-btn:hover {
        background-color: #45a049;
    }

/* Telerik RadButton override */
.RadButton_Material.rbButton.modal-confirm-btn {
    color: white !important;
}

.modal-cancel-btn {
    margin: 10px 5px;
    padding: 10px 30px;
    background-color: #c94451;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

    .modal-cancel-btn:hover {
        background-color: #c82333;
    }

/* Telerik dropdown popup rendered on <body> must sit above modal overlay */
.rddlSlide {
    z-index: 10000 !important;
}


/* ===========================
   Help Icon
   =========================== */

.help-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('/assets/images/icon-help.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
}

#main-content-container .card .card-label + .help-icon {
    float: none;
    display: inline-block;
    height: 24px;
    width: 24px;
    background-image: url('/assets/images/icon-help.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 8px;
    cursor: pointer;
}


/* ===========================
   Tooltip Bubble
   =========================== */

.tooltip-bubble {
    position: absolute;
    background: #198754;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    max-width: 260px;
    line-height: 1.4;
    z-index: 10000;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: normal;
    transition: opacity 0.15s ease-in-out;
}

    .tooltip-bubble::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 15px;
        border-width: 6px;
        border-style: solid;
        border-color: #198754 transparent transparent transparent;
    }


/* ===========================
   Validation & Error States
   =========================== */

.red-border {
    border: 2px solid #dc3545 !important;
    border-radius: 10px;
    background-color: #fff0f0 !important;
}

.form-control.red-border input {
    border: 2px solid #dc3545 !important;
}

.error-highlight {
    border: 2px solid #dc3545 !important;
    border-radius: 8px;
    padding: 10px;
}

.error-highlight input,
.error-highlight textarea {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

.form-error {
    color: #721c24;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}


/* ===========================
   Utility Classes
   =========================== */

.text-capitalize {
    text-transform: capitalize;
}


.gap-4 > * {
    margin-right: 1rem;
}

.green-button {
    color: green;
    cursor: pointer;
    text-decoration: underline;
}


/* ===========================
   Sweet Alert — Confirm Button
   =========================== */

.sweet-alert-confirm-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: none;
    font-weight: 500;
    color: #fff;
    background-color: #4C9C2E;
    min-width: 68px;
}

    .sweet-alert-confirm-button:hover {
        background-color: #7CC600;
    }


/* ===========================
   FixedPropertyDetails.aspx
   =========================== */

.unknown-container {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* ===========================
   SpecificDamageGAVehicle.aspx
   =========================== */

.loss-options-container {
    padding: 20px;
    font-family: Arial, sans-serif;
}

.btn-nav-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 10px auto;
}

.damage-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
}

.damage-hit-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: crosshair;
}

.big-damage-image {
    width: 100%;
    height: auto;
    display: block;
}

.marker {
    position: absolute;
    color: red;
    font-size: 22px;
    font-weight: bold;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 15;
}

    .marker::after {
        content: "X";
    }


/* ===========================
   SpecificDamageOtherVehicle.aspx
   =========================== */

.damage-canvas {
    position: relative;
    display: block;
    width: 100%;
}

    .damage-canvas img {
        max-width: 100%;
        height: auto;
        display: block;
    }

/*.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: red;
    border: 2px solid white;
    transform: translate(-50%, -50%);
}*/

.click-help {
    font-size: 0.9rem;
    color: #666;
}


/* ===========================
   FloodDamage.aspx
   =========================== */

.flood-option-btn {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    text-align: left;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    cursor: pointer;
}

    .flood-option-btn:hover {
        background-color: #e6f5e6 !important;
        border-left: 5px solid #28a745;
    }

.selected-damage-option {
    background-color: #c3e6cb !important;
    border-left: 5px solid #28a745 !important;
    font-weight: bold;
}

.engine-water-label {
    color: #006400;
    font-weight: 600;
}

.engine-questions-section-head {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}


/* ===========================
   VehicleDamageDetails.aspx
   =========================== */

.major-question {
    font-size: 1.55rem;
    font-weight: 700;
    color: #006400;
    margin-bottom: 8px;
    display: block;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    align-items: start;
}

    .two-column .card-label-sub {
        font-weight: 600;
        color: #333;
    }

.section-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .major-question {
        font-size: 1.1rem;
    }

    .two-column {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

        .two-column > div {
            width: 100% !important;
            box-sizing: border-box !important;
            min-width: 0 !important;
            overflow: hidden !important;
        }

    input.form-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .section-card {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ===========================
   OtherVehicleDamageDetails.aspx
   =========================== */

.vehicle-section {
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

.vehicle-heading {
    margin-bottom: 12px;
    font-weight: 700;
}

.rowpanel-towing {
    margin-top: 20px;
}


.deceased-contact-wrapper {
    padding-left: 15px; /* moves whole block away from left border */
}

.deceased-contact-text input[type="checkbox"] {
    margin-right: 8px; /* space between checkbox and text */
}

.deceased-contact-text label {
    margin-left: 4px; /* extra fine spacing */
}


.deceased-details-container {
    padding-left: 14px;
}

    .deceased-details-container input[type="checkbox"] {
        margin-right: 8px !important;
    }

    .deceased-details-container label {
        margin-left: 4px !important;
    }

    .deceased-details-container .RadCheckBox,
    .deceased-details-container .rbCheckBox,
    .deceased-details-container .rcbItem {
        margin-left: 10px !important;
    }

.deceased-contact-row {
    margin-left: 12px; /* moves checkbox right */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.deceased-unknown-checkbox {
    margin-right: 10px !important; /* space between checkbox & text */
}


/* ===========================
   ClickableVehicleDamage.aspx
   =========================== */

.vehicle-image {
    width: 250px;
    height: auto;
    margin: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

    .vehicle-image:hover {
        border-color: #198754;
        transform: scale(1.05);
    }

    .vehicle-image.selected-image {
        border-color: #28a745;
        box-shadow: 0 0 10px #28a745;
    }

    .vehicle-image.selected {
        border-color: blue;
    }

    .vehicle-image.disabled-image {
        pointer-events: none;
        opacity: 0.4;
    }

.image-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}


/* ===========================
   ClickableOtherVehicleDamage.aspx
   =========================== */

.vehicle-row.bottom-row img {
    width: 350px;
    height: 250px;
    object-fit: contain;
    margin: 10px 25px;
}


/* ===========================
   PolicyDetails.aspx — Table
   =========================== */

.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 8px;
    background-color: #fff;
}

.vehicle-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

    .vehicle-table thead {
        background-color: #4CAF50;
        color: white;
    }

    .vehicle-table th,
    .vehicle-table td {
        padding: 12px 16px;
        text-align: left;
        border: 1px solid #ddd;
        white-space: nowrap;
    }

    .vehicle-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .vehicle-table tbody tr:hover {
        background-color: #f1f1f1;
    }

@media screen and (max-width: 768px) {
    .vehicle-table {
        font-size: 14px;
    }
}


/* ===========================
   Passenger Pages
   =========================== */

.passenger-section {
    border-bottom: 1px solid #ccc;
}

@media (max-width: 576px) {
    .minor-group {
        margin-top: 10px;
    }
}


/* ===========================
   Login.aspx
   =========================== */

.role-card {
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.role-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #165c2f;
    margin-bottom: 25px;
}

.role-option {
    display: flex;
    align-items: center;
    background: #f4f9f4;
    border-radius: 14px;
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: 0.3s ease;
    border: 1px solid #e5e5e5;
}

    .role-option:hover {
        background: #e5ffe8;
        border-color: #49a84b;
        cursor: pointer;
    }

    .role-option input {
        transform: scale(1.4);
        margin-right: 15px;
        cursor: pointer;
    }

.role-option-text {
    font-size: 17px;
    color: #2b2b2b;
    margin: 0;
    cursor: pointer;
}

.role-next-btn {
    float: right;
    margin-top: 20px;
    border-radius: 25px !important;
    padding: 10px 30px !important;
}

/* DisplayClaims - Sidebar */
.fnol-sidebar-menu li {
    margin-bottom: 8px;
}

.fnol-sidebar-menu > li > a {
    display: block;
    padding: 6px;
    cursor: pointer;
}

.submenu {
    margin-left: 15px;
    margin-top: 5px;
}

.submenu li {
    margin-bottom: 5px;
}

/* DocumentsUploadDetails */
.doc-intro {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f1f1f1;
    color: #243746;
}

.doc-intro-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: .9rem;
}

.doc-optional {
    padding: 3px 8px;
    background: #d1e7dd;
    border-radius: 4px;
    color: #146c43;
    font-weight: 700;
}

.doc-intro-copy {
    font-size: .92rem;
    line-height: 1.45;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.doc-sub {
    font-size: .92rem;
    color: #666;
    margin-bottom: 10px;
}

.doc-status {
    font-size: .85rem;
}

.doc-status.ok {
    color: #0f7a39;
    font-weight: 700;
}

.doc-status.none {
    color: #6c757d;
}

.doc-actions {
    margin-top: 10px;
}

.doc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    z-index: 9998;
}

.doc-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 760px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    overflow: hidden;
}

.doc-modal .hdr {
    padding: 14px 20px;
    background: #198754;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    border-bottom: 1px solid #157347;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.doc-modal .hdr .doc-close-btn {
    position: absolute;
    right: 12px;
    top: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.doc-modal .body {
    padding: 18px 22px;
    max-height: 400px;
    overflow-y: auto;
}

.doc-modal .ftr {
    padding: 12px 20px;
    background: #f9f9f9;
    text-align: right;
    border-top: 1px solid #eee;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.doc-row a {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
}

.doc-row .file-name-text {
    color: #333;
    font-weight: 600;
}

.doc-row .del {
    color: #b02a37;
    border: 1px solid #b02a37;
    background: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
}


/* ===========================
   Card row column spacing fix
   ===========================
   l2d-overrides.css defines:
     #main-content-container .card .row .col-12 + .col-12 { margin-top: 8px; }
   That 8px is intended to space columns only when they STACK on mobile, but the
   rule has no breakpoint guard, so at md+ (columns side-by-side) it pushes every
   column after the first down 8px — staggering side-by-side fields like
   First/Last name and Year/Make/Model. Neutralize it at md+; below 768px the
   original 8px stacking gap still applies. FNOL-overrides.css loads after
   l2d-overrides.css, so this wins the cascade at equal specificity. */
@media (min-width: 768px) {
    #main-content-container .card .row .col-12 + .col-12 {
        margin-top: 0;
    }
}

.upload-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.note-section {
    margin-top: 12px;
}

/* DocumentsUploadDetails - button styling (mirror first-party pathway) */
.doc-actions .btn,
.doc-modal .ftr .btn,
.upload-section .btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease-in-out;
}

.doc-actions .btn.primary,
.upload-section .btn.primary {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.doc-actions .btn.primary:hover,
.upload-section .btn.primary:hover {
    background-color: #157347;
    border-color: #146c43;
    color: #fff;
}

.doc-modal .ftr .btn {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529;
}

.doc-modal .ftr .btn:hover {
    background-color: #dde1e5;
    color: #212529;
}

/* DriverDetails - flex layout for checkboxes/radios */
.span-item-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.span-item-radio {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* FileaClaim - button container */
.btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* FileaClaim - sitting warning label */
.sitting-warning-label {
    font-family: 'futura-pt', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5632;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 768px) {
    .sitting-warning-label {
        font-size: 1.6rem;
    }
}

@media (min-width: 1200px) {
    .sitting-warning-label {
        font-size: 2rem;
    }
}

.hazard-icon {
    flex-shrink: 0;
    margin-bottom: 1px;
}


/* ===========================
   WitnessAndPedestrians.aspx
   =========================== */

.entry-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
}


/* ===========================
   Summary.aspx
   =========================== */

.summary-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.summary-section {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
}

    .summary-section p {
        margin: 0 0 5px;
    }

.highlight {
    color: green;
    cursor: pointer;
    text-decoration: underline;
}

.highlight:visited,
.highlight:hover,
a.highlight,
a.highlight:visited,
a.highlight:hover,
.disabled-link,
.disabled-link:visited,
.disabled-link:hover {
    color: green !important;
    text-decoration: underline;
}

.disabled-link {
    cursor: default;
    pointer-events: none;
}

@media(max-width: 768px) {
    .summary-body {
        grid-template-columns: 1fr;
    }
}
