/* HEADER STYLING */
:root {
    --stb-navy: #002868;
    --stb-gold: #BF9B30;
    --stb-gold-light: #f5e9c8;
    --stb-gray: #f4f6f9;
}

body {
    background-color: var(--stb-gray);
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
}

/* ---- Top bar ---- */
.top-bar {
    background-color: var(--stb-gold);
    padding: 5px 0;
}
.top-bar span {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stb-navy);
}

/* ---- Main header ---- */
.site-header {
    background-color: var(--stb-navy);
    padding: 20px 0;
    border-bottom: 4px solid var(--stb-gold);
}
.site-header .agency-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stb-gold);
    margin-bottom: 4px;
}
.site-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}
.site-header .portal-label {
    font-size: 12px;
    color: #aabbd4;
    margin-top: 4px;
}

/* ---- Content card ---- */
.content-card {
    background-color: #ffffff;
    border: 1px solid #dde3ed;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* MAIN FORM STYLING */
h2 { color: #333; margin-top: 0; margin-bottom: 10px; border-bottom: 2px solid #000; padding-bottom: 8px; font-size: 18px; }
h3 { color: #333; margin: 0 0 8px 0; font-size: 16px; }
h4 { color: #333; margin: 0 0 8px 0; font-size: 14px; }

.form-section { display: none; }
.form-section.active { display: block; }

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.required::after {
    content: " *";
    color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

.section-divider {
  border: none;
  border-top: 2px solid #d3d3d3;
  padding-top: 30px;
  margin-top: 30px;
  width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.four-cols {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.hidden-div {
    display: none; 
    padding: 15px; 
    background-color: #f9f9f9; 
    border-left: 3px solid #ffc107; 
    margin-top: 10px;
}

.review-content {
    background: white; 
    padding: 30px; 
    margin: 20px 0; 
    border: 1px solid #ccc;  
    line-height: 1.5;
}

.text-primary {
    color: var(--stb-navy) !important;
    font-weight: bold !important;
}

/* CUSTOM ALERT STYLES */

.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.alert-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.alert-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    text-align: left;
}

.alert-btn {
    background: #002868;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: block;
    margin: 0 auto;
}

.alert-btn:hover {
    background: #0056b3;
}

/* SEARCH STYLES - COMPACT */
.search-container {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.search-column {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.results-column {
    padding: 0px;
    background-color: #f0f8ff;
    border-radius: 4px;
    border: 1px solid #d0e8ff;
    max-height: 400px;
    overflow-y: auto;
}

/* RESULTS TABLE */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.results-table thead {
    background-color: #007bff;
    color: white;
    position: sticky;
    top: 0;
}

.results-table th,
.results-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table tbody tr:hover {
    background-color: #e7f3ff;
    cursor: pointer;
}

.results-table tbody tr.selected {
    background-color: #cce5ff;
    font-weight: bold;
}

.no-results {
    padding: 12px;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.selected-item {
    background-color: #e8f5e9;
    padding: 10px;
    border-left: 4px solid #4caf50;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
}

/* RADIO GROUP STYLE */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
    font-size: 13px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 6px;
}

/* BS TEXT BOX STYLING */

.info-text {
    background-color: #e8f4f8;
    padding: 8px 10px;
    border-left: 4px solid #0066cc;
    margin-bottom: 12px;
    font-size: 12px;
    color: #333;
}

.warning-text {
    background-color: #fff3cd;
    padding: 8px 10px;
    border-left: 4px solid #ffc107;
    margin-bottom: 12px;
    font-size: 12px;
    color: #000;
}

.danger-text {
    background-color: #f8d7da;
    padding: 8px 10px;
    border-left: 4px solid #dc3545;
    margin-bottom: 12px;
    font-size: 12px;
    color: #721c24;
}

/* BUTTON STYLING */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

button {
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
  background-color: #002868 !important;
  border-color: #002868 !important;
  color: white;
}
.btn-primary:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* PROGRESS BAR STYLING */
.progress-bar {
    background-color: #e9ecef;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #198754;
    transition: width 0.3s;
}

.step-indicator {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
}

/* FILE INPUT STYLING */
input[type="file"]::file-selector-button {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

input[type="file"]::file-selector-button:hover {
    background-color: #0056b3;
}

input[type="file"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0;
    color: transparent;
}

input[type="file"]::before {
    content: '';
}

/* ACKNOWLEDGEMENT STYLING */
#acknowledgeck {
  width: 16px;
  height: 16px;
  vertical-align: top;
}
#acknowledgeck + span {
  font-size: 16px; 
}

/* CHECKBOX/RADIO ERROR HIGHLIGHT */
label.checkbox-error {
    background-color: #fff3f3;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 6px 10px;
    color: #dc3545;
    font-weight: bold;
    display: inline-block;
}

label.checkbox-error input[type="checkbox"],
label.checkbox-error input[type="radio"] {
    outline: 1px solid #dc3545;
    outline-offset: 2px;
}

/* MAINTENANCE PAGE STYLE */
  .maint-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(10,36,99,.12);
    max-width: 680px;
    width: 100%;
    margin: 2rem auto;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  }
  .maint-card-accent {
    height: 6px;
    background: linear-gradient(90deg, #0a2463 0%, #c9a227 100%);
  }
  .maint-card-body {
    padding: 2.5rem 2.75rem;
  }
  .maint-status-icon {
    width: 72px; height: 72px;
    background: #fff3cd;
    border: 2px solid #f0c040;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
  }
  .maint-status-icon svg { width: 36px; height: 36px; }
  .maint-card-body h2 {
    text-align: center;
    font-size: 1.6rem;
    color: #0a2463;
    margin: 0 0 .5rem;
  }
  .maint-subtitle {
    text-align: center;
    color: #5a6a8a;
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .maint-progress-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2rem;
  }
  .maint-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #c9d0e0;
  }
  .maint-dot.active { background: #0a2463; animation: maintPulse 1.5s infinite; }
  .maint-dot.done   { background: #c9a227; }
  @keyframes maintPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.3); }
  }
  .maint-notice {
    background: #eef2fa;
    border-left: 4px solid #0a2463;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    color: #0a2463;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .maint-callout {
    background: #fffbea;
    border: 1px solid #f0c040;
    border-left: 4px solid #c9a227;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #5a4500;
    line-height: 1.6;
  }
  .maint-callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .05rem; }
  .maint-callout strong { color: #7a5c00; font-weight: 700; }
  .maint-divider {
    border: none;
    border-top: 1px solid #e4e8f0;
    margin-bottom: 1.5rem;
  }
  .maint-btn-row {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .maint-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: filter .15s;
  }
  .maint-btn:hover { filter: brightness(.9); }
  .maint-btn-primary { background: #0a2463; color: #fff; }
  .maint-btn-outline {
    background: transparent;
    color: #0a2463;
    border: 2px solid #0a2463;
  }
