/* =============================================================
   CAVAC — Ag Inscription Code
   Extrait de views/ag/inscription/code.php le 2026-06-16. Tokens : tokens.css.
   ============================================================= */
.inscription-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 98, 71, 0.4);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 3px;
    background: var(--border-color);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

/* Form */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-section h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: var(--color-danger);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(0, 98, 71, 0.1);
}

.form-group input[type="text"]::placeholder {
    color: #b2bec3;
    text-transform: none;
}

/* Champ de code : même présentation que la saisie du code votant (.cavac-input) */
.form-group input.code-input {
    padding: 18px;
    font-size: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-actions {
    text-align: center;
    padding-top: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 98, 71, 0.4);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.info-box-action {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #ffe6e6;
    color: var(--danger-dark);
    border-left: 4px solid var(--color-danger);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Closed section */
.closed-section {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.closed-icon {
    margin-bottom: 1rem;
}

.closed-section h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.closed-section p {
    color: var(--text-secondary);
}

/* Info box */
.info-box {
    background: var(--bg-body);
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid var(--color-warning);
    margin-bottom: 1rem;
}

.info-box h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-box li {
    margin-bottom: 0.25rem;
}

/* Contact */
.contact-info {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--color-primary-dark);
}

@media (max-width: 500px) {
    .step-indicator {
        transform: scale(0.9);
    }

    .step-line {
        width: 30px;
    }

    .step-label {
        font-size: 0.75rem;
    }
}
