/* Senior Plus — Callback Form */

/* === Nouveau CTA === */
.sp-hero-cta {
    margin-top: 28px;
    max-width: 420px;
    font-family: 'Nunito', sans-serif;
}

/* Bouton téléphone — styles communs */
.sp-hero-cta__phone-btn {
    align-items: center;
    gap: 12px;
    background: #166E83;
    color: #fff !important;
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(22, 110, 131, 0.3);
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}
.sp-hero-cta__phone-btn:hover {
    background: #124f5e;
    transform: translateY(-1px);
    color: #fff !important;
}
.sp-hero-cta__phone-btn:active {
    transform: translateY(0);
}
.sp-hero-cta__phone-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Desktop : affiche le numéro */
.sp-hero-cta__phone-btn--desktop {
    display: inline-flex;
    font-size: 26px;
}
.sp-hero-cta__phone-btn--mobile {
    display: none;
    font-size: 20px;
}

/* Caption */
.sp-hero-cta__caption {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}
.sp-hero-cta__caption svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* Séparateur */
.sp-hero-cta__separator {
    text-align: center;
    margin: 20px 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.2px;
}
.sp-hero-cta__separator b {
    color: #166E83;
    font-weight: 800;
}

/* Carte formulaire — conteneur simple sans bordure */
.sp-hero-cta__form-card {
    padding: 0;
}

/* Input téléphone */
.sp-hero-cta__input-wrap {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 10px;
    padding: 4px;
    background: transparent;
}
.sp-hero-cta__flag {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 6px;
    flex-shrink: 0;
}
.sp-hero-cta__flag svg {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sp-hero-cta__prefix {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.sp-hero-cta__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    font-family: 'Nunito', sans-serif;
    padding: 10px 8px;
    background: transparent;
    color: #333;
    min-width: 0;
}
.sp-hero-cta__input::placeholder {
    color: #aab5ba;
}

/* Bouton submit — même style que le bouton téléphone */
.sp-hero-cta__submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px !important;
    background: #166E83 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(22, 110, 131, 0.3) !important;
    position: relative;
    overflow: hidden;
}
.sp-hero-cta__submit:hover {
    background: #124f5e !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.sp-hero-cta__submit:active {
    transform: translateY(0);
}
.sp-hero-cta__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.sp-hero-cta__submit svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Spinner */
.sp-hero-cta__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sp-spin 0.6s linear infinite;
}
@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

/* Réassurance */
.sp-hero-cta__reassurance {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #777;
}
.sp-hero-cta__reassurance svg {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin-right: 3px;
}

/* Succès */
.sp-hero-cta__success {
    display: none;
    text-align: center;
    padding: 20px;
}
.sp-hero-cta__success-icon {
    width: 48px;
    height: 48px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.sp-hero-cta__success-icon svg {
    width: 24px;
    height: 24px;
    color: #2e7d32;
}
.sp-hero-cta__success-title {
    font-size: 18px;
    font-weight: 700;
    color: #166E83;
    margin-bottom: 6px;
}
.sp-hero-cta__success-text {
    font-size: 14px;
    color: #555;
}

/* Erreur */
.sp-hero-cta__error {
    display: none;
    color: #d32f2f;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 4px;
}

/* === Responsive mobile === */
@media (max-width: 767px) {
    .sp-hero-cta {
        max-width: 100%;
    }
    /* Mobile : texte d'action au lieu du numéro */
    .sp-hero-cta__phone-btn--desktop {
        display: none;
    }
    .sp-hero-cta__phone-btn--mobile {
        display: inline-flex;
        padding: 14px 24px;
    }
    .sp-hero-cta__input {
        font-size: 16px;
    }
}
