.toytec-shock-rebuild-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: #fff;
}

.toytec-shock-rebuild-form .page-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 5px;
  color: #333;
}

.toytec-shock-rebuild-form .form-description {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
}

.shock-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.shock-column {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shock-column-header {
  background: #cc0000;
  color: white;
  padding: 8px 12px;
  margin-bottom: 15px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.shock-column-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
}

.shock-column-content {
  padding: 0 12px 12px;
}

.field {
  margin-bottom: 12px;
}

.field .label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #212529;
  font-weight: 500;
  line-height: 1.2;
}

.field .label span:after {
  content: "*";
  color: #cc0000;
  margin-left: 2px;
  display: none;
}

.field.required .label span:after {
  display: inline;
}

.field .control {
  width: 100%;
}

.select,
.input-text {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  height: 40px;
}

.input-text::placeholder {
  color: #757575;
}

.input-text:focus {
  border-color: #666;
  outline: none;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'%3E%3Cpath fill='%23333' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 5px;
  padding-right: 30px;
}

.select:hover,
.input-text:hover {
  border-color: #cbd3da;
}

.select:focus,
.input-text:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 1;
}

/* Contact Information Section */
.contact-info {
  max-width: 100%;
  margin: 30px auto;
  padding: 20px 30px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.contact-info .legend {
  font-size: 16px;
  margin-bottom: 25px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info .legend .required {
  color: #666;
  font-size: 14px;
  font-weight: normal;
}

.contact-info .fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start; /* Prevent upward movement */
}

/* Ensure all fields in contact info have consistent height */
.contact-info .field {
  margin-bottom: 0; /* Remove bottom margin to prevent spacing issues */
  min-height: 90px; 
  margin-top:13px;/* Set minimum height to prevent shifting */
}

.contact-info .field .control {
  margin-top: 8px; /* Add consistent spacing between label and input */
}

/* Privacy Policy Section */
.privacy-policy {
  max-width: 100%;
  margin: 20px auto;
  padding: 20px 30px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.privacy-policy a {
  color: #cc0000;
  text-decoration: none;
}

.privacy-policy a:hover {
  text-decoration: underline;
}

.privacy-policy .field.choice {
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.privacy-policy .field.choice input[type="checkbox"] {
  margin-top: 3px;
  width: auto;
  height: auto;
}

.privacy-policy .field.choice label {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  font-weight: normal;
  display: inline;
  width: auto;
}

.privacy-policy .field.choice.required label .required {
  color: #cc0000;
  margin-left: 2px;
}

/* Submit Button */
.actions-toolbar {
  text-align: center;
  margin: 30px auto;
  max-width: 300px;
}

.action.submit.primary {
  width: 100%;
  background: #cc0000;
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  text-transform: none;
  transition: background-color 0.2s ease;
}

.action.submit.primary:hover {
  background: #b30000;
}

/* Messages */
.message {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 2px;
  font-size: 14px;
}

.message.success {
  background: #e5efe5;
  color: #006400;
}

.message.error {
  background: #fae5e5;
  color: #e02b27;
}

/* Who Serviced Field */
.who-serviced-field {
  display: none;
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .shock-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info .fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-info .field {
    min-height: auto;
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) {
  .shock-columns {
    grid-template-columns: 1fr;
  }

  .toytec-shock-rebuild-form {
    padding: 15px;
  }
}

/* Update placeholder color to match design */
::placeholder {
  color: #6c757d;
  font-size: 14px;
}

:-ms-input-placeholder {
  color: #6c757d;
  font-size: 14px;
}

::-ms-input-placeholder {
  color: #6c757d;
  font-size: 14px;
}

.shock-column-content .field {
  margin-bottom: 15px;
}

/* Update the who-serviced field styling */
[class$="-who-serviced"] {
  display: none; /* Hidden by default */
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  background-color: #f8f9fa;
}

[class$="-who-serviced"].show {
  display: block;
}

/* Ensure proper spacing for the field when shown */
.field[class$="-who-serviced"] {
  margin-bottom: 15px;
}

/* Style the input field */
[class$="-who-serviced"] input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
}

/* Adjust spacing */
.field + .field {
  margin-top: 12px; /* Reduced from 15px */
}

/* Ensure consistent height for select elements */
select.select {
  height: 38px !important;
  
}

/* Add specific styling for the Vehicle Information field in the first column */
#vehicle_information {
  margin-top: 5px;
}

/* Update reCAPTCHA container */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}

/* Validation styles */
.validation-message {
  display: none;
  color: #e02b27;
  font-size: 12px;
  margin-top: 4px;
}

.mage-error {
  display: none;
  color: #e02b27;
  font-size: 12px;
  margin-top: 4px;
}

.field.required .mage-error {
  display: block;
}

/* Hide validation message when field is valid */
.field.valid .validation-message,
.field.valid .mage-error {
  display: none !important;
}

/* Style for invalid fields */
.field.invalid input,
.field.invalid select {
  border-color: #e02b27;
}

/* New form layout styles */
.initial-questions {
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

/* Two-column layout for initial questions */
.two-columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.two-columns-container .column {
  flex: 1;
  min-width: 250px;
}

/* Three-column layout for vehicle information */
.three-columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.three-columns-container .column {
  flex: 1;
  min-width: 150px;
}

@media (max-width: 767px) {
  .three-columns-container {
    flex-direction: column;
    gap: 10px;
  }

  .three-columns-container .column {
    width: 100%;
  }
}

/* Ensure the which-shocks field is visible when displayed */
.which-shocks-field {
  margin-top: 20px;
}

/* Ensure the which-shocks field is visible when displayed */
.which-shocks-field {
  margin-top: 0;
}

/* Make sure vehicle info field has proper spacing */
.vehicle-info-field {
  margin-top: 10px;
}

@media (max-width: 576px) {
  .two-columns-container {
    flex-direction: column;
  }
}

.initial-questions .field {
  margin-bottom: 20px;
}

/* Ensure consistent styling for all fields */
.field label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.field select,
.field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Style for the vehicle info field */
.vehicle-info-field input {
  font-size: 14px;
}

/* Ensure proper spacing between sections */
.shock-column {
  margin-bottom: 20px;
}

/* Add these styles to your CSS file */

/* Half-width column for "Is shock removal needed?" */
.half-width {
  max-width: 50%;
}

/* Vehicle info section styling */
.vehicle-info-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

/* Ensure the which-shocks field has proper spacing */
.which-shocks-field-yes {
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .half-width {
    max-width: 100%;
  }
}
