/* =========================================================
   age_postal_delivery.css
   Bloc de recherche par code postal — AGE Burlat
   ========================================================= */

/* ── Conteneur principal ────────────────────────────────── */
.age-postal-delivery {
    background-color: #b0cfc7;
    padding: 36px 24px 40px;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Arvo', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
}

/* ── Header : logo + phrase d'accroche ──────────────────── */
.apd-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.apd-logo {
    height: 56px;
    width: auto;
    display: block;
}

.apd-intro {
    font-family: 'Arvo', sans-serif;
    font-size: 18px;
    color: #3A5B5E;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    max-width: 560px;
}

/* ── Formulaire ─────────────────────────────────────────── */
.apd-form-wrap {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.apd-input {
    font-family: 'Arvo', sans-serif;
    font-size: 18px;
    color: #3A5B5E;
    background: #FFFFFF;
    border: none;
    border-radius: 16px;
    padding: 10px 20px;
    width: 220px;
    outline: none;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

.apd-input::placeholder {
    color: #9eb8b5;
    opacity: 1;
}

.apd-input:focus {
    box-shadow: 0 0 0 2px #9eb8b5;
}

/* ── Bouton ─────────────────────────────────────────────── */
.apd-btn {
    font-family: 'Arvo', sans-serif;
    font-size: 18px;
    color: #9eb8b5;
    background-color: #3A5B5E;
    border: 2px solid #3A5B5E;
    border-radius: 16px;
    padding: 10px 28px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.apd-btn:hover,
.apd-btn:focus {
    background-color: #b0cfc7;
    color: #3A5B5E;
    border: 2px solid #3A5B5E;
    outline: none;
}

/* ── Message d'erreur ───────────────────────────────────── */
.apd-error {
    text-align: center;
    font-family: 'Arvo', sans-serif;
    font-size: 16px;
    color: #3A5B5E;
    margin-top: 16px;
}

/* ── Zone résultat ──────────────────────────────────────── */
.apd-result {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease;
    margin-top: 0;
}

.apd-result.apd-result--visible {
    max-height: 400px;
    opacity: 1;
    margin-top: 28px;
}

/* ── Carte résultat : 2 colonnes ────────────────────────── */
.apd-result-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #42595D;
    border-radius: 12px;
    padding: 20px 28px;
    max-width: 640px;
    margin: 0 auto;
}

.apd-result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.apd-result-name {
    font-family: 'Arvo', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.4;
}

.apd-result-delivery {
    font-family: 'Arvo', sans-serif;
    font-size: 16px;
    color: #F0EA78;
    line-height: 1.4;
}

.apd-result-delivery a{
    font-family: 'Arvo', sans-serif;
    font-size: 16px;
    color: #F0EA78;
    line-height: 1.4;
    font-weight: bold;
    text-decoration: underline;
}

.apd-result-cta {
    display: inline-block;
    font-family: 'Arvo', sans-serif;
    font-size: 16px;
    color: #9eb8b5;
    background-color: #3A5B5E;
    border: 2px solid #9eb8b5;
    border-radius: 16px;
    padding: 10px 24px;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.apd-result-cta:hover,
.apd-result-cta:focus {
    background-color: #9eb8b5;
    color: #3A5B5E;
    outline: none;
    text-decoration: none;
}

/* ── Message "non couvert" ──────────────────────────────── */
.apd-result-none {
    font-family: 'Arvo', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    padding: 16px 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .age-postal-delivery {
        padding: 24px 16px 28px;
    }

    .apd-form-wrap {
        flex-direction: column;
        align-items: center;
    }

    .apd-input {
        width: 100%;
        max-width: 320px;
    }

    .apd-btn {
        width: 100%;
        max-width: 320px;
    }

    .apd-result-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 18px;
    }

    .apd-result-cta {
        align-self: flex-start;
    }
}
