/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* =========================
   HEADER (solid as per brand)
========================= */
.header {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.step-indicator {
    font-size: 13px;
    opacity: 0.85;
}

/* =========================
   CONTAINER (wide card)
========================= */
.container {
    max-width: 1400px;
    width: 95%;
    margin: 25px auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* =========================
   SECTION HEADINGS
========================= */
.form-section {
    margin-bottom: 35px;
}

.form-section h2 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

/* =========================
   RESPONSIVE GRID
========================= */
.form-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 5;
}

/* =========================
   INPUTS
========================= */
.form-group label {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 9px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.15s, box-shadow 0.15s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

.form-group input[readonly] {
    background: #f3f4f6;
}

/* =========================
   BUTTONS – subtle & compact
========================= */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    line-height: 1.4;
    text-align: center;
}

/* Primary – use primary colour but lighter */
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    opacity: 0.88;
}

/* Secondary – subtle grey */
.btn-secondary {
    background: #f4f5f7;
    color: #333;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #b0b7c3;
}

/* Cancel / link-style buttons */
.btn-link {
    background: none;
    color: var(--primary);
    border: none;
    padding: 8px 12px;
    text-decoration: underline;
}

.btn-link:hover {
    text-decoration: none;
}

/* Disabled state */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================
   FORM ACTIONS (navigation)
========================= */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* =========================
   ERRORS & MESSAGES
========================= */
.error-list {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #b91c1c;
    font-size: 14px;
}

.field-validation {
    color: #16a34a;
    font-size: 12px;
    margin-top: 3px;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 3px;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */
@media (max-width: 1200px) {
    .form-row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .form-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 20px; }
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .btn {
        width: 100%;
        display: block;
    }
}