/* =========================================================================
   Altitude Infra – Fiber Eligibility Module  |  afe-style.css
   Brand palette:
     Dark navy  : #0d1f3c
     Orange CTA : #ff871e
     Light blue : #4cbfe0
     Green OK   : #2e9d4f
     Red block  : #c0392b
     Gray NA    : #7f8c8d
   ========================================================================= */
.relative{
    position: relative;
}
.pt-30{
    padding-top: 20%;
}
/* ── Reset / scope ─────────────────────────────────────────────────────── */
#afe-app .afe-module *,
.afe-module *::before,
.afe-module *::after {
    box-sizing: border-box;
}

#afe-app .afe-module {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #0d1f3c;
    position: relative;
    max-width: 100%;
}

/* ── Step: search ────────────────────────────────────────────────────────── */
#afe-app .afe-step--search {

    text-align: center;
}
#afe-app .afe-lock-screen{
    background: url(./locker.jpg) no-repeat top center;
    background-size: contain;
    width: 100%;
    min-height: 600px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    line-height: 32px;
}

#afe-app .afe-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: -30px;
}

#afe-app .afe-autocomplete-wrap {
    position: relative;
    flex: 1 1 340px;
    min-width: 280px;
}

#afe-app .afe-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
    display: block;
    align-items: center;
    background: url(./search_icon.png) no-repeat center center;
    width: 30px;
    height: 30px;
    background-size: 100%;
}

#afe-app input.afe-address-input {
    width: 100%;
    padding: 20px 16px 20px 60px;
    border: none;
    border-radius: 25px;
    background: #ececec;
    font-size: 15px;
    outline: none;
    color: #0d1f3c;
}

#afe-app .afe-address-input::placeholder {
    color: #0d2d42;
}

#afe-app .afe-address-input:focus {
    box-shadow: 0 0 0 3px rgba(229, 80, 30, 0.45);
}

/* Suggestions dropdown */
#afe-app .afe-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    border-radius: 6px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    background:white;
    text-align: left;

}

#afe-app .afe-suggestion-item {
    padding: 11px 16px;
    cursor: pointer;
    font-size: 16px;
    color: #0d1f3c;
    transition: background .15s;
    font-weight: bold;
    border-top: 1px solid #e4e4e4;
}

#afe-app .afe-suggestion-item:hover,
#afe-app .afe-suggestion-item:focus {
    background: #f0f4ff;
    outline: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
#afe-app button.afe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px !important;
    border: none;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 700;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: opacity .2s, transform .1s;
    white-space: nowrap;
}

#afe-app button.afe-btn:hover {
    opacity: .88;
}

#afe-app button.afe-btn:active {
    transform: scale(.97);
}

#afe-app button.afe-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#afe-app button.afe-btn--primary {
    background: #ff871e;
    color: #0d2d42;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#afe-app button.afe-btn--outline {
    background: #0d2a49;
    color: #fff;
    text-transform: uppercase;
}
.afe-no-map{
    background: url("./no_result.png") no-repeat center center;
}
/* ── Loading spinner ──────────────────────────────────────────────────────── */
#afe-app .afe-loading {
    text-align: center;
    padding: 32px;
    font-size: 15px;
    color: #0d1f3c;
}
#afe-app .afe-loading> span{
    display: inline-block;
    vertical-align: middle;
}
#afe-app .afe-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #ff871e;
    border-radius: 50%;
    animation: afe-spin .7s linear infinite;
}

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

/* ── Error ────────────────────────────────────────────────────────────────── */
#afe-app .afe-error {
    background: #fdecea;
    color: #c0392b;
    border-left: 4px solid #c0392b;
    padding: 12px 16px;
    margin: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
}

/* ── Results section ──────────────────────────────────────────────────────── */
#afe-app .afe-step--results {
    padding: 32px 24px 48px;
    max-width: 96%;
    margin: 0 auto;
}

#afe-app .afe-results-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #0d1f3c;
}

#afe-app .afe-results-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

/* ── Map (Leaflet) ────────────────────────────────────────────────────────── */
#afe-app .afe-map-wrap {
    position: relative;
}

#afe-app .afe-map {
    width: 100%;
    min-height: 600px;
    border-radius: 40px;
    overflow: hidden;
    z-index: 0; /* keep below WP admin bar / modals */
}

.afe-map-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#afe-app .guide-block {
    width: 230px;
    height: 162px;
    background: url(./guide.png) no-repeat center center;
    background-size: 100%;
}

/* ── Custom main pin (draggable address marker) ─────────────────────────── */
#afe-app .afe-map-pin {
    width: 25px;
    height: 25px;
    background: #ff0000;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    cursor: grab;
}

#afe-app .afe-map-pin:active {
    cursor: grabbing;
}

/* ── API map-point dots ─────────────────────────────────────────────────── */
#afe-app .afe-map-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* ── Leaflet popup ──────────────────────────────────────────────────────── */
#afe-app .afe-map-popup {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #0d1f3c;
    line-height: 1.4;
}

/* Ensure Leaflet attribution stays readable */
#afe-app .leaflet-container .leaflet-control-attribution {
    font-size: 10px;
}

/* ── Status card ──────────────────────────────────────────────────────────── */
#afe-app .afe-status-card {
    border-radius: 30px;
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 53px;
    background: #f7f7f7;
    position: relative;
    margin-bottom: 20px;

}

#afe-app .afe-status--green {
    background: #45c300;
    color: #fff;
}

#afe-app .afe-status--orange {
    background: #ff8926;
    color: #fff;
}

#afe-app .afe-status--red {
    background: #a80303;
    color: #fff;
}

#afe-app .afe-status--dark-blue {
    background: #003859;
    color: #fff;
}

#afe-app .afe-status--blue {
    background: #06a6ff;
    color: #fff;
}

#afe-app .afe-status--gray {
    background: #b7b7b7;
    color: #fff;
}

#afe-app .afe-status--light-blue {
    background: #aad3df;
    color: #fff;
}


#afe-app .afe-status-block {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    padding: 20px;
    border-radius: 30px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#afe-app .afe-status-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

#afe-app .afe-info-block {
    margin-top: 25%;
    width: 100%;
}


#afe-app .flex {
    display: flex;
}

#afe-app .justify-between {
    justify-content: space-between;
}

#afe-app .bold {
    font-weight: bold;
}

#afe-app .afe-imb {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: white;
    margin: 5px 0;
}
#afe-app .afe-imb > .flex{
    padding: 8px 12px;

}
#afe-app .afe-imb-value {
    padding-left: 5px;
}

#afe-app .afe-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 13px;
    background: white;
    border-radius: 6px;
    padding: 10px 12px;
    color: black
}

#afe-app .afe-detail-row,
#afe-app .afe-detail-row-right {
    display: contents;
}

#afe-app .afe-detail-row > span:first-child,
#afe-app .afe-detail-row-right > span:first-child {
    opacity: .85;
}

#afe-app .afe-map-legend {
    margin-top: 8px;
}

#afe-app .afe-map-legend img {
    max-width: 100%;
    border-radius: 4px;
}

/* ── Operators ────────────────────────────────────────────────────────────── */
#afe-app .afe-operators-section{
    background: #f7f7f7;
    text-align: center;
    padding: 50px 0;
}
/* Grid — centered */
#afe-app .afe-operators-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 210px));
    gap: 16px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
}
/* Card */
#afe-app .afe-operator-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 100px;
}

#afe-app .afe-operator-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#afe-app .afe-operator-item--selected {
    border-color: #1a3c6e;
    box-shadow: 0 2px 12px rgba(26,60,110,0.15);
}

#afe-app .afe-operator-item--selected::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: #2ecc71;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image logo */
#afe-app .afe-operator-item img {
    width: 100%;
    max-width: 100px;
    height: 50px;
    object-fit: contain;
    display: block;
}


/* Responsive — 2 cols on tablet, 1 on mobile */
@media (max-width: 640px) {
    #afe-app .afe-operators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    #afe-app .afe-operators-grid {
        grid-template-columns: 1fr;
    }
}

#afe-app .afe-operator-item:hover,
#afe-app .afe-operator-item:focus {
    border-color: #ff871e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 80, 30, .2);
}

#afe-app .afe-operator-item--selected {
    border-color: #2e9d4f;
    box-shadow: 0 0 0 3px rgba(46, 157, 79, .25);
}

#afe-app .afe-operator-item--selected::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2e9d4f;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Example: set logo backgrounds in your theme or override here */
#afe-app .afe-op-bouygues {
    background-color: #0277BD;
}

#afe-app .afe-op-orange {
    background-color: #FF7900;
}

#afe-app .afe-op-sfr {
    background-color: #CC0033;
}

#afe-app .afe-op-milkywan {
    background-color: #1a1a2e;
}

#afe-app .afe-op-ozone {
    background-color: #0090d0;
}

#afe-app .afe-op-nordnet {
    background-color: #003366;
}

#afe-app .afe-operator-label {
    font-size: 12px;
    font-weight: 600;
    color: #0d1f3c;
}

/* ── Lead form ────────────────────────────────────────────────────────────── */
#afe-app .afe-lead-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 28px 24px;
    margin-bottom: 24px;
    text-align: center;
}

#afe-app .afe-lead-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

#afe-app .afe-lead-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 800px;
    justify-content: center;
    margin: 0 auto;
}

#afe-app .afe-input {
    padding: 12px 16px;
    border: 1px solid #ebebeb;
    background: #ebebeb;
    border-radius: 20px;
    font-size: 14px;
    min-width: 200px;
    flex: 1 1 180px;
    outline: none;
    color: #0d2d42;
    transition: border-color .2s;
}

#afe-app .afe-input::placeholder {
    color: #0d2d42
}

#afe-app .afe-input:focus {
    border-color: #ff871e;
}

#afe-app .afe-lead-disclaimer, .afe-phone-text {
    font-size: 16px;
    color: #0d2d42;
    margin-top: 20px;
    font-weight: 400;
}

#afe-app .afe-lead-success {
   text-align: center;
    color: #2e9d4f;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 0;
}

/* ── ARCEP section ────────────────────────────────────────────────────────── */
#afe-app .afe-arcep-section {
    margin-bottom: 24px;
    text-align: center;
}

#afe-app .afe-arcep-logo {
    width: 250px;
    height: 100px;
    background: url(./arcep.png) no-repeat center center;
    background-size: contain;
    margin: 20px auto;
}

/* ── DSP logo ─────────────────────────────────────────────────────────────── */

#afe-app .afe-dsp-img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* ── Report / retry ───────────────────────────────────────────────────────── */
#afe-app .afe-report-wrap,
#afe-app .afe-retry-wrap {
    text-align: center;
    margin-bottom: 12px;
}

/* ── Info message (below status card) ────────────────────────────────────── */
#afe-app #afe-info-message {
    background: white;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
    width: 100%;
    font-size: 30px;
    text-align: center;
    font-weight: 400;
}

#afe-app #afe-notification-block {
    background: #f8f9fa;
    margin-bottom: 20px;
    text-align: center;
    justify-content: center;
    padding: 50px 0;
}

#afe-app .afe-notification-content {
    font-size: 20px;
    line-height: 28px;
    color: #003859;
    font-weight: 500;
    text-align: justify;
}

#afe-app .afe-notification-signal {
    background: #ddeffa;
    border: 1px solid #003859;
    color: #003859;
    padding: 10px;
    margin: 30px auto 0;
    width: 300px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    text-transform: none;
    white-space: normal;
}

#afe-app #afe-notification-block{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: self-start;
    padding: 25px;
    background: #f6f6f5;
}

#afe-app #afe-notification-block[hidden], #afe-status-card[hidden],.afe-lock-screen[hidden] {
    display: none !important;
}

/* ── Phone block ──────────────────────────────────────────────────────────── */
#afe-app .afe-phone-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

#afe-app .afe-phone-label {
    font-weight: 700;
    color: #fff;
    background: #e2001a;
}

#afe-app .afe-phone-number {
    text-decoration: none;
    color: #0d1f3c;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid;
    padding: 5px;
    border-radius: 10px;
}

#afe-app .afe-btn--sm {
    padding: 3px;
    font-size: 9px;
    display: block;
    border-radius: 8px;
}

/* ── Bottom icons grid ("blue section") ──────────────────────────────────── */
#afe-app .afe-bottom-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    background: #f0f8ff;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #d0eaf8;
}

#afe-app .afe-bottom-icon-item {
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

#afe-app .afe-bottom-icon-item img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
}

/* ── Extra CTA wrap ───────────────────────────────────────────────────────── */
#afe-app .afe-extra-cta-wrap {
    text-align: center;
    margin: 16px 0 24px;
}

@media (max-width: 1450px) {
    #afe-app .afe-status-block {
        height: 120px;
    }
    #afe-app .afe-notification-content{
        font-size: 18px;
    }
}

@media (max-width: 1300px) {
    #afe-app .afe-status-block {
        padding: 10px 20px;
        height: 100px;
    }
    #afe-app .afe-notification-content{
        font-size: 22px;
    }
    #afe-app .afe-status-card{
        padding: 20px 10px;
    }
    #afe-app .afe-notification-content {
        font-size: 18px;
        line-height: 24px;
    }
    #afe-app .afe-map {
        min-height: 580px;
    }
}

@media (max-width: 1200px) {
    #afe-app .afe-status-title {
        font-size: 18px;
    }
    #afe-app .afe-status-block {
        height: 80px;
    }
    #afe-app .afe-imb.justify-between{
        display: block;
    }
    #afe-app .afe-imb.justify-between > .flex{
        margin-bottom: 5px;
    }
    #afe-app .afe-imb {
        padding: 8px;
        font-size: 12px;
    }
    #afe-app .afe-map {
        min-height: 530px;
    }
}
@media (max-width: 1023px) {
    #afe-app .afe-results-grid,#afe-notification-block {
        grid-template-columns: 1fr;
    }
    #afe-app .afe-info-block {
        margin-top: 70px;
    }
    #afe-app .afe-lock-screen{
        min-height: 400px;
    }
}