/* Contact / Quote form – compact but readable
   Place in: public_html/css/contact-form.css */

.contact-hero {
  padding: 1.25rem 0 2.5rem;
  background: transparent;
}

/* Alerts */
.alert {
  max-width: 820px;
  margin: 0 auto 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius, 8px);
  font-size: 0.92rem;
  line-height: 1.45;
}
.alert-success {
  background: #e6f4ea;
  border: 1px solid #34a853;
  color: #137333;
}
.alert-error {
  background: #fce8e6;
  border: 1px solid #d93025;
  color: #c5221f;
}

/* Form card */
.quote-form {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white, #fff);
  padding: 1.5rem 1.35rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(10, 37, 64, 0.12));
  border: 1px solid var(--gray-200, #E2E8F0);
}

/* Sections */
.form-section {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--gray-200, #E2E8F0);
}
.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
}
.form-section legend {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #0A2540);
  margin: 0 0 0.85rem;
  padding: 0;
  line-height: 1.3;
}
.form-section legend small {
  display: inline-block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray-600, #4A5568);
  margin-left: 0.2rem;
}

.section-note {
  font-size: 0.82rem;
  color: var(--gray-600, #4A5568);
  margin: -0.35rem 0 0.85rem;
  font-style: italic;
}

/* Field grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.1rem;
}
.form-grid .full {
  grid-column: 1 / -1;
}

/* Labels */
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy, #0A2540);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.field label small {
  font-weight: 400;
  color: var(--gray-600, #4A5568);
}
.req {
  color: #c53030;
  font-weight: 700;
}

/* Inputs */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="file"],
.field select {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--gray-200, #E2E8F0);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.35;
  color: var(--text, #1A202C);
  background: var(--white, #fff);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 2.2rem;
  box-sizing: border-box;
}
.field input[type="file"] {
  min-height: auto;
  padding: 0.35rem 0.4rem;
  font-size: 0.85rem;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy-light, #1E4D7B);
  box-shadow: 0 0 0 2px rgba(30, 77, 123, 0.15);
}
.field select {
  cursor: pointer;
  appearance: auto;
}

/* Validation errors – pink/red highlight */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #e53e3e !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2) !important;
}
.field.has-error > label,
.field.has-error .field-error-msg {
  color: #c53030;
}
.field-error-msg {
  display: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c53030;
  margin-top: 0.25rem;
}
.field.has-error .field-error-msg {
  display: block;
}
.field.has-error .radio-row,
.field.has-error .checkbox-grid,
.field.has-error .radio-col {
  outline: 2px solid #fc8181;
  outline-offset: 4px;
  border-radius: 6px;
  background: #fff5f5;
  padding: 0.35rem 0.5rem;
}
.form-error-banner {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0 auto 1.25rem;
  max-width: 820px;
  font-weight: 600;
}

/* Textareas – still clearly visible, slightly compact */
.quote-form textarea,
.field textarea,
textarea#Needs,
textarea#Message,
textarea#Sail_inventory {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  min-height: 90px !important;
  height: auto !important;
  resize: vertical !important;
  line-height: 1.45 !important;
  border: 1.5px solid #94a3b8 !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  padding: 0.55rem 0.7rem !important;
  font-size: 0.92rem !important;
  font-family: inherit !important;
  color: #1A202C !important;
  box-sizing: border-box !important;
  overflow: auto !important;
}
.quote-form textarea:focus,
.field textarea:focus,
textarea#Needs:focus,
textarea#Message:focus,
textarea#Sail_inventory:focus {
  background: #ffffff !important;
  border-color: #1E4D7B !important;
  box-shadow: 0 0 0 2px rgba(30, 77, 123, 0.15) !important;
  outline: none !important;
}
textarea#Message {
  min-height: 120px !important;
}

/* Radios & checkboxes */
.radio-row,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  padding-top: 0.1rem;
}
.radio-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.1rem;
}
.radio-label,
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text, #1A202C);
  line-height: 1.3;
}
.radio-label input,
.check-label input {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--navy, #0A2540);
  margin: 0;
}

/* Equipment grid */
.equip-title {
  font-size: 0.98rem;
  margin: 1.15rem 0 0.7rem;
  color: var(--navy, #0A2540);
  font-weight: 700;
}
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem 1rem;
}
.equip-field label {
  margin-bottom: 0.25rem;
}

/* Sleeping | Head+AC | Coffee+Microwave — same left-to-right order, just stacked */
.equip-living-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.65rem 1.25rem;
  align-items: start;
}
.equip-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.equip-living-group .equip-field {
  margin: 0;
}
.radio-col-compact {
  gap: 0.28rem;
}
.radio-col-compact .radio-label {
  font-size: 0.82rem;
  line-height: 1.25;
}

.equip-break {
  grid-column: 1 / -1;
  height: 0;
  margin: 0.55rem 0 0.7rem;
  border: none;
  border-top: 1px solid var(--gray-200, #E2E8F0);
}

@media (max-width: 560px) {
  .equip-living-group {
    grid-template-columns: 1fr;
  }
}

/* Submit area */
.form-actions {
  text-align: center;
  margin-top: 1.35rem;
  padding-top: 0.25rem;
}
.form-actions .btn {
  min-width: 180px;
  min-height: 2.5rem;
  font-size: 0.98rem;
  padding: 0.55rem 1.25rem;
}
.form-footnote {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--gray-600, #4A5568);
  line-height: 1.4;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Honeypot – hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .quote-form {
    padding: 1.15rem 0.9rem;
    border-radius: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .form-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
  }
  .form-section legend {
    font-size: 1.02rem;
  }
  .equip-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 0.85rem 0 1.75rem;
  }
  .quote-form {
    padding: 1rem 0.75rem;
  }
  .equip-grid {
    grid-template-columns: 1fr;
  }
  .radio-row,
  .checkbox-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
