:root {
    --navy: #0d2137;
    --navy2: #1a3a5c;
    --gold: #c9a84c;
    --gold2: #f0c96a;
    --light: #f7f8fb;
    --white: #fff;
    --border: #e2e6ed;
    --text: #1a1a2e;
    --muted: #7a8394;
    --radius: 12px;
    --radius-sm: 8px;
}



/* ── CONTAINER ─────────────────────────────────── */

.am-membership {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 620px;
    margin: 50px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(13, 33, 55, 0.18);
    background: var(--white);
}

/* ── LEFT PANEL ────────────────────────────────── */
.am-left {
    flex: 0 0 38%;
    background: var(--navy);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.am-left-art {
    position: absolute;
    inset: 0;
}

.am-left-art svg {
    width: 100%;
    height: 100%;
}

.am-left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
}

.am-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 168, 76, 0.18);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    color: var(--gold2);
    letter-spacing: .06em;
    margin-bottom: 2rem;
    width: fit-content;
}

.am-cross-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.am-cross-wrap svg {
    filter: drop-shadow(0 0 18px rgba(201, 168, 76, 0.35));
}

.am-left-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: .6rem;
}

.am-left-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ── STEP NAV ──────────────────────────────────── */
.am-steps-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.am-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background .2s;
}

.am-step-item.active {
    background: rgba(201, 168, 76, 0.15);
}

.am-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: all .3s;
}

.am-step-item.active .am-step-dot {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.am-step-item.done .am-step-dot {
    background: #1d9e75;
    border-color: #1d9e75;
    color: #fff;
}

.am-step-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 500;
    transition: color .3s;
}

.am-step-item.active .am-step-label {
    color: #fff;
}

.am-step-item.done .am-step-label {
    color: rgba(255, 255, 255, 0.62);
}

/* ── RIGHT PANEL ───────────────────────────────── */
.am-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.am-right-top {
    padding: 2rem 2.25rem 0;
}

.am-progress-bar {
    height: 4px;
    background: #eef0f4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.am-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy2), var(--gold));
    border-radius: 4px;
    transition: width .4s ease;
}

.am-step-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.am-step-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ── PANELS ────────────────────────────────────── */


/* ── PANELS ────────────────────────────────────── */

.am-panels {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.am-panel {
    position: absolute;
    inset: 0;
    padding: 0 2.25rem 1.5rem;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: opacity .32s, transform .32s;
    scrollbar-width: none;
}

.am-panel::-webkit-scrollbar {
    display: none;
}

.am-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.am-panel.exit {
    opacity: 0;
    transform: translateX(-30px);
}

/* STEP 3 EXTRA SPACE */
#panel-3 {
    padding-bottom: 120px;
}

/* ── FORM FIELDS ───────────────────────────────── */
.am-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.am-field {
    margin-bottom: 14px;
    position: relative;
}

.am-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.am-label i {
    font-size: 13px;
    color: var(--navy2);
}

.am-input,
.am-select,
.am-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
}

.am-input:focus,
.am-select:focus,
.am-textarea:focus {
    border-color: var(--navy2);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.am-input::placeholder,
.am-textarea::placeholder {
    color: #c2c8d4;
}

.am-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.am-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.am-input-icon {
    position: relative;
}

.am-input-icon .am-input {
    padding-left: 38px;
}

.am-input-icon>i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--muted);
    pointer-events: none;
}

.am-input.error {
    border-color: #e24b4a;
    background: #fff8f8;
}

/* ── REVIEW TABLE ──────────────────────────────── */
.am-review-box {
    background: #f7f8fb;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e8eaef;
}

.am-review-box .rv-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.am-review-box table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.am-review-box td {
    padding: 4px 0;
}

.am-review-box td:first-child {
    color: var(--muted);
    width: 38%;
}

.am-review-box td:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ── FOOTER ────────────────────────────────────── */
.am-right-footer {
    padding: 1.25rem 2.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f2f6;
}

.am-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .18s;
    letter-spacing: .01em;
}

.am-btn-primary {
    background: var(--navy);
    color: #fff;
}

.am-btn-primary:hover {
    background: var(--navy2);
}

.am-btn-primary:active {
    transform: scale(0.98);
}

.am-btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid var(--border);
}

.am-btn-ghost:hover {
    background: var(--light);
    color: var(--text);
}

.am-step-count {
    font-size: 12px;
    color: var(--muted);
}

/* ── SUCCESS ───────────────────────────────────── */
.am-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2.25rem;
    flex: 1;
}

.am-success-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e6f7f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.am-success-ring i {
    font-size: 38px;
    color: #1d9e75;
}

.am-success h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
}

.am-success p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.am-id-badge {
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 13px;
    color: var(--navy2);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: .08em;
}

@media(max-width:768px) {

    .am-panels {
        min-height: auto !important;
        overflow: visible !important;
    }

    .am-panel.active {
        position: relative !important;
        inset: auto !important;
    }

    .am-panel:not(.active) {
        display: none;
    }

}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 720px) {
    body {
        padding: 0;
    }


    .am-membership {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 20px auto;
        min-height: auto;
    }

    .am-left {
        flex: 0 0 auto;
    }

    .am-steps-nav {
        display: none;
    }

    .am-left-content {
        padding: 1.5rem 1.25rem;
    }

    .am-cross-wrap {
        margin-bottom: 1rem;
    }

    .am-left-sub {
        margin-bottom: 1rem;
    }

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

    .am-right-top {
        padding: 1.5rem 1.25rem 0;
    }

    .am-panel {
        padding: 0 1.25rem 1rem;
    }

    .am-right-footer {
        padding: 1rem 1.25rem 1.5rem;
    }
}

@media (max-width: 420px) {
    .am-left-title {
        font-size: 18px;
    }

    .am-left-sub {
        display: none;
    }
}