/* assets/css/pages/contact.css */

.contact-card {
  max-width: 900px;
  margin: 0 auto;
}

.contact-card-head {
  margin-bottom: 14px;
}

.contact-h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.contact-primary {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 55%, transparent);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0 16px;
}

.contact-primary-label {
  margin-bottom: 10px;
}

.contact-call-btn {
  width: 100%;
  justify-content: center;
}
.contact-call-btn.is-disabled {
  pointer-events: none;
}

.contact-divider {
  border: 0;
  border-top: 1px solid var(--brand);
  margin: 18px 0;
  opacity: 0.85;
}

.contact-primary-sub {
  margin-top: 10px;
  font-size: 13px;
  min-height: 2.8em;
  line-height: 1.4;
}
.contact-primary-sub.is-hidden {
  visibility: hidden;
}

.contact-message {
  margin-top: 10px;
}

.contact-label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-label-no-mmargin {
  display: inline-block;
  font-weight: 600;
}

.contact-textarea,
.contact-input {
  width: 100%;

  border: 2px solid color-mix(in srgb, var(--border) 55%, var(--text));
  background: var(--surface);
  color: var(--text);

  border-radius: 14px;
  padding: 12px;
  line-height: 1.5;

  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.contact-textarea:hover,
.contact-input:hover {
  border-color: color-mix(in srgb, var(--text) 65%, var(--border));
}
.contact-input:focus-visible,
.contact-textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 55%, transparent);
  outline-offset: 3px;
}

.contact-note {
  margin-top: 10px;
}
.contact-note-highlight {
  position: relative;
  margin: 14px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-aboutline {
  max-width: 900px;
  margin: 16px auto 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-job {
  max-width: 900px;
  margin: 16px auto 0;
}

.contact-extras {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--brand);
}

/*===============*/ /* ===== Checkbox (match button look) ===== */
.contact-checkbox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.contact-checkbox input {
  width: 18px;
  height: 18px;

  appearance: none;
  -webkit-appearance: none;

  border: 2px solid color-mix(in srgb, var(--border) 55%, var(--text));
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface2) 75%, transparent);

  display: inline-grid;
  place-content: center;

  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

/* Hover = brand */
.contact-checkbox input:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent);
}

/* Keyboard focus (TAB) */
.contact-checkbox input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
}

/* Checked state */
.contact-checkbox input:checked {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 18%, var(--surface2));
}

/* Check mark */
.contact-checkbox input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
  margin-top: -1px;
}

/* Disabled (optional) */
.contact-checkbox input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.contact-checkbox input:disabled + span {
  opacity: 0.6;
  cursor: not-allowed;
}
/*===============*/
.contact-extras-fields {
  margin-top: 12px;
}

.contact-extras-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 700px) {
  .contact-extras-grid {
    grid-template-columns: 1fr;
  }
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-mapline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ABOUT LINE as a real card (match contact-card / contact-job look) */
.contact-aboutcard {
  max-width: 900px;
  margin: 16px auto 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
}

/* keep your existing row behavior */
.contact-aboutcard .contact-aboutline {
  margin: 0; /* important: remove the old outer spacing */
  max-width: none; /* important: card already controls width */
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 700px) {
  .contact-aboutcard {
    align-items: stretch;
    flex-direction: column;
  }
}

.contact-reviewline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
