/* ── Wrapper ──────────────────────────────────────────────────────────── */
.t2m-af {
    background: #28282c;
    color: #fff;
    font-family: inherit;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ── Progress bar ─────────────────────────────────────────────────────── */
.t2m-af__progress {
    padding: 24px 30px 0;
}

.t2m-af__progress-bar {
    background: #4a4a4a;
    border-radius: 50px;
    height: 18px;
    position: relative;
    overflow: visible;
}

.t2m-af__progress-fill {
    background: #f4a03a;
    border-radius: 50px;
    height: 100%;
    width: 50%;
    transition: width 0.4s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 28px;
}

.t2m-af__progress-label {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* ── Steps ────────────────────────────────────────────────────────────── */
.t2m-af__step {
    display: none;
    padding: 30px 30px 0;
    text-align: center;
}

.t2m-af__step--active {
    display: block;
}

.t2m-af__step--start {
    padding: 60px 30px;
}

.t2m-af__btn--start {
    font-size: 1.2rem;
    padding: 16px 48px;
}

.t2m-af__step-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.t2m-af__step-desc {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 28px;
    line-height: 1.6;
}

.t2m-af__step-desc strong {
    color: #fff;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 6px;
}

/* ── Intro box ────────────────────────────────────────────────────────── */
.t2m-af__intro-box {
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 28px;
    text-align: center;
}

.t2m-af__intro-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}


.t2m-af__intro-box p,
.t2m-af__intro-box h4 {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ── Fields ───────────────────────────────────────────────────────────── */
.t2m-af__fields {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.t2m-af__field--plz {
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
}

.t2m-af__field {
    margin-bottom: 18px;
}

.t2m-af__field label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.t2m-af__input-wrap {
    display: flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.t2m-af__input-icon {
    background: #b0b0b0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.t2m-af__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.t2m-af__input:focus {
    background: #f9f9f9;
}

.t2m-af__input--error,
.t2m-af__input--error:focus {
    background: #fff5f5;
    box-shadow: inset 0 0 0 2px #e74c3c;
}

select.t2m-af__input {
    cursor: pointer;
}

textarea.t2m-af__input {
    resize: vertical;
    min-height: 90px;
    padding: 10px 12px;
    border-radius: 4px;
    border: none;
}

.t2m-af__field-hint {
    color: #999;
    font-size: 0.82rem;
    margin-top: 5px;
}

.t2m-af__field-error {
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 5px;
}

/* Birthdate row */
.t2m-af__birthdate-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
}

/* Phone row */
.t2m-af__phone-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.t2m-af__actions {
    text-align: center;
    margin-top: 24px;
}

.t2m-af__actions--submit {
    margin-top: 30px;
}

.t2m-af__btn {
    display: inline-block;
    background: #f4a03a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.t2m-af__btn:hover {
    background: #bccf04;
    color: #000;
    text-decoration: none;
}

.t2m-af__btn i {
    margin-right: 6px;
}

.t2m-af__btn--loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.t2m-af__back {
    display: block;
    color: #aaa;
    font-size: 0.88rem;
    margin-top: 14px;
    text-decoration: none;
    cursor: pointer;
}

.t2m-af__back:hover {
    color: #fff;
}

.t2m-af__back i {
    margin-right: 4px;
}

/* ── Error messages ───────────────────────────────────────────────────── */
.t2m-af__form-error,
.t2m-af__submit-error {
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
}

/* ── Optional section ─────────────────────────────────────────────────── */
.t2m-af__optional {
    margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.t2m-af__optional-block {
    margin-bottom: 32px;
}

/* Interests checkboxes */
.t2m-af__interests {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    text-align: left;
}

.t2m-af__interest {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 12px 14px;
}

.t2m-af__interest-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.t2m-af__interest-cb {
    width: 18px;
    height: 18px;
    accent-color: #f4a03a;
    cursor: pointer;
    flex-shrink: 0;
}

.t2m-af__interest-desc {
    color: #999;
    font-size: 0.78rem;
    margin-top: 4px;
    margin-bottom: 0;
    padding-left: 28px;
}

/* NGO image picker */
.t2m-af__ngos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    text-align: center;
}

.t2m-af__ngo {
    background: rgba(255,255,255,0.06);
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 14px 10px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.t2m-af__ngo:hover {
    background: rgba(255,255,255,0.1);
}

.t2m-af__ngo--selected {
    border-color: #f4a03a;
    background: rgba(240,165,0,0.12);
}

.t2m-af__ngo img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.t2m-af__ngo p {
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
}

.t2m-af__ngo-check {
    position: absolute;
    top: 6px;
    right: 8px;
    color: #f4a03a;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.t2m-af__ngo--selected .t2m-af__ngo-check {
    opacity: 1;
}

/* ── Success box ──────────────────────────────────────────────────────── */
.t2m-af--result {
    text-align: center;
    padding: 60px 30px;
}

.t2m-af__success-box h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 24px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .t2m-af__step-title {
        font-size: 1.8rem;
    }

    .t2m-af__birthdate-row {
        grid-template-columns: 1fr 1fr;
    }

    .t2m-af__birthdate-row .t2m-af__input-wrap:last-child {
        grid-column: span 2;
    }

    .t2m-af__phone-row {
        grid-template-columns: 1fr;
    }

    .t2m-af__ngos {
        grid-template-columns: repeat(3, 1fr);
    }
}
