﻿/* ═══════════════════════════════════
   CANDIDATURA — Partilhado
   ═══════════════════════════════════ */

.cand-header {
    text-align: center;
    margin-bottom: 28px;
}

.cand-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--yellow-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
    color: #1C1C1E;
    box-shadow: 0 4px 16px rgba(212,148,11,0.3);
}

.cand-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    margin: 0 0 6px;
}

.cand-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ── Steps ── */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    align-items: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-light);
    transition: all 0.3s ease;
}

    .step-circle.active {
        border-color: var(--yellow-accent);
        background: var(--yellow-accent);
        color: #1C1C1E;
    }

    .step-circle.done {
        border-color: var(--green-500);
        background: var(--green-500);
        color: #fff;
    }

.step-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-light);
    margin-left: 6px;
    white-space: nowrap;
    display: none;
}

.step-item.active .step-label {
    color: var(--text-dark);
    display: inline;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border-light);
    margin: 0 6px;
    transition: background 0.3s ease;
}

    .step-line.done {
        background: var(--green-500);
    }

/* ── Sections ── */
.cand-section {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}

    .cand-section.hidden {
        display: none;
    }

.cand-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
}

    .cand-section-head i {
        font-size: 14px;
        color: var(--yellow-accent);
    }

    .cand-section-head h3 {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0;
    }

.cand-section-body {
    padding: 20px 24px;
}

/* ── Fields ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

    .form-grid .full-width {
        grid-column: 1 / -1;
    }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .form-field label {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-medium);
    }

        .form-field label .req {
            color: var(--red-500);
            margin-left: 2px;
        }

    .form-field input, .form-field select, .form-field textarea {
        padding: 10px 14px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-xs);
        background: var(--bg-input);
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        color: var(--text-dark);
        outline: none;
        width: 100%;
        transition: border 0.2s ease;
    }

    .form-field textarea {
        resize: vertical;
        min-height: 60px;
    }

        .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
            border-color: var(--yellow-accent);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(232,168,23,0.08);
        }

.field-error {
    font-size: 11px;
    color: var(--red-500);
    font-weight: 500;
}

/* ── Actions ── */
.cand-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}

.btn-back-step, .btn-next-step, .btn-submit-cand {
    font-family: 'Inter', sans-serif;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back-step {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-medium);
}

    .btn-back-step:hover {
        border-color: var(--yellow-accent);
        color: var(--yellow-dark);
    }

.btn-next-step {
    font-size: 13px;
    font-weight: 700;
    padding: 10px 24px;
    background: var(--yellow-gradient);
    color: #1C1C1E;
    box-shadow: 0 2px 8px rgba(212,148,11,0.3);
}

    .btn-next-step:hover {
        box-shadow: 0 4px 16px rgba(212,148,11,0.4);
        transform: translateY(-1px);
    }

.btn-submit-cand {
    font-size: 14px;
    font-weight: 700;
    padding: 12px 32px;
    background: var(--green-500);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

    .btn-submit-cand:hover {
        box-shadow: 0 4px 16px rgba(16,185,129,0.4);
        transform: translateY(-1px);
    }

/* ── Alert ── */
.alert-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--red-100);
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
}

    .alert-error i {
        font-size: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }
