/* AF Signup Form — form-specific rules. Shared rules live in assets/css/af-forms-base.css. */

/* ---- Card layout ---- */
.af-signup {
    display: flex;
    flex-direction: column;
}

.af-signup fieldset {
    display: none;
    flex-wrap: wrap;
    border: none;
    padding: 0;
    margin: 0;
}

.af-signup fieldset.active {
    display: flex;
}

/* ---- Step Titles ---- */
.af-signup__titles {
    padding-bottom: 28px;
}

.af-signup__step-title {
    display: none;
    text-align: center;
}

.af-signup__step-title.active {
    display: block;
}

/* ---- Step Image (step 1 only) ---- */
.af-signup__step-image {
    padding: 40px 0;
    text-align: center;
}

.af-signup__step-image img {
    max-width: 250px;
    width: 100%;
}

/* ---- Progress Bar ---- */
.af-signup__progress {
    padding-bottom: 48px;
}

/* ---- Back Button ---- */
.af-signup__back {
    position: absolute;
    left: 35px;
    top: 55px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #171717;
    padding: 0 24px;
    z-index: 1;
}

.af-signup__back span {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
}

.af-signup__back svg {
    width: 12px;
    height: 10px;
    flex-shrink: 0;
}

/* ---- Brand fields container ---- */
.af-signup__brand-fields {
    width: 100%;
}

/* ---- Branching ---- */
.af-signup__branch {
    width: 100%;
    text-align: center;
}

.af-signup__branch p {
    margin-top: 15px;
    margin-bottom: 0;
    color: #171717;
    font-size: 20px;
    line-height: 160%;
}

.af-signup__branch-btn {
    text-align: center;
    padding-top: 16px;
    padding-bottom: 36px;
}

.af-signup__branch-btn .btn {
    height: 60px;
}

/* ---- Field modifiers ---- */
.af-signup__field--full {
    flex: 0 0 100%;
}

.af-signup__field--half {
    flex: 1 1 calc(50% - 10px);
}

.af-signup__row {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* ---- Textarea (signup-only) ---- */
.af-signup__form textarea {
    height: 180px;
    resize: none;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: -0.64px;
    cursor: pointer;
}

/* ---- Nav ---- */
.af-signup__nav {
    flex: 0 0 100%;
    padding-top: 15px;
    padding-bottom: 36px;
    text-align: center;
}

/* ---- Multi-checkbox Dropdown ---- */
.af-signup__dropdown {
    width: 100%;
}

.af-signup__dropdown-header {
    color: #46494f;
    width: 100%;
    height: 60px;
    font-size: 16px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    letter-spacing: -0.64px;
    text-align: left;
    line-height: 60px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid #b8b8b8;
    cursor: pointer;
    background: #fff;
    box-sizing: border-box;
    transition: border 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-signup__dropdown-header.has-value {
    color: #171717;
    font-weight: 500;
    letter-spacing: -0.32px;
    border-color: #171717;
}

.af-signup__dropdown-body {
    border: 1px solid #e5e6ec;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 51, 99, 0.08);
    margin-top: 6px;
    padding: 0;
}

.af-signup__dropdown-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.af-signup__dropdown-body li {
    padding: 16px 16px;
    margin: 0px !important;
}

.af-signup__dropdown-body label {
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #171717;
    font-size: 16px;
    font-weight: 400;
    pointer-events: auto;
}

.af-signup__dropdown-body input[type='checkbox'] {
    width: 16px;
    height: 16px;
    border: 1px solid #46494f;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.af-signup__dropdown-body input[type='checkbox']:checked {
    background-color: #46494f;
}

.af-signup__dropdown-body input[type='checkbox']:checked::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.af-signup__dropdown-body li:hover {
    background-color: #f6f6f6;
}

/* ---- ZIP field (US only) ---- */
.af-signup__field--zip:not(.visible) {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .af-signup {
        padding: 64px 24px;
    }
}

@media (max-width: 576px) {
    .af-signup {
        padding: 64px 8px;
        border: none;
        border-radius: 0;
    }

    .af-signup__row {
        flex-direction: column;
        gap: 0;
    }

    .af-signup__field--half {
        flex: 0 0 auto;
    }

    .af-signup__back {
        top: 0;
        left: 0;
    }

    .af-signup__back span {
        display: none;
    }

    .af-signup__step-image {
        padding-top: 0;
        padding-bottom: 16px;
    }

    .af-signup__field {
        margin-bottom: 16px;
    }
}
