/* Houff Corporation Driver Application Styles */
:root {
    --primary: #006b2d;
    --primary-light: #009a3e;
    --accent: #009a3e;
    --success: #22c55e;
    --bg: #f8faf8;
    --card-bg: #ffffff;
}

body {
    background-color: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
}

.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, #00802e 100%);
}
.app-header img.logo {
    max-height: 70px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
}
.app-header h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: 0.5px; }
.app-header p { font-size: 1.1rem; opacity: 0.9; }
.app-header small { opacity: 0.7; }

/* Progress */
.progress-container {
    background: #fff;
    padding: 12px 16px 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.progress-bar { background: var(--accent); transition: width 0.4s ease; }
.step-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    flex: 1;
    transition: color 0.3s, font-weight 0.3s;
}
.step-label.active { color: var(--accent); font-weight: 600; }
.step-label.completed { color: var(--success); }

@media (max-width: 576px) {
    .step-label { font-size: 0.55rem; }
    .app-header h1 { font-size: 1.3rem; }
}

/* Form Steps */
.step-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.req { color: #ef4444; }

/* Employer blocks */
.employer-block { background: #fafbfc; }
.employer-block h5 { color: var(--primary); }

/* Conditional sections */
.conditional-section {
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

/* Signature canvas */
.signature-container {
    max-width: 600px;
    background: #fff;
}
#signature-canvas {
    display: block;
    border-radius: 4px;
}

/* Authorization text */
.authorization-text {
    background: #fffbeb;
    border-color: #fbbf24 !important;
}

/* Buttons */
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #007a33; border-color: #007a33; }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-success:hover { background: #16a34a; border-color: #16a34a; }

/* Review section */
#review-content h6 {
    color: var(--primary);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
    margin-top: 12px;
}
#review-content .review-field {
    display: flex;
    padding: 2px 0;
    font-size: 0.9rem;
}
#review-content .review-label {
    font-weight: 600;
    min-width: 180px;
    color: #475569;
}

/* Loading & Success */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner-border { width: 3rem; height: 3rem; }

/* Driving experience items */
.driving-exp-item { background: #fafbfc; }
.driving-exp-item .form-check-label { font-size: 0.95rem; }

/* Prev address blocks */
.prev-address-block strong { font-size: 0.9rem; color: var(--primary); }

/* Responsive table fixes */
@media (max-width: 768px) {
    .table-responsive table { min-width: 500px; }
    #review-content .review-field { flex-direction: column; }
    #review-content .review-label { min-width: auto; margin-bottom: 0; }
}

/* Form validation styles */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #ef4444;
}
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(239,68,68,0.25);
}
