/* --- Main Modal & Layout --- */
#quote-modal {
display: none;
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
}

.quote-modal-content {
display: flex; /* This creates the two-column layout */
background-color: #ffffff;
width: 100%;
max-width: 900px; /* Wider to accommodate two columns */
max-height: 90vh;
border-radius: 16px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
overflow: hidden; /* Prevents content from spilling out */
padding: 0; /* Remove padding from parent */
}

/* --- Left Sidebar --- */
.form-sidebar {
 background-color: #2c3e50; /* Dark blue/charcoal */
 color: #ffffff;
 padding: 40px;
 width: 35%;
 box-sizing: border-box;
}

.form-sidebar h2 {
 color: #ffffff;
 font-size: 24px;
 margin-top: 0;
 margin-bottom: 40px;
}

.step-indicator {
 list-style: none;
 padding: 0;
 margin: 0;
}

.step-indicator li {
 display: flex;
 align-items: center;
 margin-bottom: 30px;
 color: #a9b4c2; /* Gray for inactive text */
 transition: color 0.3s;
 cursor: pointer; /* Show it's clickable */
}

.step-indicator li.active {
 color: #ffffff; /* White for active text */
}

.step-number {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background-color: rgba(255, 255, 255, 0.1);
 border: 2px solid #a9b4c2; /* Gray border for inactive */
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 font-size: 18px;
 margin-right: 15px;
 transition: background-color 0.3s, border-color 0.3s;
}

.step-indicator li.active .step-number {
 background-color: #3498db; /* Blue for active step number */
 border-color: #3498db; /* Blue border for active */
}

.step-text-content {
 display: flex;
 flex-direction: column;
}

.step-title-main {
 font-weight: 700;
 font-size: 16px;
}

.step-title-sub {
 font-size: 14px;
}

/* --- Right Content Area --- */
.form-content {
padding: 40px;
width: 65%;
overflow-y: auto; /* Allow scrolling only in the right column */
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
}

form#multi-step-form {
  flex-grow: 1; /* Allow the form to take up available space */
}

/* --- Mobile Header & Dot Indicator (Hidden on Desktop) --- */
.mobile-form-header,
.mobile-step-dots {
 display: none; 
}

/* --- Step Visibility --- */
.form-step {
display: none;
flex-direction: column;
}

.form-step.active {
display: flex;
}

/* --- Titles, Labels, Inputs, Buttons --- */
.form-step-header {
margin-bottom: 30px;
}

.step-title {
font-size: 28px;
font-weight: 700;
color: #2c3e50;
margin: 0;
}

.step-subtitle {
font-size: 16px;
color: #7f8c8d;
margin-top: 8px;
margin-bottom: 0;
font-weight: 400;
}

.form-step label {
display: block;
font-weight: 600;
color: #555;
margin-bottom: 8px;
font-size: 15px;
}

.form-step input[type="text"], .form-step input[type="email"], .form-step input[type="tel"], .form-step select {
width: 100%;
padding: 14px;
margin-bottom: 20px;
border: 1px solid #dcdcdc;
border-radius: 8px;
font-size: 16px;
}

.form-step input:focus, .form-step select:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.button-container {
display: flex;
justify-content: space-between;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #f0f0f0;
}

.next-step, .prev-step, button[type="submit"], .add-stop {
background-color: #2c3e50;
color: #ffffff;
padding: 12px 30px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
flex: none;
margin-left: 10px;
}

.prev-step {
background-color: #ecf0f1;
color: #777;
}

/* --- Close Button --- */
.close-modal {
color: #aaa;
position: absolute;
top: 15px;
right: 25px;
font-size: 32px;
cursor: pointer;
z-index: 10; /* Ensure it's above the content */
}

/*
* =========================================
* Mobile Responsive Styles
* =========================================
*/
@media (max-width: 768px) {
 .quote-modal-content {
     flex-direction: column;
     width: 95%;
     height: auto;
     max-height: 90vh;
     border-radius: 16px; /* Rounded corners on mobile */
 }

 .form-sidebar {
     display: none;
 }

 .form-content {
     width: 100%;
     padding: 0; /* Remove padding to allow header to be full-width */
     flex-grow: 1;
 }

 form#multi-step-form {
     padding: 20px 20px 0;
     overflow-y: auto;
     flex-grow: 1;
 }

 /* NEW: Style the new mobile header */
 .mobile-form-header {
     display: block;
     background-color: #2c3e50; /* Dark blue */
     color: #ffffff;
     padding: 20px;
     border-top-left-radius: 16px;
     border-top-right-radius: 16px;
     flex-shrink: 0;
 }

 #mobile-step-title {
     font-size: 22px;
     font-weight: 700;
     margin: 0;
     text-align: center;
	 color: #ffffff !important; /* Ensure the color is white */
 }

 /* Hide the original titles inside the form on mobile */
 .form-step-header {
     display: none;
 }

 /* Style the dots footer */
 .mobile-step-dots {
     display: flex;
     justify-content: center;
     padding: 15px;
     background-color: #f7f7f7;
     border-top: 1px solid #e0e0e0;
     flex-shrink: 0;
     border-bottom-left-radius: 16px;
     border-bottom-right-radius: 16px;
 }
 
 .dot {
     height: 12px;
     width: 12px;
     background-color: #cccccc;
     border-radius: 50%;
     margin: 0 8px;
     cursor: pointer;
 }

 .dot.active {
     background-color: #2c3e50;
 }

 /* FIX: Stack buttons vertically on mobile */
 .button-container {
     flex-direction: column;
     align-items: stretch;
     border-top: none;
     padding-top: 10px;
 }

 .button-container button,
 .button-container .next-step,
 .button-container .prev-step,
 .button-container .add-stop {
     width: 100%;
     margin-left: 0;
     margin-bottom: 15px;
 }

 .button-container .next-step,
 .button-container .add-stop,
 .button-container button[type="submit"] {
     order: 1;
 }

 .button-container .prev-step {
     order: 2;
     background-color: transparent;
     color: #777;
     font-weight: normal;
 }

 .close-modal {
     top: 10px;
     right: 15px;
     color: #ffffff; /* White to be visible on the dark blue header */
     z-index: 20; /* Ensure it's above the header */
 }
}