/* Combined ACORD form stylesheet for ACORD 25.
 * Order preserved from the previous template cascade:
 * 1. acord_form_25.css
 * 2. acord_generator_shared.css
 * 3. acord_form_design.css
 */

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
}

.Page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 25px 20px;
    box-sizing: border-box;
}

/* ── Step Progress Indicator ── */
.step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 860px;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 36px;
    height: 66px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.step-item:hover {
    opacity: 0.8;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background-color: #eab308;
    color: #fff;
}

.step-item.completed .step-circle {
    background-color: #1a3e6e;
    color: #fff;
}

.step-item.completed .step-circle::before {
    content: '✓';
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: 1px;
}

/* Hide numbers in completed steps and show only the tick */
.step-item.completed .step-circle,
.step.completed .step-circle {
    font-size: 0 !important;
}

.step-item.completed .step-circle::before,
.step.completed .step-circle::before {
    font-size: 1.75rem !important;
    margin: 0 !important;
}


.step-label {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: #eab308;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #1a3e6e;
}

.step-connector {
    flex: 1;
    height: 3px;
    background-color: #e0e0e0;
    margin-top: 17px;
    transition: background-color 0.3s ease;
}

.step-connector.completed {
    background-color: #1a3e6e;
}

/* ── Form Card ── */
.Producer_Details_Box {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    padding: 25px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    box-sizing: border-box;
    display: none;
}

.Producer_Details_Box.active {
    display: block;
}

/* ── Section Title ── */
.Producer_Details_Text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #eab308;
    margin-bottom: 20px;
}

/* ── Grid Layouts ── */
.Address_subform,
.Contact_subform {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.6rem;
    align-items: start;
    /* here it was set to end this was causing the issue*/
}

.Address_subform.subform_divider {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #d1d5db;
}

/* ── Label + Input Wrapper ── */
.label_input {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Checkbox label input*/
.label_input_checkbox {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    /* align-items: center; */
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 8%;
}

.label_input_checkbox input[type="checkbox"]:hover {
    cursor: pointer;
    size: 2px;
}

/* .label_input_checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    border: none;
} */

/* ── Inputs (underline style) ── */
input,
textarea {
    box-sizing: border-box;
    height: 20px;
    border: none;
    border-bottom: 1.5px solid #d1d5db;
    border-radius: 0;
    width: 100%;
    padding: 2px 2px;
    font-size: 0.7rem;
    background-color: transparent;
    transition: border-color 0.2s ease;
    font-family: inherit;
    color: #333;
}

textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    padding: 10px 12px;
}

input:hover,
textarea:hover {
    border-color: #eab308;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #eab308;
    background-color: transparent;
    box-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ── Inputs Container ── */
.Inputs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.required {
    color: #ef4444;
}

/* ── Policy Details Wrapper ── */
#policy-details-box {
    /* Removed overrides to restore normal .Producer_Details_Box styling */
}

#policy-details-box>.Producer_Details_Text {
    /* Keep the title style matching other boxes */
}

/* ── Policy Coverage Sections ── */
.Producer_Details_Box .Sub_Section.policy-section-card {
    background: var(--acord-panel);
    border: 1px solid var(--acord-line);
    border-radius: 8px;
    box-shadow: var(--acord-shadow);
    padding: 24px 32px !important;
    border-bottom: 1px solid var(--acord-line) !important;
}

@media (max-width: 900px) {
    .Producer_Details_Box .Sub_Section.policy-section-card {
        padding: 20px 24px !important;
    }
}

.Producer_Details_Box .Sub_Section>.Sub_Section_Title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 14px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ── Sub Section Title ── */
.Sub_Section_Title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 8px;
    /* border-top: 1px solid #eab308; */
    padding-top: 12px;
    color: #444;
}

/* ── Form ── */
form {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

/* ── Navigation Buttons ── */
#acord25Form .navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
    width: 100%;
    max-width: 900px;
    margin-top: 24px;
}

#backBtn,
#saveAndReturnBtn,
#nextBtn,
#submitBtn {
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    outline: none;
}

#backBtn {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #d1d5db;
}

#backBtn:hover {
    background-color: #f3f4f6;
}

#saveAndReturnBtn,
#nextBtn {
    background-color: #eab308;
    color: #1a1a1a;
}

#saveAndReturnBtn:hover,
#nextBtn:hover {
    background-color: #ca8a04;
}

#submitBtn {
    background-color: #eab308;
    color: #1a1a1a;
}

#submitBtn:hover {
    background-color: #ca8a04;
}

/* ── Review Page Styles ── */
.review-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
}

.review-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a3e6e;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a3e6e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-edit-btn {
    background-color: transparent;
    color: #eab308;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    /* text-decoration: underline; */
    padding: 0;
}

.review-edit-btn:hover {
    background-color: #ffffff;
    color: #1a3e6e;
}

.review-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 1.5rem;
    row-gap: 10px;
    margin-bottom: 8px;
}

.review-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-field-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #1a1a1a;
}

.review-field-value {
    font-size: 0.75rem;
    color: #333;
    word-break: break-word;
}

/* ── PDF Viewer Styles ── */
.pdf-viewer-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-header h2 {
    margin: 0;
    color: #333;
    flex: 1;
    min-width: 200px;
}

.download-btn,
.back-to-form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn {
    background-color: #007bff;
    color: white;
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.back-to-form-btn {
    background-color: #6c757d;
    color: white;
}

.back-to-form-btn:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.pdf-viewer-wrapper {
    width: 100%;
    aspect-ratio: 8.5 / 11;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-footer {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 10px;
}

@media (max-width: 768px) {
    .pdf-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-header h2 {
        text-align: center;
    }

    .download-btn,
    .back-to-form-btn {
        width: 100%;
        justify-content: center;
    }

    .pdf-viewer-wrapper {
        aspect-ratio: auto;
        min-height: 600px;
    }
}

.heading {

    /* position: sticky; */
    top: 0;
    background: #ffc107;
    padding: 10px;
    padding-top: 15px;
    z-index: 100;
    margin-bottom: 2%;
    min-width: 65%;
    border-radius: 4px;
}

.center {
    text-align: center;
    font-size: x-large;
}

.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loader-overlay.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top-color: #ffc107;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.validation-error {
    border-color: #ef4444 !important;
    background-color: #fee2e2 !important;
}

/* ── Login Modal ── */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-modal .loginOptionsButton .btn {
    white-space: nowrap;
    padding: 8px 16px;
}

/* Keep stacked social-login buttons aligned with the credential fields. */
@media (max-width: 991.98px) {
    #loginModalOverlay .loginOptions {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

/* ── Searchable Dropdown (Insurance Carrier) ── */
.carrier-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.carrier-dropdown-wrapper input {
    width: 100%;
}

.carrier-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carrier-dropdown-list.open {
    display: block;
}

.carrier-dropdown-item {
    padding: 6px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    color: #333;
}

.carrier-dropdown-item:hover,
.carrier-dropdown-item.highlighted {
    background-color: #fff8e1;
    color: #333;
}

.carrier-dropdown-item.no-results {
    color: #888;
    cursor: default;
    font-style: italic;
}

.carrier-dropdown-item.no-results:hover {
    background-color: #fff;
}

@media (max-width: 760px) {
    .acord-generator.acord-generator-25 .step-item {
        height: 76px !important;
    }

    .acord-generator.acord-generator-25 .step-label {
        width: 80px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
}

/* ── Info icon tooltip (ⓘ) for checkbox, text, and other fields ── */
.field-info-icon {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.25em;
    height: 1.25em;
    min-width: 1.25em;
    background: #6c757d;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: bold;
    font-style: normal;
    cursor: help;
    flex-shrink: 0;
    margin-left: 5px;
    line-height: 1;
    vertical-align: middle;
    transition: background 0.2s ease;
}

/* Ensure perfect vertical alignment of text and info icon */
.label_input > div:first-child,
.label_input_checkbox > div:first-child,
.acord-form-label {
    display: flex;
    align-items: center;
}

.field-info-icon:hover {
    background: #334155;
}

.field-info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #fff;
    text-align: left;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: normal;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    z-index: 1001;
    transition: opacity 0.2s ease, visibility 0.2s ease, left 0.1s, right 0.1s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    line-height: 1.45;
    pointer-events: none;
}

.field-info-tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent;
}

/* Dynamic JS Alignments to prevent screen cutoff */
.field-info-tooltip.align-left {
    left: -12px !important;
    right: auto !important;
    transform: none !important;
}
.field-info-tooltip.align-left::before {
    left: 19px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}
.field-info-tooltip.align-right {
    right: -12px !important;
    left: auto !important;
    transform: none !important;
}
.field-info-tooltip.align-right::before {
    right: 19px !important;
    left: auto !important;
    transform: translateX(50%) !important;
}

.field-info-icon:hover .field-info-tooltip {
    visibility: visible;
    opacity: 1;
}

/* ── Shared policy details selector and editor ── */
/* Enabled by the legacy ACORD 25 class or the reusable policy-step class. */
body:is(.acord25-policy-details-active, .acord-policy-details-active) {
    background: #fbfcff;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25.Page {
    min-height: calc(100vh - 170px);
    padding: 30px 20px 38px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 192, 20, 0.08), transparent 30%),
        #fbfcff;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .heading {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto 24px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .heading h1 {
    margin: 0;
    color: #111945;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .heading h1::after {
    display: block;
    width: 52px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 99px;
    background: #ffb800;
    content: "";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-progress {
    max-width: 1160px;
    margin: 0 auto 27px;
    padding-bottom: 0;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-item {
    flex-basis: 44px;
    height: 70px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-circle {
    width: 42px;
    height: 42px;
    border: 2px solid #dbe1eb;
    background: #ffffff;
    color: #151d45;
    box-shadow: 0 2px 6px rgba(18, 29, 69, 0.04);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-item.active .step-circle {
    border-color: #ffb800;
    background: #ffb800;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(255, 184, 0, 0.27);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-item.completed .step-circle {
    border-color: #ffb800;
    background: #ffffff;
    color: #151d45;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-item.completed .step-circle::before {
    color: #ffb800;
}


body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-label {
    top: 49px;
    color: #4c5879;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: normal;
    width: 94px;
    line-height: 1.28;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-item.active .step-label,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-item.completed .step-label {
    color: #151d45;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-item.active .step-label {
    color: #e5a200;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-connector {
    height: 2px;
    margin-top: 20px;
    background: #dce2eb;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25 .step-connector.completed {
    background: #ffbf1b;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #acord25Form,
body:is(.acord25-policy-details-active, .acord-policy-details-active) #acord25Form .navigation-buttons {
    max-width: 1220px;
}

body.acord-policy-details-active .acord-generator-24 .navigation-buttons {
    max-width: 1220px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box {
    position: relative;
    overflow: hidden;
    max-width: 1220px;
    padding: 28px 44px 34px;
    border: 1px solid #e2e7f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 34px rgba(19, 34, 74, 0.11);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box:not(.is-policy-editor)::after {
    position: absolute;
    z-index: 0;
    top: 19px;
    right: 48px;
    width: 132px;
    height: 96px;
    border-radius: 52% 48% 56% 44%;
    background: radial-gradient(circle at 63% 40%, #ffc528 0 18%, #ffdf82 19% 31%, rgba(255, 221, 129, 0.42) 32% 48%, transparent 49%);
    opacity: 0.74;
    content: "";
    pointer-events: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box>.Producer_Details_Text {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    color: #111945;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box:not(.is-policy-editor)>.Producer_Details_Text {
    display: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-selection-intro {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    margin: 0 0 20px;
    color: #556180;
    font-size: 0.94rem;
    font-weight: 600;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-selection-intro::before {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff8df, #fff0ba);
    color: #ffb800;
    font-family: FontAwesome;
    font-size: 2rem;
    content: "\f0f6";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-selection-intro strong {
    display: block;
    margin-bottom: 5px;
    color: #111945;
    font-size: 1.55rem;
    font-weight: 800;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-selection-intro span::after {
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 9px;
    border-radius: 99px;
    background: #ffb800;
    content: "";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box>.Inputs {
    position: relative;
    z-index: 1;
    gap: 10px !important;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-section-card {
    overflow: hidden;
    margin: 0;
    padding: 0 !important;
    border: 1px solid #e1e6ef !important;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 32, 69, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-section-card:hover {
    border-color: #ffc229 !important;
    box-shadow: 0 8px 20px rgba(17, 32, 69, 0.14);
    transform: translateY(-1px);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-trigger {
    width: 100%;
    min-height: 80px;
    padding: 13px 22px 13px 17px;
    display: flex !important;
    align-items: center;
    gap: 18px;
    border: 0;
    background: #ffffff;
    color: #111945;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, #fff8e5, #fff1c4);
    color: #ffb800;
    font-size: 1.55rem;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-copy {
    min-width: 0;
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-copy strong {
    display: block;
    margin-bottom: 5px;
    color: #111945;
    font-size: 1rem;
    font-weight: 800;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-copy span {
    display: block;
    color: #526080;
    font-size: 0.87rem;
    font-weight: 600;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-arrow {
    color: #111111;
    font-size: 1.3rem;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-form-area,
body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-editor-rail {
    display: none;
}

/* Selected policy editor */
body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor>.Producer_Details_Text,
body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor>.policy-selection-intro {
    display: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor>.Inputs {
    display: block;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-section-card {
    display: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-section-card.is-selected {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    min-height: 630px;
    border-color: #e3e8f0 !important;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(17, 32, 69, 0.12);
    transform: none;
    overflow: visible;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-section-card.is-selected:hover {
    border-color: #e3e8f0 !important;
    box-shadow: 0 12px 32px rgba(17, 32, 69, 0.12);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-section-card.is-selected .policy-selector-trigger {
    display: none !important;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-section-card.is-selected .policy-editor-rail {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 24px 28px;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    background:
        radial-gradient(circle at 75% 19%, rgba(255, 189, 10, 0.48) 0 1%, transparent 2%),
        radial-gradient(circle at 18% 15%, rgba(255, 194, 30, 0.2), transparent 28%),
        linear-gradient(160deg, #fff9df 0%, #fff5cf 56%, #fffdf5 100%);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail::before {
    position: absolute;
    top: 70px;
    left: -44px;
    width: 240px;
    height: 240px;
    border: 2px solid rgba(255, 192, 27, 0.24);
    border-radius: 48% 52% 45% 55%;
    box-shadow: 23px 25px 0 -3px rgba(255, 204, 72, 0.14), 47px 48px 0 -8px rgba(255, 194, 27, 0.11);
    content: "";
    transform: rotate(-24deg);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-watermark {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8.5rem;
    color: rgba(255, 184, 0, 0.35);
    z-index: 0;
    pointer-events: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-back {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #4b5572;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block !important;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-back:hover {
    color: #111945;
    text-decoration: underline;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-copy {
    position: relative;
    z-index: 1;
    margin-top: 42px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-copy h2 {
    margin: 0;
    color: #111945;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-copy h2::after {
    display: block;
    width: 32px;
    height: 3px;
    margin: 15px 0;
    border-radius: 99px;
    background: #d8aa16;
    content: "";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-copy p {
    max-width: 162px;
    margin: 0;
    color: #38425f;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-security {
    position: relative;
    z-index: 1;
    margin: auto auto 0;
    color: #27304c;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-security i {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 7px;
    place-items: center;
    border-radius: 50%;
    background: #fff7da;
    color: #dca400;
    font-size: 1.25rem;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-section-card.is-selected .policy-form-area {
    display: block;
    /* Reserve the lower white-panel area for the form navigation. */
    padding: 27px 30px 104px;
    background: #ffffff;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area>.Sub_Section_Title {
    margin: 0 0 20px !important;
    padding: 0 0 0 13px !important;
    border-left: 4px solid #ffc118;
    color: #111111 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1.25;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .Address_subform {
    column-gap: 20px;
    row-gap: 14px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .label_input {
    gap: 6px;
    color: #151515;
    font-size: 0.65rem;
    font-weight: 800;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .label_input>div:first-child,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .label_input_checkbox>div:first-child,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .label_input label {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    margin: 0;
    line-height: 1.35;
}

/* Keep every policy option label on the left and its toggle on the right. */
body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-form-area .label_input_checkbox {
    flex-direction: row !important;
    justify-content: space-between;
    text-align: left;
    font-size: 0.65rem;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .label_input:not(.label_input_checkbox)>div:last-child {
    position: relative;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .label_input:not(.label_input_checkbox)>div:last-child::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 11px;
    color: #b28213;
    font-family: FontAwesome;
    font-size: 0.9rem;
    content: "\f0f6";
    pointer-events: none;
    transform: translateY(-50%);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area input:not([type="checkbox"]),
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .dropdown-input {
    min-height: 34px;
    height: 34px;
    padding: 7px 10px 7px 34px;
    border-color: #dce1ea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    font-size: 0.65rem;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area input::placeholder {
    color: #97a0b1;
    font-size: 0.65rem;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

/* Keep the two General Liability coverage-basis controls together beside Expiration Date. */
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: end;
    min-height: 34px;
    column-gap: 16px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option {
    min-width: 0;
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    align-items: center;
    gap: 8px;
    color: #1d2542;
    font-size: 0.67rem;
    font-weight: 700;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option>div:last-child {
    position: relative;
    width: 27px;
    height: 16px;
    flex: 0 0 27px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option>div:last-child::before {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: #cbd1da;
    content: "";
    transition: background 0.18s ease;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option>div:last-child::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.22);
    content: "";
    transition: transform 0.18s ease;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option input[type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option.is-checked>div:last-child::before,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option:has(input:checked)>div:last-child::before {
    background: #ffb800;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option.is-checked>div:last-child::after,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-option:has(input:checked)>div:last-child::after {
    transform: translateX(11px);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group {
    position: relative;
    margin-top: 18px;
    padding: 42px 15px 14px;
    border: 1px solid #f4df9a;
    border-radius: 10px;
    background: linear-gradient(105deg, rgba(255, 250, 232, 0.95), #ffffff 70%);
    box-shadow: 0 5px 14px rgba(218, 176, 31, 0.10);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group::before {
    position: absolute;
    top: 12px;
    left: 16px;
    color: #111945;
    font-family: FontAwesome;
    font-size: 1.15rem;
    line-height: 1;
    content: "\f0d6";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group>div:first-child {
    position: absolute;
    top: 12px;
    left: 42px;
    margin: 0 !important;
    color: #111945 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1;
    display: flex;
    align-items: center;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group>div:first-child::after {
    margin-left: 12px;
    padding: 3px 9px;
    border-radius: 99px;
    background: #fff4c8;
    color: #a17200;
    font-size: 0.58rem;
    font-weight: 700;
    content: "Enter the coverage limits as per your policy";
}

/* data-type specific icons */
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="deductibles"]::before {
    content: "\f06a";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="causes-of-loss"]::before {
    content: "\f071";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="coverages"]::before {
    content: "\f016";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="blanket-coverage"]::before {
    content: "\f0c1";
}

/* data-type specific badges */
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="deductibles"]>div:first-child::after {
    content: "Enter the deductibles as per your policy";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="causes-of-loss"]>div:first-child::after {
    content: "Select the causes of loss as per your policy";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="coverages"]>div:first-child::after {
    content: "Enter the coverage details as per your policy";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group[data-type="blanket-coverage"]>div:first-child::after {
    content: "Enter the blanket coverage details";
}

/* Text capitalization for titles */
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group>div:first-child {
    text-transform: capitalize;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group {
    position: relative;
    margin-top: 15px;
    padding-top: 39px;
    border-top: 1px solid #e6e9ef;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group.no-header {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group::before {
    position: absolute;
    top: 13px;
    left: 0;
    color: #111945;
    font-family: FontAwesome;
    font-size: 1.15rem;
    line-height: 1;
    content: "\f013";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group::after {
    position: absolute;
    top: 13px;
    left: 26px;
    color: #111945;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    content: "Additional Options";
}

/* data-type specific options group */
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group[data-type="causes-of-loss"]::before {
    content: "\f071";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group[data-type="causes-of-loss"]::after {
    content: "Causes Of Loss";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group.no-header::before,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group.no-header::after {
    display: none;
    content: none;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox {
    min-height: 31px;
    padding: 6px 10px !important;
    align-self: stretch;
    justify-content: space-between;
    flex-direction: row !important;
    gap: 8px;
    border-color: #e5e9f0;
    border-radius: 6px;
    background: #ffffff;
    color: #1d2542;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: left;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox>div:last-child {
    position: relative;
    width: 27px;
    height: 16px;
    flex: 0 0 27px;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox>div:last-child::before {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: #cbd1da;
    content: "";
    transition: background 0.18s ease;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox>div:last-child::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.22);
    content: "";
    transition: transform 0.18s ease;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox input[type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox.is-checked>div:last-child::before,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox:has(input:checked)>div:last-child::before {
    background: #ffb800;
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox.is-checked>div:last-child::after,
body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .label_input_checkbox:has(input:checked)>div:last-child::after {
    transform: translateX(11px);
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-options-group .Inputs {
    display: contents;
}





@media (max-width: 850px) {
    body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-generator-25.Page {
        padding-right: 12px;
        padding-left: 12px;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box {
        padding: 25px 18px 25px;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box:not(.is-policy-editor)::after {
        display: none;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-section-card.is-selected {
        grid-template-columns: 1fr;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-editor-rail {
        min-height: 180px;
    }



    body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-copy {
        margin-top: 42px;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-editor-rail-security {
        position: absolute;
        right: 24px;
        bottom: 24px;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .Address_subform {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-selection-intro {
        align-items: flex-start;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-selection-intro strong {
        font-size: 1.3rem;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-trigger {
        min-height: 88px;
        padding-right: 14px;
        gap: 12px;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 1.25rem;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-copy strong {
        font-size: 0.9rem;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box .policy-selector-copy span {
        font-size: 0.75rem;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) #policy-details-box.is-policy-editor .policy-form-area {
        padding: 22px 16px;
    }



    body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .policy-limits-group>div:first-child::after {
        display: none;
    }

    body:is(.acord25-policy-details-active, .acord-policy-details-active) .policy-form-area .coverage-basis-options {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
}

:root {
    --acord-yellow: #f5c106;
    --acord-yellow-dark: #d9a900;
    --acord-navy: #111827;
    --acord-blue: #1a3e6e;
    --acord-text: #243244;
    --acord-muted: #66758a;
    --acord-line: #d9e2ec;
    --acord-soft-line: #edf2f7;
    --acord-panel: #ffffff;
    --acord-canvas: #f4f7f9;
    --acord-field: #fdfefe;
    --acord-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    --acord-soft-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

body {
    background: var(--acord-canvas);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    height: auto;
}

.acord-generator {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 20px 48px;
    box-sizing: border-box;
    color: var(--acord-text);
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}

.acord-generator *,
.acord-generator *::before,
.acord-generator *::after {
    box-sizing: border-box;
}

.acord-generator .acord-corner-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.acord-generator .transactions-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1f2933;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s cubic-bezier(0.2, 0, 0.2, 1), color 0.2s ease;
    user-select: none;
}

.acord-generator .transactions-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px) scale(1.02);
}

.acord-generator .transactions-link:active {
    transform: translateY(1px) scale(0.97);
    background: #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1) inset;
}

.acord-generator .heading {
    width: 100%;
    max-width: 900px;
    min-width: 0;
    margin: 0 auto 14px;
    padding-left: 20px !important;
    padding-right: 20px !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
    top: auto;
    z-index: auto;
}

.acord-generator .heading .center,
.acord-generator .heading h1 {
    margin: 0;
    padding: 0;
    color: var(--acord-navy);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.acord-generator .step-progress,
.acord-generator .stepper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 0 0 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: static;
    top: auto;
    z-index: auto;
}

.acord-generator .step-item,
.acord-generator .step {
    position: relative;
    display: flex;
    flex: 0 0 40px;
    min-width: 40px;
    height: 68px;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.acord-generator .step-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #dce6f1;
    border-radius: 50%;
    background: #f8fafc;
    color: #91a1b6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.acord-generator .step-label {
    position: absolute;
    top: 50px;
    left: 50%;
    width: 110px;
    margin: 0;
    transform: translateX(-50%);
    color: #8da0b8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.acord-generator .step-connector,
.acord-generator .step-line {
    flex: 1 1 auto;
    height: 3px;
    min-width: 34px;
    margin: 19px -1px 0;
    background: #dfe8f2;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.acord-generator .step-item.active .step-circle,
.acord-generator .step.active .step-circle {
    background: #ffffff;
    border-color: var(--acord-yellow);
    color: var(--acord-yellow-dark);
    box-shadow: 0 0 0 4px rgba(245, 193, 6, 0.18);
}

.acord-generator .step-item.active .step-label,
.acord-generator .step.active .step-label {
    color: var(--acord-yellow-dark);
    font-weight: 700;
}

.acord-generator .step-item.completed .step-circle,
.acord-generator .step.completed .step-circle {
    background: var(--acord-yellow);
    border-color: var(--acord-yellow);
    color: #ffffff;
}

.acord-generator .step-item.completed .step-label,
.acord-generator .step.completed .step-label {
    color: var(--acord-blue);
    font-weight: 700;
}

.acord-generator .step-connector.completed,
.acord-generator .step.completed+.step-line {
    background: var(--acord-yellow);
}

.acord-generator .Producer_Details_Box,
.acord-generator .page>.border-box,
.acord-generator #review-content {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 44px 48px;
    background: var(--acord-panel);
    border: 1px solid var(--acord-line);
    border-radius: 8px;
    box-shadow: var(--acord-shadow);
}

.acord-generator .page>.border-box+.border-box {
    margin-top: 24px;
}

.acord-generator-25 #acord25Form {
    width: 100%;
    max-width: 900px;
    padding: 0;
    margin: 0 auto;
}

.acord-generator .Producer_Details_Text,
.acord-generator .page h1.center,
.acord-generator #review-content>h1.center {
    position: relative;
    margin: 0 0 34px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--acord-soft-line);
    color: var(--acord-navy);
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
}

.acord-generator .Producer_Details_Text::after,
.acord-generator .page h1.center::after,
.acord-generator #review-content>h1.center::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 64px;
    height: 2px;
    background: var(--acord-yellow);
}

.acord-generator .divider,
.acord-generator .blue_divider {
    display: none;
}

.acord-generator .Inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.acord-generator form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.acord-generator-50 .border-box>form,
.acord-generator-24 .border-box>form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.acord-generator .form-group br {
    display: none;
}

.acord-generator .Address_subform,
.acord-generator .Contact_subform,
.acord-generator .form-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 22px;
    align-items: start;
}

.acord-generator .label_input,
.acord-generator .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    color: var(--acord-text);
    font-size: 14px;
    font-weight: 700;
}

.acord-generator .label_input>div:first-child,
.acord-generator label {
    margin: 0;
    padding: 0;
    color: #3a4a5f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
}

.acord-generator .Sub_Section {
    padding: 10px 0 30px;
    border-bottom: 1px solid var(--acord-soft-line);
}

.acord-generator .Sub_Section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.acord-generator .Sub_Section_Title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--acord-navy);
    font-size: 18px;
    font-weight: 700;
}

.acord-generator input:not([type="checkbox"]),
.acord-generator select,
.acord-generator textarea,
.acord-generator .dropdown-input {
    width: 100%;
    min-height: 42px;
    height: 42px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #cbd6e3;
    border-radius: 4px;
    background: var(--acord-field);
    color: var(--acord-text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.acord-generator textarea {
    min-height: 126px;
    height: auto;
    resize: vertical;
}

.acord-generator input:not([type="checkbox"]):hover,
.acord-generator select:hover,
.acord-generator textarea:hover {
    border-color: #aebdce;
}

.acord-generator input:not([type="checkbox"]):focus,
.acord-generator select:focus,
.acord-generator textarea:focus,
.acord-generator .dropdown-input:focus {
    outline: none;
    border-color: var(--acord-yellow-dark);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 193, 6, 0.22);
}

.acord-generator input::placeholder,
.acord-generator textarea::placeholder {
    color: #8ea0b8;
    font-size: 14px;
    opacity: 1;
}

.acord-generator input[type="date"] {
    color: var(--acord-text);
}

.acord-generator .label_input_checkbox {
    min-height: 52px;
    margin: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    align-self: end;
    gap: 12px;
    border: 1px solid #dce5ee;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--acord-text);
    font-size: 14px;
    font-weight: 600;
}

.acord-generator input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--acord-yellow-dark);
    cursor: pointer;
}

.acord-generator .carrier-dropdown-wrapper,
.acord-generator .dropdown-wrapper {
    position: relative;
    width: 100%;
}

.acord-generator .carrier-dropdown-list,
.acord-generator .dropdown-list {
    top: calc(100% - 1px);
    border-color: #cbd6e3;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.12);
    z-index: 1100;
}

.acord-generator .carrier-dropdown-item,
.acord-generator .dropdown-list .dropdown-item {
    padding: 10px 12px;
    color: var(--acord-text);
    font-size: 14px;
    line-height: 1.25;
}

.acord-generator .carrier-dropdown-item:hover,
.acord-generator .carrier-dropdown-item.highlighted,
.acord-generator .dropdown-list .dropdown-item:hover,
.acord-generator .dropdown-list .dropdown-item.highlighted {
    background: #fff8dd;
    color: var(--acord-navy);
}

.acord-generator .navigation-buttons,
.acord-generator .buttons {
    width: 100%;
    max-width: 860px;
    margin: 26px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.acord-generator button,
.acord-generator .next_button,
.acord-generator .back_button,
.acord-generator #backBtn,
.acord-generator #nextBtn,
.acord-generator #submitBtn,
.acord-generator .download-btn,
.acord-generator .back-to-form-btn,
.acord-generator .acord-pdf-action {
    min-height: 46px;
    padding: 11px 26px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.acord-generator .acord-pdf-action {
    padding: 9px 15px;
    font-size: 14px;
}

.acord-generator #nextBtn,
.acord-generator #submitBtn,
.acord-generator .next_button,
.acord-generator .download-btn,
.acord-generator .acord-pdf-action-primary,
.acord-generator #saveAndReturnBtn,
.acord-generator .save_return_button {
    background: var(--acord-yellow);
    border-color: var(--acord-yellow);
    color: #111111;
}

.acord-generator #nextBtn:hover,
.acord-generator #submitBtn:hover,
.acord-generator .next_button:hover,
.acord-generator .download-btn:hover,
.acord-generator .acord-pdf-action-primary:hover,
.acord-generator #saveAndReturnBtn:hover,
.acord-generator .save_return_button:hover {
    background: var(--acord-yellow-dark);
    border-color: var(--acord-yellow-dark);
    color: #111111;
    transform: translateY(-1px);
}

.acord-generator #backBtn,
.acord-generator .back_button,
.acord-generator .save_other_policies_button,
.acord-generator .back-to-form-btn,
.acord-generator .acord-pdf-action-secondary {
    background: #ffffff;
    border-color: #cbd6e3;
    color: #334155;
}

.acord-generator #backBtn:hover,
.acord-generator .back_button:hover,
.acord-generator .save_other_policies_button:hover,
.acord-generator .back-to-form-btn:hover,
.acord-generator .acord-pdf-action-secondary:hover {
    background: #f8fafc;
    border-color: #aebdce;
    color: var(--acord-navy);
    transform: translateY(-1px);
}

.acord-generator button:disabled,
.acord-generator .next_button:disabled,
.acord-generator #submitBtn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.acord-generator .review-section,
.acord-generator #review-content .border-box {
    width: 100%;
    margin: 0 0 24px;
    padding: 22px 22px 20px;
    background: #f8fafc;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    box-shadow: none;
}

.acord-generator .review-section:last-child,
.acord-generator #review-content .border-box:last-child {
    margin-bottom: 0;
}

.acord-generator .review-section-title,
.acord-generator .review-header {
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid #dce5ee;
    color: var(--acord-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 700;
}

.acord-generator .review-header h3 {
    margin: 0;
    color: var(--acord-navy);
    font-size: 16px;
    font-weight: 700;
}

.acord-generator .review-edit-btn,
.acord-generator .edit-button {
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 6px;
    border: 0;
    background: #edf2ff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.acord-generator .review-edit-btn:hover,
.acord-generator .edit-button:hover {
    background: #e0e7ff;
    color: #3730a3;
    transform: none;
}

.acord-generator .review-row,
.acord-generator .review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 18px;
}

.acord-generator .review-field,
.acord-generator .review-grid>div {
    min-width: 0;
}

.acord-generator .review-field-label,
.acord-generator .review-label {
    margin: 0 0 5px;
    display: block;
    color: #63728a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.acord-generator .review-field-value,
.acord-generator .review-grid p {
    margin: 0;
    color: var(--acord-navy);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.acord-generator .loader-overlay {
    background: rgba(244, 247, 249, 0.86);
    backdrop-filter: blur(3px);
}

.acord-generator .loader-spinner {
    border-top-color: var(--acord-yellow);
}

.acord-generator .loader-text {
    color: var(--acord-navy);
    font-size: 15px;
}

.acord-generator .pdf-viewer-container,
.acord-generator .acord-pdf-result {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.acord-generator .acord-pdf-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.acord-generator .acord-pdf-toolbar,
.acord-generator .acord-pdf-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.acord-generator .acord-pdf-title,
.acord-generator .acord-pdf-title-text {
    width: 100%;
    text-align: center;
}

.acord-generator .acord-pdf-title h2,
.acord-generator .acord-pdf-title-text h2 {
    margin: 0;
    color: var(--acord-navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.acord-generator .acord-pdf-title p,
.acord-generator .acord-pdf-title-text p {
    margin: 6px 0 0;
    color: var(--acord-muted);
    font-size: 14px;
    line-height: 1.4;
}

.acord-generator .acord-pdf-actions,
.acord-generator .acord-pdf-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.acord-generator .acord-pdf-frame-wrap {
    width: 100%;
    min-height: 760px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--acord-line);
    border-radius: 8px;
    box-shadow: var(--acord-soft-shadow);
}

.acord-generator .acord-pdf-placeholder {
    min-height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acord-muted);
    font-size: 15px;
    font-weight: 700;
}

.acord-generator .acord-pdf-frame {
    display: block;
    width: 100%;
    height: 800px;
    border: 0;
    background: #ffffff;
}

.acord-generator .alert.alert-success {
    border: 1px solid #b7e4c7;
    border-radius: 8px;
    background: #ecfdf3;
    color: #14532d;
}

.acord-generator .login-modal {
    border-radius: 8px;
}

.acord-generator .login-modal .card-header {
    background: var(--acord-yellow) !important;
    color: #111111 !important;
}

.acord-generator .subscription-upsell-link {
    color: var(--acord-blue) !important;
}

.login-modal .loginOptionsButton {
    padding: 0 5px;
}

.login-modal .loginOptionsButton a {
    display: block;
    width: 100%;
}

@media (max-width: 991px) {
    .login-modal .loginOptionsButton {
        padding: 0 10px;
    }
}

@media (max-width: 900px) {
    .acord-generator {
        width: 100%;
        max-width: 100%;
        padding: 24px 14px 40px;
    }

    .acord-generator .acord-corner-actions {
        position: static;
        width: 100%;
        justify-content: center;
        margin: 0 auto 18px;
    }

    .acord-generator .heading {
        margin-bottom: 24px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .acord-generator .heading .center,
    .acord-generator .heading h1 {
        font-size: 21px;
        white-space: normal;
    }

    .acord-generator .step-progress,
    .acord-generator .stepper {
        justify-content: center !important;
        overflow-x: auto;
        padding: 4px 15px 16px !important;
        margin-bottom: 14px;
        scrollbar-width: thin;
        max-width: 100% !important;
    }

    .acord-generator .step-progress::before,
    .acord-generator .step-progress::after,
    .acord-generator .stepper::before,
    .acord-generator .stepper::after {
        content: "";
        margin: auto;
    }

    .acord-generator .step-connector,
    .acord-generator .step-line {
        flex: 1 1 auto;
        min-width: 28px;
        max-width: 56px;
    }

    .acord-generator .Producer_Details_Box,
    .acord-generator .page>.border-box,
    .acord-generator #review-content {
        padding: 30px 22px;
    }

    .acord-generator .Address_subform,
    .acord-generator .Contact_subform,
    .acord-generator .form-rows,
    .acord-generator .review-row,
    .acord-generator .review-grid {
        grid-template-columns: 1fr;
    }

    .acord-generator .navigation-buttons,
    .acord-generator .buttons {
        max-width: 860px;
    }

    .acord-generator .acord-pdf-toolbar,
    .acord-generator .acord-pdf-header-row {
        align-items: stretch;
        flex-direction: column;
    }

    .acord-generator .acord-pdf-actions,
    .acord-generator .acord-pdf-actions-row {
        width: 100%;
        justify-content: center;
    }

    .acord-generator .acord-pdf-action {
        flex: 1 1 auto;
        max-width: 260px;
    }

    .acord-generator .acord-pdf-frame-wrap {
        min-height: 620px;
    }

    .acord-generator .acord-pdf-frame {
        height: 660px;
    }
}

@media (max-width: 760px) {

    .acord-generator .step-progress,
    .acord-generator .stepper {
        justify-content: flex-start !important;
    }

    /* Fixed width on mobile since it scrolls horizontally */
    .acord-generator .step-connector,
    .acord-generator .step-line {
        flex: 0 0 48px;
    }
}


@media (max-width: 520px) {

    .acord-generator .Producer_Details_Box,
    .acord-generator .page>.border-box,
    .acord-generator #review-content {
        padding: 24px 16px;
    }

    .acord-generator .Producer_Details_Text,
    .acord-generator .page h1.center,
    .acord-generator #review-content>h1.center {
        font-size: 22px;
    }

    .acord-generator .navigation-buttons,
    .acord-generator .buttons {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .acord-generator .navigation-buttons>*,
    .acord-generator .buttons>* {
        width: 100%;
    }

    .acord-generator button,
    .acord-generator .next_button,
    .acord-generator .back_button,
    .acord-generator #backBtn,
    .acord-generator #nextBtn,
    .acord-generator #submitBtn {
        width: 100%;
    }
}

/* --- LOADING SPINNER --- */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    backdrop-filter: blur(3px);
}

.loader-overlay.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top-color: var(--acord-yellow, #ffc107);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-size: 15px;
    color: var(--acord-navy, #333);
    font-weight: bold;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.my-textarea {
    width: 100% !important;
    height: 200px !important;
    min-height: 140px !important;
    max-height: 140px !important;
    resize: none !important;
}

/* ── Email Modal ─────────────────────────────────────── */
.acord-email-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
}

.acord-email-overlay.is-visible {
    display: flex;
}

.acord-email-modal {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    animation: emailModalIn 0.25s ease;
}

@keyframes emailModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.acord-email-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.acord-email-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1f2933;
}

.acord-email-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #667085;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.acord-email-close-btn:hover {
    background: #fee2e2;
    color: #b42318;
}

.acord-email-modal-body {
    padding: 24px;
}

.acord-email-field {
    margin-bottom: 18px;
}

.acord-email-field:last-child {
    margin-bottom: 0;
}

.acord-email-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}

.acord-email-field label .required-star {
    color: #b42318;
    margin-left: 2px;
}

.acord-email-field input,
.acord-email-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2933;
    background: #ffffff;
    border: 1px solid #cbd6e3;
    border-radius: 7px;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

.acord-email-field input:focus,
.acord-email-field textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.18);
}

.acord-email-field input.is-invalid,
.acord-email-field textarea.is-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.acord-email-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.55;
}

.acord-email-field .field-error {
    display: none;
    font-size: 12px;
    color: #b42318;
    margin-top: 5px;
    font-weight: 500;
}

.acord-email-field .field-error.is-visible {
    display: block;
}

.acord-email-attachment-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fef9e7;
    border: 1px solid #fde68a;
    border-radius: 7px;
    font-size: 13px;
    color: #78350f;
    margin-bottom: 20px;
}

.acord-email-attachment-note i {
    font-size: 16px;
    flex-shrink: 0;
}

.acord-email-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.acord-email-cancel-btn {
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s cubic-bezier(0.2, 0, 0.2, 1), color 0.2s ease;
}

.acord-email-cancel-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px) scale(1.02);
}

.acord-email-cancel-btn:active {
    transform: translateY(1px) scale(0.97);
    background: #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1) inset;
}

.acord-email-send-btn {
    min-height: 42px;
    padding: 10px 26px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: var(--acord-yellow, #ffc107);
    color: #111;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, transform 0.18s, opacity 0.18s;
}

.acord-email-send-btn:hover {
    background: var(--acord-yellow-dark, #e5ac00);
    color: #111;
    transform: translateY(-1px);
}

.acord-email-send-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.acord-email-send-btn .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.acord-email-send-btn.is-loading .btn-spinner {
    display: inline-block;
}

.acord-email-send-btn.is-loading .btn-label {
    opacity: 0.6;
}

.acord-email-server-error {
    display: none;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 7px;
    font-size: 13px;
    color: #991b1b;
    margin-bottom: 16px;
}

.acord-email-server-error.is-visible {
    display: block;
}

/* ── Email action button in PDF toolbar ─────────────── */
.acord-generator .acord-pdf-action-email {
    background: #ffffff;
    border-color: #cbd6e3;
    color: #334155;
}

.acord-generator .acord-pdf-action-email:hover {
    background: #f8fafc;
    border-color: #aebdce;
    color: var(--acord-navy);
    transform: translateY(-1px);
}

/* ── Toast notification ─────────────────────────────── */
.acord-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.18);
    animation: toastSlideIn 0.35s ease;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.acord-toast.is-hiding {
    opacity: 0;
    transform: translateX(20px);
}

.acord-toast-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.acord-toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*
 * Reusable ACORD form visual system
 *
 * Apply `.acord-form` to an ACORD form page, then use the `acord-form-*`
 * classes where available. Legacy form classes are included as compatibility
 * aliases so this layer can be adopted without changing existing form logic.
 */

.acord-form {
    --acord-form-navy: #111945;
    --acord-form-ink: #263a56;
    --acord-form-muted: #6b7891;
    --acord-form-gold: #ffb800;
    --acord-form-gold-deep: #dca400;
    --acord-form-gold-soft: #fff5d7;
    --acord-form-canvas: #f7f9fc;
    --acord-form-panel: #ffffff;
    --acord-form-line: #dfe5ef;
    --acord-form-soft-line: #ebeff5;
    --acord-form-field: #ffffff;
    --acord-form-shadow: 0 10px 28px rgba(17, 32, 69, 0.10);
    --acord-form-radius: 14px;
    color: var(--acord-form-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.acord-form.acord-form-container {
    width: 100%;
    max-width: 1320px;
    min-height: calc(100vh - 110px);
    margin: 0 auto;
    padding: 30px 24px 52px;
    box-sizing: border-box;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 7% 12%, rgba(255, 204, 54, 0.10), transparent 17%),
        var(--acord-form-canvas);
}

.acord-form.acord-form-container *,
.acord-form.acord-form-container *::before,
.acord-form.acord-form-container *::after {
    box-sizing: border-box;
}

.acord-form .heading {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto 18px;
    padding: 0 8px !important;
    background: transparent;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.acord-form .heading .center,
.acord-form .heading h1 {
    color: var(--acord-form-navy);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.acord-form .heading h1::after {
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: var(--acord-form-gold);
    content: "";
}

/* Stepper */
.acord-form .acord-form-stepper,
.acord-form .step-progress {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto 27px;
    padding: 0;
}

.acord-form .acord-form-step,
.acord-form .step-item {
    flex: 0 0 44px;
    height: 70px;
    cursor: pointer;
}

.acord-form .step-circle {
    width: 42px;
    height: 42px;
    border: 2px solid #dbe1eb;
    background: #ffffff;
    color: #151d45;
    box-shadow: 0 2px 6px rgba(18, 29, 69, 0.04);
}

.acord-form .step-label {
    top: 49px;
    width: 94px;
    color: #4c5879;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.28;
    white-space: normal;
}

.acord-form .step-item.active .step-circle {
    border-color: var(--acord-form-gold);
    background: var(--acord-form-gold);
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(255, 184, 0, 0.27);
}

.acord-form .step-item.completed .step-circle {
    border-color: var(--acord-form-gold);
    background: #ffffff;
    color: #151d45;
}

.acord-form .step-item.completed .step-circle::before {
    color: var(--acord-form-gold);
}

.acord-form .step-item.active .step-label,
.acord-form .step-item.completed .step-label {
    color: #151d45;
}

.acord-form .step-item.active .step-label {
    color: #e5a200;
}

.acord-form .step-connector {
    height: 2px;
    margin-top: 20px;
    background: #dce2eb;
}

.acord-form .step-connector.completed {
    background: #ffbf1b;
}

/* Form cards and sections */
.acord-form .acord-form-content,
.acord-form #acord25Form {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0;
}

.acord-form .acord-form-card,
.acord-form .Producer_Details_Box,
.acord-form .page>.border-box,
.acord-generator .page>.border-box,
.acord-generator-24 .border-box {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 34px;
    border: 1px solid var(--acord-form-line);
    border-radius: var(--acord-form-radius);
    background: var(--acord-form-panel);
    box-shadow: var(--acord-form-shadow);
}

.acord-form .acord-form-section-header,
.acord-form .Producer_Details_Text {
    margin: 0 0 26px;
    padding: 0 0 0 13px;
    border: 0;
    border-left: 4px solid var(--acord-form-gold);
    color: var(--acord-form-navy);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

.acord-form .acord-form-section-header::after,
.acord-form .Producer_Details_Text::after {
    display: none;
}

/* Informational rail used by the non-policy ACORD 25 form pages. */
.acord-generator-25 .acord-form-card.acord-form-with-rail.active,
.acord-generator-24 .acord-form-card.acord-form-with-rail {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    min-height: 320px;
    max-width: 1220px;
    overflow: visible;
    padding: 0;
    border-color: #e3e8f0;
    box-shadow: 0 12px 32px rgba(17, 32, 69, 0.12);
}

.acord-form .acord-form-page-rail {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    padding: 35px 24px 28px;
    border-top-left-radius: var(--acord-form-radius, 14px);
    border-bottom-left-radius: var(--acord-form-radius, 14px);
    background:
        radial-gradient(circle at 75% 19%, rgba(255, 189, 10, 0.48) 0 1%, transparent 2%),
        radial-gradient(circle at 18% 15%, rgba(255, 194, 30, 0.2), transparent 28%),
        linear-gradient(160deg, #fff9df 0%, #fff5cf 56%, #fffdf5 100%);
}

.acord-form .acord-form-page-rail::before {
    position: absolute;
    top: 92px;
    left: -44px;
    width: 240px;
    height: 240px;
    border: 2px solid rgba(255, 192, 27, 0.24);
    border-radius: 48% 52% 45% 55%;
    box-shadow: 23px 25px 0 -3px rgba(255, 204, 72, 0.14), 47px 48px 0 -8px rgba(255, 194, 27, 0.11);
    content: "";
    transform: rotate(-24deg);
}

.acord-form .acord-form-page-rail-icon,
.acord-form .acord-form-page-rail-copy {
    position: relative;
    z-index: 1;
}

.acord-form .acord-form-page-rail-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 35px;
    place-items: center;
    border-radius: 50%;
    background: #fff7da;
    color: #dca400;
    font-size: 1.25rem;
}

.acord-form .acord-form-page-rail-copy h2 {
    margin: 0;
    color: #111945;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
}

.acord-form .acord-form-page-rail-copy h2::after {
    display: block;
    width: 32px;
    height: 3px;
    margin: 15px 0;
    border-radius: 99px;
    background: #d8aa16;
    content: "";
}

.acord-form .acord-form-page-rail-copy p {
    max-width: 168px;
    margin: 0;
    color: #38425f;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

.acord-form .acord-form-page-content {
    min-width: 0;
    padding: 27px 30px 36px;
    background: #ffffff;
    border-top-right-radius: var(--acord-form-radius, 14px);
    border-bottom-right-radius: var(--acord-form-radius, 14px);
}

.acord-form .acord-form-page-content .Producer_Details_Text {
    margin-bottom: 22px;
}

.acord-form .acord-form-section,
.acord-form .Sub_Section {
    padding: 0 0 26px;
    border-bottom: 1px solid var(--acord-form-soft-line);
}

.acord-form .acord-form-section:last-child,
.acord-form .Sub_Section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.acord-form .acord-form-section-title:not(.acord-form-section-header),
.acord-form .Sub_Section_Title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 15px;
    padding: 0;
    color: var(--acord-form-navy);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}

.acord-form .Sub_Section_Title::before {
    width: 3px;
    height: 18px;
    flex: 0 0 3px;
    border-radius: 99px;
    background: var(--acord-form-gold);
    content: "";
}

body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-form .policy-form-area>.Sub_Section_Title::before {
    display: none;
}

.acord-form .Inputs {
    gap: 24px;
}

.acord-form .acord-form-row,
.acord-form .Address_subform,
.acord-form .Contact_subform,
.acord-form .form-rows {
    column-gap: 22px;
    row-gap: 18px;
}

.acord-form .Address_subform.subform_divider {
    margin-top: 22px;
    padding-top: 22px;
    border-color: var(--acord-form-soft-line);
}

/* Fields */
.acord-form .acord-form-field,
.acord-form .label_input {
    gap: 6px;
    color: var(--acord-form-ink);
    font-size: 0.75rem;
    font-weight: 800;
}

.acord-form .acord-form-label,
.acord-form .label_input>div:first-child,
.acord-form .label_input label {
    color: #344865;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
}

.acord-generator-24 form,
body.acord-policy-details-active .acord-generator-24 #policy-details-box.is-policy-editor .policy-section-card.is-selected .policy-form-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.acord-form .label_input:not(.label_input_checkbox)>div:last-child {
    position: relative;
}

.acord-form .label_input:not(.label_input_checkbox)>div:last-child::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: #c38f09;
    font-family: FontAwesome;
    font-size: 0.84rem;
    line-height: 1;
    content: "\f0f6";
    pointer-events: none;
    transform: translateY(-50%);
}

/* Textareas begin at the top, so keep their field icon aligned to the first line. */
.acord-form .label_input:not(.label_input_checkbox)>.acord-form-textarea-wrap:last-child::before {
    top: 15px;
    transform: none;
}

.acord-form .acord-form-input,
.acord-form .acord-form-select,
.acord-form .acord-form-textarea,
.acord-form input:not([type="checkbox"]),
.acord-form select,
.acord-form textarea,
.acord-form .dropdown-input {
    min-height: 38px;
    height: 38px;
    padding: 8px 11px 8px 34px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    background: var(--acord-form-field);
    color: var(--acord-form-ink);
    font-size: 0.74rem;
    font-weight: 500;
    box-shadow: none;
}



.acord-form textarea,
.acord-form .acord-form-textarea {
    min-height: 150px;
    height: auto;
    padding-top: 11px;
    line-height: 1.45;
}

.acord-form input:not([type="checkbox"]):hover,
.acord-form select:hover,
.acord-form textarea:hover {
    border-color: #bdcad9;
}

.acord-form input:not([type="checkbox"]):focus,
.acord-form select:focus,
.acord-form textarea:focus,
.acord-form .dropdown-input:focus {
    border-color: var(--acord-form-gold-deep);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.17);
}

.acord-form input::placeholder,
.acord-form textarea::placeholder {
    color: #96a2b5;
    font-size: 0.72rem;
}

/* Override browser autofill background */
.acord-form input:-webkit-autofill,
.acord-form input:-webkit-autofill:hover, 
.acord-form input:-webkit-autofill:focus, 
.acord-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: var(--acord-form-ink, #151515) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.acord-form .label_input_checkbox {
    min-height: 38px;
    margin: 0;
    padding: 8px 11px;
    border-color: #dfe6ef;
    border-radius: 6px;
    background: #ffffff;
    color: var(--acord-form-ink);
    font-size: 0.72rem;
    font-weight: 700;
}

.acord-form input[type="checkbox"] {
    accent-color: var(--acord-form-gold-deep);
}

.acord-form .carrier-dropdown-list,
.acord-form .dropdown-list {
    border-color: #d8e0eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 24px rgba(17, 32, 69, 0.14);
}

.acord-form .carrier-dropdown-item,
.acord-form .dropdown-list .dropdown-item {
    color: var(--acord-form-ink);
    font-size: 0.75rem;
}

.acord-form .carrier-dropdown-item:hover,
.acord-form .carrier-dropdown-item.highlighted,
.acord-form .dropdown-list .dropdown-item:hover,
.acord-form .dropdown-list .dropdown-item.highlighted {
    background: var(--acord-form-gold-soft);
    color: var(--acord-form-navy);
}

/* Review */
.acord-form .acord-form-review {
    gap: 16px;
}

.acord-form .review-section {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--acord-form-line);
    border-radius: 10px;
    background: linear-gradient(105deg, #fffdf6, #ffffff 72%);
}

.acord-form .review-section-title {
    margin-bottom: 15px;
    padding: 0 0 11px 10px;
    border-color: var(--acord-form-soft-line);
    border-left: 3px solid var(--acord-form-gold);
    color: var(--acord-form-navy);
    font-size: 0.86rem;
    font-weight: 800;
}

.acord-form .review-edit-btn {
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid #f0d271;
    border-radius: 6px;
    background: #fff8df;
    color: #8d6600;
    font-size: 0.7rem;
    font-weight: 800;
}

.acord-form .review-edit-btn:hover {
    background: #ffefba;
    color: #6e5000;
}

.acord-form .review-row {
    column-gap: 28px;
    row-gap: 15px;
}

.acord-form .review-field-label {
    color: #718099;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.acord-form .review-field-value {
    color: var(--acord-form-ink);
    font-size: 0.76rem;
    font-weight: 700;
}

.acord-form .review-section-subheader {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--acord-form-soft-line);
    color: var(--acord-form-navy);
    font-size: 0.72rem;
    font-weight: 800;
}

.acord-form .review-field:empty {
    display: none;
}

/* ACORD 24 retains its static review markup, so neutralize its legacy panel
   sizing and card colour while using the same visual treatment as ACORD 25. */
.acord-form #review-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 27px 30px 36px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.acord-form #review-content>h1.center,
.acord-form #review-content>.Producer_Details_Text {
    margin: 0 0 22px;
    padding: 0 0 0 13px;
    border: 0;
    border-left: 4px solid var(--acord-form-gold);
    color: var(--acord-form-navy);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
}

.acord-form #review-content>h1.center::after,
.acord-form #review-content>.Producer_Details_Text::after {
    display: none;
}

.acord-form #review-content .review-section {
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid var(--acord-form-line);
    border-radius: 10px;
    background: linear-gradient(105deg, #fffdf6, #ffffff 72%);
    box-shadow: none;
}

.acord-form #review-content .review-section:last-of-type {
    margin-bottom: 0;
}

/* Actions */
.acord-form .acord-form-actions,
#acord25Form .navigation-buttons,
.acord-form .navigation-buttons,
.acord-generator-24 .navigation-buttons,
.acord-generator-24 .buttons {
    width: 100%;
    max-width: 980px;
    margin: 24px auto 0;
    padding: 0;
}

body.acord-step-with-rail-active #acord25Form .navigation-buttons,
body.acord-step-with-rail-active .acord-form .acord-form-actions,
body.acord-step-with-rail-active .acord-form .navigation-buttons,
.acord-generator-24 .page:has(.acord-form-with-rail) .navigation-buttons,
.acord-generator-24 .page:has(.acord-form-with-rail) .buttons,
.acord-form .acord-form-card.acord-form-with-rail~.navigation-buttons,
.acord-form .acord-form-card.acord-form-with-rail~.buttons {
    max-width: 1220px;
}

.acord-form .acord-form-actions-group {
    align-items: center;
}

.acord-form .acord-form-button,
.acord-form #nextBtn,
.acord-form #backBtn,
.acord-form #submitBtn,
.acord-form #saveAndReturnBtn,
.acord-form button:not(.policy-selector-trigger):not(.policy-editor-back):not(.review-edit-btn) {
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(17, 32, 69, 0.08);
}

.acord-form .acord-form-button-primary,
.acord-form #nextBtn,
.acord-form .next_button,
.acord-form #submitBtn {
    border-color: var(--acord-form-gold);
    background: linear-gradient(135deg, #ffc71a, #ffae00);
    color: #1e1b10;
}

.acord-form .acord-form-button-primary:hover,
.acord-form #nextBtn:hover,
.acord-form .next_button:hover,
.acord-form #submitBtn:hover {
    border-color: #f0a500;
    background: linear-gradient(135deg, #ffd041, #ffb300);
    color: #1e1b10;
}

.acord-form .acord-form-button-secondary,
.acord-form #backBtn,
.acord-form .back_button,
.acord-form #saveAndReturnBtn,
.acord-form .save_return_button {
    border-color: #d6dee9;
    background: #ffffff;
    color: #40516b;
}

.acord-form .acord-form-button-secondary:hover,
.acord-form #backBtn:hover,
.acord-form .back_button:hover,
.acord-form #saveAndReturnBtn:hover,
.acord-form .save_return_button:hover {
    border-color: #bdc9d8;
    background: #f8fafc;
    color: var(--acord-form-navy);
}

/* Preserve the dedicated Policy Details editor as the visual benchmark. */
body:is(.acord25-policy-details-active, .acord-policy-details-active) .acord-form #policy-details-box.is-policy-editor {
    max-width: 100%;
}

@media (max-width: 900px) {
    .acord-form.acord-form-container {
        padding: 24px 16px 42px;
    }

    .acord-form .acord-corner-actions {
        position: static;
        width: 100%;
        justify-content: center;
        margin: 0 auto 18px;
    }

    .acord-form .heading {
        margin-bottom: 18px;
    }

    .acord-form .heading .center,
    .acord-form .heading h1 {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .acord-form .acord-form-card,
    .acord-form .Producer_Details_Box {
        padding: 28px 24px;
    }

    .acord-form .acord-form-card.acord-form-with-rail.active,
    .acord-form .acord-form-card.acord-form-with-rail {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 0;
    }

    .acord-form .acord-form-page-rail {
        min-height: 185px;
        padding: 26px 24px;
        border-radius: var(--acord-form-radius, 14px) var(--acord-form-radius, 14px) 0 0;
    }

    .acord-form .acord-form-page-rail::before {
        top: 28px;
        left: auto;
        right: -38px;
    }

    .acord-form .acord-form-page-rail-icon {
        margin-bottom: 18px;
    }

    .acord-form .acord-form-page-content {
        padding: 28px 24px;
        border-radius: 0 0 var(--acord-form-radius, 14px) var(--acord-form-radius, 14px);
    }

    .acord-form .acord-form-stepper,
    .acord-form .step-progress {
        margin-bottom: 22px;
    }

    /* ACORD 24 collapsible policy cards */
    .acord-form .collapsible-card {
        padding: 20px 24px !important;
    }

    .acord-form .collapsible-card.collapsed {
        padding: 18px 24px !important;
    }

    .acord-form .collapsible-card.expanded {
        padding: 22px 24px 36px !important;
    }

    .acord-form .policy-card-header h1.center,
    .acord-form .policy-card-header h2.center {
        font-size: 18px !important;
    }
}

@media (max-width: 760px) {

    .acord-form .acord-form-row,
    .acord-form .Address_subform,
    .acord-form .Contact_subform,
    .acord-form .form-rows,
    .acord-form .review-row {
        grid-template-columns: 1fr;
    }

    .acord-form .acord-form-stepper,
    .acord-form .step-progress {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 48px 18px;
        -webkit-overflow-scrolling: touch;
    }

    .acord-form .step-connector {
        flex: 0 0 44px;
    }

    .acord-form .step-item {
        flex: 0 0 42px;
        min-width: 42px;
    }

    .acord-form .step-label {
        width: 92px;
        font-size: 10px;
    }

    .acord-form .step-connector {
        flex: 0 0 68px;
        min-width: 68px;
    }

    /* ACORD 24 collapsible policy cards */
    .acord-form .collapsible-card {
        padding: 18px 16px !important;
    }

    .acord-form .collapsible-card.collapsed {
        padding: 16px 16px !important;
    }

    .acord-form .collapsible-card.expanded {
        padding: 18px 16px 30px !important;
    }

    .acord-form .policy-card-header h1.center,
    .acord-form .policy-card-header h2.center {
        font-size: 16px !important;
    }

    .acord-form .policy-card-header .toggle-icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .acord-form .review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .acord-form.acord-form-container {
        padding: 20px 12px 34px;
    }

    .acord-form .heading .center,
    .acord-form .heading h1 {
        font-size: 1.25rem;
    }

    .acord-form .acord-form-card,
    .acord-form .Producer_Details_Box {
        padding: 22px 16px;
        border-radius: 10px;
    }

    .acord-form .acord-form-card.acord-form-with-rail.active,
    .acord-form .acord-form-card.acord-form-with-rail {
        padding: 0;
    }

    .acord-form .acord-form-page-rail,
    .acord-form .acord-form-page-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .acord-form .acord-form-page-rail {
        min-height: 155px;
    }

    .acord-form .acord-form-section-header,
    .acord-form .Producer_Details_Text {
        margin-bottom: 22px;
        font-size: 1.08rem;
    }

    .acord-form .acord-form-actions,
    .acord-form .navigation-buttons,
    .acord-form .acord-form-actions-group {
        width: 100%;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px !important;
        margin-left: 0 !important;
    }

    .acord-form .navigation-buttons > div[style] {
        flex-direction: column;
        width: 100%;
    }

    .acord-form .acord-form-button,
    .acord-form #backBtn,
    .acord-form #nextBtn,
    .acord-form #submitBtn,
    .acord-form #saveAndReturnBtn,
    .acord-form .back_button,
    .acord-form .next_button,
    .acord-form .save_return_button,
    .acord-form .save_other_policies_button {
        width: 100%;
    }

    .acord-form .review-section {
        padding: 15px;
    }

    /* ACORD 24 collapsible policy cards */
    .acord-form .collapsible-card {
        padding: 16px 14px !important;
        border-radius: 10px !important;
    }

    .acord-form .collapsible-card.collapsed {
        padding: 14px 14px !important;
    }

    .acord-form .collapsible-card.expanded {
        padding: 16px 14px 26px !important;
    }

    .acord-form .policy-card-header h1.center,
    .acord-form .policy-card-header h2.center {
        font-size: 15px !important;
    }

    .acord-form .prop-section-header {
        font-size: 0.72rem;
    }
}

/* ── Property Details Form Layout (Pill Checkboxes, Grids & Coverages) ── */
.prop-section {
    padding-top: 6px;
}

.prop-section-header {
    margin-bottom: 5px;
    color: #8da0b8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Review Sub-Headers (e.g. Causes of Loss, Deductibles, Limits, Coverages) */
.acord-form .review-sub-header,
.acord-generator .review-sub-header {
    grid-column: 1 / -1;
    margin-top: 16px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Causes of Loss Pill Checkboxes */
.pill-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.pill-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.pill-checkbox input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border: 1.5px solid #cbd6e2;
    border-radius: 6px;
    background-color: #ffffff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.pill-badge::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 1.5px solid #cbd6e2;
    border-radius: 3px;
    background: #fff;
    content: '';
    transition: all 0.2s ease;
}

.pill-checkbox input[type="checkbox"]:checked+.pill-badge {
    border-color: var(--acord-form-gold, #f5c106);
    background-color: #fffdf0;
    color: #1e293b;
    font-weight: 700;
}

.pill-checkbox input[type="checkbox"]:checked+.pill-badge::before {
    border-color: var(--acord-form-gold, #f5c106);
    background-color: var(--acord-form-gold, #f5c106);
    box-shadow: inset 0 0 0 2.5px #ffffff;
}

.pill-checkbox:hover .pill-badge {
    border-color: var(--acord-form-gold, #f5c106);
}

.other-cause-desc-wrapper {
    max-width: 440px;
    margin-top: 8px;
}

.other-cause-desc-wrapper input {
    border-radius: 6px;
}

/* Deductibles & Limits 3-column Grid */
.deductibles-grid,
.limits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px 14px;
}

.deductibles-grid .form-group label,
.limits-grid .form-group label {
    display: block;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
}

.deductibles-grid .form-group input,
.limits-grid .form-group input {
    width: 100%;
    border-radius: 6px;
}

/* Other Coverage Grid / Row Layout */
.other-coverage-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-coverage-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.other-cov-desc-col {
    display: flex;
    flex: 2;
    flex-direction: column;
    gap: 2px;
}

.other-cov-limit-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.coverage-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.coverage-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--acord-form-gold, #f5c106);
    cursor: pointer;
}

.other-cov-limit-col label {
    display: block;
    margin-bottom: 0;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
}

.other-cov-desc-col input,
.other-cov-limit-col input {
    width: 100%;
    border-radius: 6px;
    padding-left: 34px !important;
}

.prop-section input[type="text"]:focus {
    border-color: var(--acord-form-gold, #f5c106);
    box-shadow: 0 0 0 3px rgba(245, 193, 6, 0.2);
    outline: none;
}

@media (max-width: 768px) {

    .deductibles-grid,
    .limits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .other-coverage-item {
        flex-direction: column;
        gap: 12px;
    }

    .other-cov-desc-col,
    .other-cov-limit-col {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .deductibles-grid,
    .limits-grid {
        grid-template-columns: 1fr;
    }
}
.carrier-dropdown-list.disable-hover .carrier-dropdown-item:hover,
.acord-generator .carrier-dropdown-list.disable-hover .carrier-dropdown-item:hover,
.acord-form .carrier-dropdown-list.disable-hover .carrier-dropdown-item:hover {
    background-color: transparent;
}
.carrier-dropdown-list.disable-hover .carrier-dropdown-item.highlighted,
.acord-generator .carrier-dropdown-list.disable-hover .carrier-dropdown-item.highlighted,
.acord-form .carrier-dropdown-list.disable-hover .carrier-dropdown-item.highlighted {
    background-color: #fff8e1;
}


.carrier-dropdown-list.disable-hover .carrier-dropdown-item:hover,
.acord-generator .carrier-dropdown-list.disable-hover .carrier-dropdown-item:hover,
.acord-form .carrier-dropdown-list.disable-hover .carrier-dropdown-item:hover {
    background-color: transparent;
}
.carrier-dropdown-list.disable-hover .carrier-dropdown-item.highlighted,
.acord-generator .carrier-dropdown-list.disable-hover .carrier-dropdown-item.highlighted,
.acord-form .carrier-dropdown-list.disable-hover .carrier-dropdown-item.highlighted {
    background-color: #fff8e1;
}

