/* ── Header ── */
.arm-header {
    text-align: center;
    padding: 2.25rem 2rem 1.25rem;
    border-bottom: 1px solid var(--border, #eaeaea);
}
.arm-header-badge {
    display: inline-block;
    background: rgba(78, 172, 233, 0.08);
    color: var(--primary, rgb(78,172,233));
    border: 1px solid rgba(78, 172, 233, 0.25);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.arm-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main, #111827);
    margin: 0 0 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.arm-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #6b7280);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Step indicators ── */
.arm-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem 0;
}
.arm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.arm-step.active, .arm-step.done { opacity: 1; }
.arm-step-num {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}
.arm-step.active .arm-step-num { background: var(--primary, rgb(78,172,233)); color: #fff; }
.arm-step.done  .arm-step-num  { background: var(--text-main, #111827); color: #fff; }
.arm-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.arm-step.active .arm-step-label { color: var(--primary, rgb(78,172,233)); }
.arm-step.done   .arm-step-label { color: var(--text-main, #111827); }
.arm-step-connector {
    height: 1px;
    width: 72px;
    background: var(--border, #eaeaea);
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

/* ── Panels wrapper – fixed height so modal doesn't resize ── */
.arm-panels-wrapper {
    position: relative;
    min-height: 380px;   /* tall enough for all panels */
    overflow: hidden;
}

/* ── Panels ── */
.arm-panel {
    display: none;
    padding: 1.75rem 2rem 0.5rem;
    animation: armFadeIn 0.3s ease;
    /* absolute so panels overlay each other without affecting layout height */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}
.arm-panel.active {
    display: block;
    position: relative; /* active panel controls natural height */
}
@keyframes armFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.arm-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main, #111827);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}
.arm-panel-hint {
    font-size: 0.88rem;
    color: var(--text-muted, #6b7280);
    margin: 0 0 1.1rem;
    line-height: 1.6;
    max-width: 680px;
}

/* ── Form elements ── */
.arm-textarea {
    width: 100%;
    border: 1px solid var(--border-hover, #d1d5db);
    border-radius: 6px;
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main, #111827);
    background: var(--bg-subtle, #fafafa);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    line-height: 1.55;
}
.arm-textarea:focus {
    outline: none;
    border-color: var(--primary, rgb(78,172,233));
    box-shadow: 0 0 0 3px rgba(78,172,233,0.12);
    background: #fff;
}
.arm-input {
    width: 100%;
    border: 1px solid var(--border-hover, #d1d5db);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main, #111827);
    background: var(--bg-subtle, #fafafa);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.arm-input:focus {
    outline: none;
    border-color: var(--primary, rgb(78,172,233));
    box-shadow: 0 0 0 3px rgba(78,172,233,0.12);
    background: #fff;
}
.arm-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-main, #111827);
    margin-bottom: 0.35rem;
}
.arm-field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light, #9ca3af);
    margin-top: 0.25rem;
}
.arm-field-group { display: flex; flex-direction: column; }
.arm-char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light, #9ca3af);
    margin-top: 0.35rem;
}

/* ── Nav buttons ── */
.arm-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--border, #eaeaea);
    margin-top: 1rem;
}
/* small size tweak for the modal buttons */
.arm-nav .arm-btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
}

/* ── Success icon ── */
.arm-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(78, 172, 233, 0.08);
    border-radius: 50%;
    color: var(--primary, rgb(78,172,233));
    margin-bottom: 1.25rem;
}

/* ── Validation and Error States ── */
.arm-input.is-invalid, .arm-textarea.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
.arm-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    font-weight: 500;
}
