/* ─── Trigger button ─────────────────────────────────────── */
.fpa__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.fpa__trigger:hover {
    background: #333;
}

/* ─── Overlay ────────────────────────────────────────────── */
.fpa__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fpa__overlay[hidden] {
    display: none;
}

/* ─── Modal ──────────────────────────────────────────────── */
.fpa__modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ─── Close button ───────────────────────────────────────── */
.fpa__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.fpa__close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* ─── Typography ─────────────────────────────────────────── */
.fpa__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}
.fpa__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
}
.fpa__step p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* ─── Product buttons ────────────────────────────────────── */
.fpa__products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}
.fpa__product {
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    background: #f7f7f7;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.fpa__product:hover {
    border-color: #1a1a1a;
    background: #fff;
}

/* ─── Criteria checkboxes ────────────────────────────────── */
.fpa__criteria {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}
.fpa__criterion {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background: #f7f7f7;
    border-radius: 10px;
    transition: background 0.15s;
}
.fpa__criterion:hover {
    background: #efefef;
}
.fpa__checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #1a1a1a;
    cursor: pointer;
}
.fpa__criterion-label {
    font-size: 15px;
    color: #1a1a1a;
}

/* ─── Buttons ────────────────────────────────────────────── */
.fpa__btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}
.fpa__btn--primary {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    margin-bottom: 8px;
}
.fpa__btn--primary:hover {
    background: #333;
}
.fpa__btn--back {
    display: block;
    width: 100%;
    background: none;
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 8px;
}
.fpa__btn--back:hover {
    color: #1a1a1a;
}

/* ─── Email form ─────────────────────────────────────────── */
.fpa__email-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fpa__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.fpa__input:focus {
    border-color: #1a1a1a;
}

/* ─── Success screen ─────────────────────────────────────── */
.fpa__success {
    text-align: center;
    padding: 20px 0;
}
.fpa__success-icon {
    width: 56px;
    height: 56px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 24px;
}

/* ─── Recommend diagnostics ──────────────────────────────── */
.fpa__step[data-step="recommend-diagnostics"] .fpa__btn--primary {
    margin-top: 24px;
}
