/**
 * Inscription partenaires — wizard + accents livreur/dépôt (auth v2).
 */

/* ——— Même disposition que le client : une seule colonne, carte centrée ——— */
.gxa-shell--solo {
    justify-content: center;
}

.gxa-shell--solo .gxa-panel {
    flex: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.gxa-shell--solo .gxa-main {
    max-width: 100%;
    padding: 4px 18px max(28px, env(safe-area-inset-bottom));
}

.gxa-shell--solo .gxa-card__body {
    padding: 26px 22px 28px;
}

@media (min-width: 480px) {
    .gxa-shell--solo .gxa-main {
        padding-left: 24px;
        padding-right: 24px;
    }
    .gxa-shell--solo .gxa-card__body {
        padding: 30px 28px 34px;
    }
}

.gxa-partner--livreur {
    --gxa-accent: #f97316;
    --gxa-accent-soft: #fff7ed;
}

.gxa-partner--depot {
    --gxa-accent: #1d4ed8;
    --gxa-accent-soft: #eff6ff;
}

.gxa-partner--livreur .gxa-cta,
.gxa-partner--livreur .gxa-progress__bar {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.gxa-partner--depot .gxa-cta,
.gxa-partner--depot .gxa-progress__bar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.gxa-partner--livreur .gxa-hero__badge { background: var(--gxa-accent-soft); color: #c2410c; }
.gxa-partner--depot .gxa-hero__badge { background: var(--gxa-accent-soft); color: #1e40af; }

.gxa-partner--livreur .gxa-check input { accent-color: #f97316; }
.gxa-partner--depot .gxa-check input { accent-color: #1d4ed8; }

.gxa-opt { color: var(--gx-text-muted, #64748b); font-weight: 400; }

.gxa-select-wrap { position: relative; margin-bottom: 12px; }
.gxa-select-wrap select {
    width: 100%;
    min-height: 52px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--gx-border, #e2e8f0);
    border-radius: var(--gx-radius-md, 12px);
    background: var(--gx-surface, #fff);
    font-size: 15px;
    color: var(--gx-text, #0f172a);
    outline: none;
    appearance: none;
    cursor: pointer;
}
.gxa-select-wrap select:focus {
    border-color: var(--gxa-accent, var(--gx-primary, #1d4ed8));
    box-shadow: 0 0 0 3px var(--gxa-accent-soft, #e8f0fe);
}
.gxa-select-wrap::after {
    content: '';
    position: absolute;
    right: 16px; top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.gxa-pwd { position: relative; }
.gxa-pwd .gxa-input { padding-right: 48px; }
.gxa-pwd-toggle {
    position: absolute; top: 0; right: 0; height: 52px; width: 46px;
    border: 0; background: none; color: var(--gx-text-muted, #64748b);
    font-size: 18px; cursor: pointer;
}

.gxa-textarea {
    min-height: 72px;
    padding-top: 14px;
    resize: vertical;
}

.gxa-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--gx-text-muted, #64748b);
}
.gxa-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.gxa-check a { color: var(--gx-primary, #1d4ed8); }

/* Barre de progression */
.gxa-progress {
    position: relative;
    height: 4px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.gxa-progress__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.25s ease;
}
.gxa-progress__label {
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gx-text-muted, #64748b);
}

/* Wizard */
.gxa-wizard__step[hidden] { display: none !important; }
.gxa-wizard__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.gxa-wizard__nav .gxa-cta { flex: 1; margin-top: 0; }
.gxa-wizard__back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 48px;
    padding: 0 12px;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gx-text-muted, #64748b);
    cursor: pointer;
}

.gxa-depot-map {
    height: 200px;
    margin: 10px 0 14px;
    border-radius: var(--gx-radius-md, 12px);
    overflow: hidden;
    border: 1px solid var(--gx-border, #e2e8f0);
}
.gxa-depot-map__frame { width: 100%; height: 100%; border: 0; display: block; }

/* Upload document (1 par écran) */
.gxa-upload-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    padding: 24px 16px;
    margin: 16px 0;
    border: 2px dashed var(--gx-border, #cbd5e1);
    border-radius: 16px;
    background: var(--gx-bg, #f8fafc);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.gxa-upload-hero:hover { border-color: var(--gxa-accent, #1d4ed8); background: var(--gxa-accent-soft, #eff6ff); }
.gxa-upload-hero.is-filled { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.gxa-upload-hero input[type="file"] { position: absolute; width: 0; height: 0; opacity: 0; }
.gxa-upload-hero__icon { font-size: 36px; color: var(--gxa-accent, #1d4ed8); }
.gxa-upload-hero.is-filled .gxa-upload-hero__icon { color: #16a34a; }
.gxa-upload-hero__title { font-size: 16px; font-weight: 700; color: var(--gx-night, #0d1b2a); }
.gxa-upload-hero__hint { font-size: 13px; color: var(--gx-text-muted, #64748b); max-width: 28ch; }
.gxa-upload-hero__file { font-size: 13px; font-weight: 600; color: #16a34a; }
