* {
    box-sizing: border-box;
}

body {
    /* font-size: 14px; */
    font-family: Arial, sans-serif;
    font-style: normal;
    background-color: #f4f7f9;
    /* margin: 0 auto; */
}
.acord-50{
    width:70%;
    margin: 0 auto; 
}
.acord-50 label {
    cursor: default;
}

.border-box {
    /* margin:10px; */
    padding:15px;
    /* border-radius: 8px; */
    border: 0.8px solid lightgrey;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    background-color: #fff;
  
}
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    padding: 10px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}
.heading{
    font-size: large;
    position: sticky;
    top: 0;
    background: #ffc107;
    padding:10px;
    padding-top:15px;
    z-index: 100;
    
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.step-label {
    font-size: 11px;
    color: #888;
    text-align: center;
    max-width: 70px;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 4px;
    margin-bottom: 20px; /* offset for label */
}

/* Active step - yellow circle */
.step.active .step-circle {
    background-color: #ffc107;
    color: white;
}

.step.active .step-label {
    color: #ffc107;
    font-weight: bold;
}

/* Completed step - dark blue with tick */
.step.completed .step-circle {
    background-color: #1a3e6e;
    color: white;
}

.step.completed .step-circle::before {
    content: "✓";
}

.step.completed + .step-line {
    background-color: #1a3e6e;
}

.step.completed .step-label {
    color: #1a3e6e;
}
form{
    padding:10px;
    margin: 2px;
}
label{
    font-size: small;
    padding:5px;
    white-space: nowrap;
}
option:hover {
  background-color: #ffc107; /* Your desired hover color */
  color: white;
}
h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 4px 0;
    padding-bottom: 5px;
  
}
p {
    font-size: small;
}
.center{
  text-align: center;
}
.divider{
    flex: 1;
    height: 2px;
    background-color: #ffc107;
    margin: 0 4px;
    margin-bottom: 20px; 
}
.blue_divider{
    flex: 1;
    height: 2px;
    background-color: #1a3e6e;
    /* margin: 0 4px; */
    margin-bottom: 20px;   
}
.buttons{
    display: flex;
    justify-content: space-between;
    margin: 10px;
}
.next_button{
    width: auto;
    height: auto;
    padding: 6px 12px;
    background-color: #ffc107;
    color: black;
    border: none;
    border-radius: 8px; 
    box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    margin-top: 6px;
    /* text-align: right;
    margin: 6px 2px; */
}
.back_button{
    width: auto;
    height: auto;
    padding: 6px 12px;
    background-color: #e0e0e0; 
    color: #888;
    border: none;
    border-radius: 8px; 
    box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    margin-top: 6px;
}
.form-group {
    margin-bottom: 12px;
}

.form-rows {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 12px;
} 
.drivers {
    border-radius: 8px;
    border: 0.8px solid lightgrey;
    padding: 12px;
}

/* Title full width */
.driver-title {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 14px;  /* add this */
}

/* Actual 3-column layout */
.driver-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));  /* change this */
    gap: 12px;
}
.driver-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;  /* add this */
    gap: 8px;  
}

.edit-button {
    width: auto;
    height: auto;
    padding: 6px 12px;
    background-color: rgba(211, 211, 211, 0);
    color: #eab308;
    /* border: 1px solid #eab308; */
    /* border-radius: 4px; */
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    font-weight: bold;
    /* margin-top: 6px; */
}
.edit-button:hover {
    background-color: rgba(211, 211, 211, 0);
    color: #1a3e6e;
}
input, select{
    width:100%;
    padding: 8px;
    /* margin-top: 4px;  */
    /* border-radius: 4px; */
    border: 1px solid #dcdcdc; 
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    height: 38px;


}
/* select:invalid { */
    /* color: lightgrey; placeholder color */
/* } */

select option {
    color: #333; 
}
/* input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
} */
::placeholder {
  color: #888;
  font-size: small;
  opacity: 1;
}
.required::after {
    content: " *";
    color: #d93025; 
}
.error-message {
    color: #d93025;
    font-size: 11px;
    margin-top: 4px;
    display: none;
}

input.invalid, select.invalid, textarea.invalid {
    border-color: #d93025 !important;
}

input.valid, select.valid, textarea.valid {
    border-color: #34a853 !important;
}
#review-content {
    padding: 20px;
    background: white;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}
#review-content  .border-box {
    margin:20px;
    padding:15px;
    border-radius: 8px;
    border: 0.8px solid lightgrey;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    background-color: rgba(211, 211, 211, 0.3);
  
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 12px; */
    color:#1a3e6e;
    
}

.review-header h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.review-label {
    font-size: 11px;
    color: #888;
    display: block;
}

.review-grid p {
    font-weight: bold;
    font-size: 13px;
    margin: 2px 0 0 0;
}

/* ─── SEARCHABLE DROPDOWN ────────────────────────────── */
.dropdown-wrapper {
    position: relative;
    width: 100%;
}

.dropdown-input {
    width: 100%;
    padding: 5px;
    margin-top: 4px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    height: 38px;
    box-sizing: border-box;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-list.open {
    display: block;
}

.dropdown-list .dropdown-item {
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.dropdown-list .dropdown-item:hover,
.dropdown-list .dropdown-item.highlighted {
    background-color: #fff8e1;
    color: #333;
}

.dropdown-list .dropdown-item.no-results {
    color: #888;
    cursor: default;
    font-style: italic;
}

.dropdown-list .dropdown-item.no-results:hover {
    background-color: #fff;
}
/* ─── LOADER ─────────────────────────────────────────── */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loader-overlay.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top-color: #ffc107;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    .acord-50 {
        width: 95%;
    }

    .form-rows {
        grid-template-columns: 1fr;
    }

    .driver-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 480px) {
    .driver-row {
        grid-template-columns: 1fr;
    }
}

/* ── Login Modal ── */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-modal .loginOptionsButton .btn {
    white-space: nowrap;
    padding: 8px 16px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}
