/* Minimal custom style for multi-step form based on provided site theme */
body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
  }
  .container {
    width: 100%;
    max-width: 900px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .progress-bar .step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #eee;
    border-radius: 5px;
    font-weight: bold;
  }
  .progress-bar .step.active {
    background: #00509e;
    color: #fff;
  }
  .form-step {
    display: none;
    animation: fadeSlide 0.5s ease forwards;
  }
  .form-step.active {
    display: block;
  }
  .fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .input-field {
    flex: 1 1 calc(50% - 10px); /* Default to two columns */
    display: flex;
    flex-direction: column;
  }
  .required {
    color: red;
  }
  
  /* New style for half-width GPS Address field */
  .input-field.gps-address-field {
    flex: 1 1 calc(50% - 10px); /* This makes it take up half the width, fitting into the existing 2-column flow */
  }
  
  /* New style for fields-row to display 4 items in a row on larger screens */
  .fields-row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 10px;
    margin-bottom: 15px; /* Add some space below the row */
  }
  
  .fields-row .input-field {
    flex: 1 1 calc(25% - 10px); /* Roughly 4 items per row, accounting for gap */
    min-width: 180px; /* Ensure fields don't get too small before wrapping */
  }
  
  @media (max-width: 768px) {
    .fields-row .input-field {
      flex: 1 1 calc(50% - 10px); /* On smaller screens, 2 items per row */
    }
  }
  
  @media (max-width: 480px) {
    .fields-row .input-field,
    .input-field { /* Also make general input-fields full width on very small screens */
      flex: 1 1 100%; /* On very small screens, 1 item per row */
    }
  }
  
  .input-field input,
  .input-field select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%; /* Ensure inputs fill their container */
    box-sizing: border-box; /* Include padding and border in the element's total width */
  }
  .buttons {
    margin-top: 20px;
    display: flex; /* To align buttons */
    justify-content: flex-end; /* Align to the right */
  }
  .buttons button {
    padding: 10px 20px;
    background: #00509e;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-left: 10px; /* Changed margin-right to margin-left for right alignment */
    cursor: pointer;
  }
  .buttons button:first-child { /* For "Back" button */
    background: #6c757d; /* A different color for back button */
  }
  .divider {
    margin: 20px 0 10px;
    font-weight: bold;
    color: #333;
  }
  .terms-box {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .thank-you {
    text-align: center;
  }
  .thank-you.hidden {
    display: none;
  }
  
  @keyframes fadeSlide {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }