/* Motor quote form – matches Niuguard lead forms (.lead-form-section) */
.motor-quote-section.lead-form-section {
  background: #edf7fe;
  padding: 1.75rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.motor-quote-section .lead-form-three-col {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px;
}

.motor-quote-section .lead-form-three-col .lead-form-field {
  padding: 0 6px 0.4rem 6px !important;
  margin-bottom: 0.5rem !important;
}

.motor-quote-section .lead-form-three-col .lead-form-field.lead-col-third {
  width: 33.333% !important;
  flex: 0 0 33.333%;
  max-width: 33.333%;
  box-sizing: border-box;
}

.motor-quote-section .lead-form-three-col .lead-form-field.lead-col-full {
  width: 100% !important;
  flex: 0 0 100%;
  max-width: 100%;
}

.motor-form-two-col {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px;
}

.motor-form-two-col .lead-form-field {
  padding: 0 6px 0.4rem 6px !important;
  margin-bottom: 0.5rem !important;
  box-sizing: border-box;
}

.motor-quote-section .motor-form-two-col .lead-form-field.lead-col-half {
  width: 50% !important;
  flex: 0 0 50%;
  max-width: 50%;
}

@media (max-width: 768px) {
  .motor-quote-section .lead-form-three-col .lead-form-field.lead-col-third {
    width: 50% !important;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 480px) {
  .motor-quote-section .lead-form-three-col .lead-form-field.lead-col-third,
  .motor-quote-section .motor-form-two-col .lead-form-field.lead-col-half {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.motor-quote-section .lead-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0f3567;
  font-size: 0.9rem;
}

.motor-quote-section input,
.motor-quote-section select {
  width: 100%;
  height: 41px !important;
  min-height: 41px !important;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.motor-quote-section input[type="date"] {
  min-height: 41px !important;
}

.motor-quote-section select {
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M12.72,15.78a.75.75,0,0,1-.53.22h-.38a.77.77,0,0,1-.53-.22L6.15,10.64a.5.5,0,0,1,0-.71l.71-.71a.49.49,0,0,1,.7,0L12,13.67l4.44-4.45a.5.5,0,0,1,.71,0l.7.71a.5.5,0,0,1,0,.71Z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 18px 20px !important;
}

.motor-quote-section textarea {
  width: 100% !important;
  min-height: 70px !important;
  max-height: 120px !important;
  padding: 8px 12px !important;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  resize: vertical;
}

.motor-quote-section input:focus,
.motor-quote-section select:focus,
.motor-quote-section textarea:focus {
  border-color: #008bf9;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 139, 249, 0.2);
}

.motor-purpose-hint {
  margin: 0.35rem 0 0 0;
  font-size: 0.85rem;
  color: #555;
}

.motor-field-block {
  margin-bottom: 1rem;
}

.motor-panel-title {
  font-size: 1.1rem;
  color: #0f3567;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}

.motor-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.35rem;
}

.motor-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.motor-radio-label input {
  width: auto !important;
  min-height: auto !important;
  height: auto !important;
  margin: 0;
}

.motor-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.motor-addons-intro {
  margin: 0 0 0.35rem 0;
  font-size: 0.85rem;
  color: #555;
}

.motor-quote-section .lead-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

.motor-quote-section .lead-checkbox-label input {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #999 !important;
  border-radius: 3px !important;
  background: #fff !important;
  position: relative !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.motor-quote-section .lead-checkbox-label input:checked {
  background: #fff !important;
  border-color: #008bf9 !important;
  border-width: 2px !important;
}

.motor-quote-section .lead-checkbox-label input:checked::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 5px !important;
  top: 1px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid #008bf9 !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  background: transparent !important;
}

.motor-shared-heading {
  font-size: 1.05rem;
  color: #0f3567;
  margin: 1.25rem 0 0.75rem 0;
  font-weight: 700;
}

.motor-shared-block {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 53, 103, 0.12);
  margin-top: 0.5rem;
}

.motor-quote-section .lead-form-submit-wrap {
  margin-top: 0.75rem;
}

.motor-quote-section .lead-form-submit-btn {
  background: #008bf9 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 24px !important;
}

.motor-quote-section .lead-form-submit-btn:hover {
  background: #0f3567 !important;
}

.motor-quote-section .motor-form-message.lead-form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.motor-quote-section .motor-form-message.lead-form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes motorSpin {
  to {
    transform: rotate(360deg);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
