/* =========================================================
   Unique Insurance - Homepage custom styles
   Kept separate from the generated Elementor markup.
   ========================================================= */

.rev-slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.horizontal-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
}

.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    margin: 0 50px;
    width: 100%;
    max-width: 1200px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 20px;
    color: #900295;
    transition: color .2s ease;
}

.scroll-btn:hover,
.scroll-btn:focus-visible {
    color: darkgreen;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 17px;
}

.card-container {
    flex: 0 0 300px;
    margin-right: 25px;
}

.close-button {
    background: none;
    border: 0;
    font-size: 1.9rem;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px;
    margin-right: 6px;
    z-index: 2;
}

.close-button:hover,
.close-button:focus-visible {
    color: #216324;
}

.button {
    display: inline-flex;
    align-items: center;
    border: 2px solid #25D366;
    border-radius: 50px;
    padding: 10px 40px;
    background-color: transparent;
    font-size: 16px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.button:hover,
.button:focus-visible {
    background-color: #00A145;
    color: #fff;
}

.button i {
    margin-right: 8px;
}

.button a {
    text-decoration: none;
    color: inherit;
}

.report-claim-btn {
    color: #fff;
    text-decoration: none;
}

.report-claim-btn:hover,
.report-claim-btn:focus-visible {
    color: green;
}

/* Existing custom colors moved out of the Razor markup. */
.elementskit-border-divider.elementskit-style-long {
    background-color: red;
}

/* Service cards: only the first two are visible initially. */
#serviceList .instive-grid-item[data-service-id]:not(:nth-child(-n+2)) {
    display: none;
    opacity: 0;
}

#serviceList .instive-grid-item[data-service-id].service-visible {
    display: block !important;
    opacity: 1 !important;
    animation: uicServiceFade .35s ease;
}

@keyframes uicServiceFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent oversized images from causing layout surprises. */
.popup-image,
#serviceList img,
.team-img img {
    max-width: 100%;
    height: auto;
}

/* Accessibility/performance: respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    .scroll-wrapper {
        scroll-behavior: auto;
    }

    .scroll-btn,
    .button {
        transition: none;
    }

    #serviceList .instive-grid-item[data-service-id].service-visible {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .scroll-wrapper {
        margin: 0 35px;
    }

    .card-container {
        flex-basis: min(300px, calc(100vw - 90px));
        margin-right: 15px;
    }

    .next-btn {
        right: 0;
    }
}

/* =========================================================
   GET A QUOTE MODAL
   The loaded Insurance Proposal view already contains
   its own compact card. Do not surround it with a huge
   Bootstrap modal panel.
   ========================================================= */

.uic-quote-modal {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.uic-quote-dialog {
    width: auto;
    max-width: 520px;
    margin: 1.75rem auto;
}

.uic-quote-content {
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}

    /* Loading state */
    .uic-quote-content > .modal-body {
        background: transparent;
        border: 0;
        color: #fff;
    }

    /* Keep the actual Insurance Proposal card intact */
    .uic-quote-content .card {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

/* Mobile */
@media (max-width: 575.98px) {

    .uic-quote-dialog {
        max-width: calc(100% - 24px);
        margin: 0.75rem auto;
    }

    .uic-quote-content {
        width: 100%;
    }
}

/* ============================================================
   INSURANCE ACTION FORMS
   ============================================================ */

.form-control.error {
    border-color: #dc3545;
}

.errorDiv {
    color: #dc3545;
}

.successDiv {
    color: #28a745;
}

.form-group:hover input {
    border-color: #b302ba;
}

.form-group input:focus {
    border-color: #6d0071;
    box-shadow: 0 0 0 0.25rem rgba(179, 2, 186, 0.25);
}

/* =========================================================
   INSURANCE FORM FIELD SPACING
   ========================================================= */

.insurance-action-form .form-group,
#actiontopForm .form-group {
    margin-bottom: 14px;
}

    .insurance-action-form .form-group:last-child,
    #actiontopForm .form-group:last-child {
        margin-bottom: 0;
    }

.insurance-action-form .form-control,
#actiontopForm .form-control {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 7px;
}

/* Validation messages */
.insurance-action-form label.error,
#actiontopForm label.error {
    display: block;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 767px) {

    .insurance-action-form .form-group,
    #actiontopForm .form-group {
        margin-bottom: 12px;
    }

    .insurance-action-form .form-control,
    #actiontopForm .form-control {
        min-height: 46px;
    }
}