.mp-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 12, 28, 0.72);
    overflow-y: auto;
}

.mp-modal.is-open {
    display: flex;
}

.mp-modal-panel {
    position: relative;
    width: min(100%, 845px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 10px;
    background: #f8f9fc;
    color: #102c52;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
    padding: 58px 70px 44px;
}

.mp-modal-panel--success {
    width: min(100%, 966px);
    text-align: center;
    padding: 50px 70px 56px;
}

.mp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 44, 82, 0.06);
    color: #102c52;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.mp-modal-art {
    position: absolute;
    top: 34px;
    right: 0;
    width: 290px;
    max-width: 36%;
    pointer-events: none;
    opacity: 0.95;
}

.mp-modal-kicker {
    color: #d88a00;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mp-modal-title {
    color: #102c52 !important;
    font-size: clamp(34px, 4vw, 38px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -1.1px;
    margin: 0 0 14px;
    max-width: 520px;
}

.mp-modal-copy {
    color: #102c52;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 28px;
}

.mp-funding-summary {
    position: relative;
    border: 1px solid #dde5ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(16, 44, 82, 0.06);
    padding: 22px 20px 20px;
    margin: 26px 0 24px;
    max-width: 700px;
}

.mp-funding-summary-title {
    color: #d88a00;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.mp-lenders-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 4px;
    background: #dfe7f1;
    color: #102c52;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 10px;
}

.mp-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mp-summary-card {
    min-height: 64px;
    border: 1px solid #d7e0eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 11px 12px;
}

.mp-summary-label {
    display: block;
    color: #667692;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.mp-summary-value {
    color: #102c52;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.mp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 16px;
    max-width: 620px;
}

.mp-form-grid--compare {
    grid-template-columns: 255px 255px;
    max-width: 540px;
}

.mp-form-field--full {
    grid-column: 1 / -1;
}

.mp-label {
    display: block;
    color: #102c52;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mp-input,
.mp-select,
.mp-textarea {
    width: 100%;
    border: 1px solid #cbd4df;
    border-radius: 999px;
    background: #ffffff;
    color: #102c52;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: none;
    transition: 0.2s ease;
}

.mp-input,
.mp-select {
    height: 43px;
    padding: 0 31px;
}

.mp-textarea {
    min-height: 96px;
    resize: vertical;
    border-radius: 24px;
    padding: 22px 31px;
}

.mp-input::placeholder,
.mp-textarea::placeholder {
    color: #898989;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mp-input:focus,
.mp-select:focus,
.mp-textarea:focus {
    border-color: #144ba7;
}

.mp-consent {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #141827;
    font-size: 14px;
    line-height: 1.3;
    margin: 18px 0 24px;
    max-width: 620px;
}

.mp-consent input {
    width: 21px;
    height: 21px;
    accent-color: #102c52;
    flex: 0 0 auto;
}

.mp-submit-btn {
    width: min(100%, 348px);
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: #ff6b6f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.mp-submit-btn:hover:not(:disabled) {
    background: #f95b60;
    color: #ffffff;
}

.mp-submit-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.mp-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: center;
    max-width: 618px;
    border-radius: 28px;
    background: #e8f3ff;
    padding: 16px 18px;
    margin-top: 34px;
}

.mp-trust-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 10px;
    color: #144ba7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
}

.mp-trust-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: #144ba7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mp-success-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 1px solid #19b35b;
    background: #d9f7e4;
    color: #12a052;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 19px;
}

.mp-success-kicker {
    color: #d88a00;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mp-success-title {
    color: #102c52 !important;
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 550;
    letter-spacing: -1.2px;
    margin: 0 auto 14px;
    max-width: 560px;
}

.mp-success-copy {
    color: #617087;
    font-size: 14px;
    margin-bottom: 32px;
}

.mp-success-card {
    width: min(100%, 678px);
    margin: 0 auto 24px;
    text-align: left;
    border: 1px solid #dfe6f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(16, 44, 82, 0.08);
    padding: 32px;
}

.mp-success-card h3 {
    color: #102c52;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
}

.mp-success-card p {
    color: #56647d;
    font-size: 14px;
    line-height: 1.55;
    max-width: 560px;
    margin-bottom: 24px;
}

.mp-success-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 44px;
    margin-bottom: 26px;
}

.mp-success-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #102c52;
    font-size: 13px;
    font-weight: 900;
}

.mp-success-benefit-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d9f7e4;
    color: #12a052;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 900;
}

.mp-success-cta {
    width: 100%;
    min-height: 57px;
    border: 0;
    border-radius: 999px;
    background: #ff6b6f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none;
}

.mp-success-cta:hover {
    background: #f95b60;
    color: #ffffff;
}

.mp-credit-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #102c52;
    font-size: 12px;
    text-align: center;
    margin-top: 23px;
}

.mp-callback-link {
    border: 0;
    background: transparent;
    color: #102c52;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    margin-top: 2px;
    padding: 0;
}


/* ===== app/Views/layouts/header.php ===== */
/* Floating Edit Button Styles */
.floating-cookie-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Change to right: 20px if preferred */
    background-color: #ffffff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9998; /* Just below the modal (10000) */
    transition: all 0.2s ease-in-out;
}

.floating-cookie-btn:hover {
    background-color: #f8f9fa;
    color: #007bff; /* Highlights in your primary color */
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

.cookie-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    margin-top: 0;
}

.cookie-option {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.cookie-option p {
    margin: 5px 0 0 25px;
    font-size: 13px;
    color: #666;
}

.cookie-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.btn-primary {
    background-color: rgb(16, 43, 82);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondary {
    background-color: #007bff !important;
    color: #333;
    border: 1px solid #007bff !important;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary:hover {
    background-color: rgb(16, 43, 82) !important;
}


[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.mp-modal { z-index: 1000; }
.mp-modal-panel { margin: auto; }
.lead-form-error { color: #a82323; background: #fff0ef; padding: 12px; border-radius: 6px; }
.cookie-banner, .cookie-modal { z-index: 1100; }
.cookie-buttons button, .cookie-modal-buttons button { border: 0; border-radius: 6px; padding: 10px 16px; background: #1954dd; color: white; cursor: pointer; }
.mp-modal a { color: #1954dd; }
.mp-modal .mp-consent input { width: 18px; height: 18px; }
.mp-modal .mp-modal-title { line-height: 1.15; }
.hero-search-tab.active::after { background: var(--coral); }
button:disabled { cursor: not-allowed; opacity: .55; }
.video-tile { cursor: default; }
.article-image.no-image { background: var(--pale); }
@media (max-width: 680px) {
 .mp-modal { padding: 14px; }
 .mp-modal-panel { padding: 40px 20px 24px; }
 .mp-modal-art { display: none; }
 .mp-modal-title { font-size: 28px !important; }
 .mp-summary-grid, .mp-form-grid, .mp-form-grid--compare { grid-template-columns: 1fr; }
 .mp-form-grid { max-width: none; }
 .mp-modal-title, .mp-modal-copy { max-width: 100%; }
 .cookie-content { flex-direction: column; align-items: stretch; }
}

.js-hidden-init { display: none; }

@media (max-width: 680px) {
    #heroBusinessTypeField,
    #heroPropertyValueField { grid-column: 1 / -1; }
    .horizontal-search .search-segment:nth-child(n+3)::before { display: none; }
}
