/* Newpark Dentistry — contact.css
   Loaded by functions.php. See style.css for the full section index. */

/* =============================================================
   30. CONTACT
   ============================================================= */

.contact-urgent-row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: var(--np-forest-deep) !important;
}

.contact-urgent-row > .kt-row-column-wrap {
  width: var(--np-content-width) !important;
  margin-inline: auto !important;
}

.contact-urgent-row > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col {
  padding: 18px 0 19px !important;
  text-align: center !important;
}

.contact-urgent-row h5 {
  margin: 0 0 4px !important;
  color: var(--np-white) !important;
  font-size: 1rem !important;
}

.contact-urgent-row p,
.contact-urgent-row a {
  margin: 0 !important;
  color: var(--np-on-dark) !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
}

.contact-main-row {
  padding-top: clamp(58px, 5vw, 72px) !important;
  padding-bottom: clamp(64px, 5.5vw, 82px) !important;
  background: var(--np-page) !important;
}
.contact-main-row > .kt-row-column-wrap {
  align-items: stretch !important;
  width: var(--np-content-width) !important;
  margin-inline: auto !important;
  gap: clamp(56px, 6vw, 88px) !important;
}

@media (max-width: 767px) {
  .contact-form-column {
    order: -1 !important;
  }
}

/* Narrows the office info + map side specifically, rather than
   splitting the extra gap evenly between both columns. */
.contact-location-column {
  flex: 0 1 42% !important;
}

.contact-form-column {
  flex: 1 1 0 !important;
}
.contact-location-column > .kt-inside-inner-col {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.contact-details-card {
  flex: 0 0 auto !important;
  margin: 0 0 clamp(16px, 1.8vw, 24px) !important;
  padding: 0 !important;
}

.contact-details-card > h2,
.contact-details-card .wp-block-kadence-advancedheading:first-child {
  margin-bottom: 28px !important;
}

.contact-office-grid > .kt-row-column-wrap {
  align-items: start !important;
  gap: clamp(24px, 2.2vw, 34px) !important;
}

.contact-detail-item {
	 font-size: var(--np-body-size) !important;
}

/* The "Office Hours" column: matched to the same font size as the
   office info text on the left. */
.contact-office-grid > .kt-row-column-wrap > .wp-block-kadence-column:last-child {
  font-size: var(--np-body-size) !important;
}

.contact-office-grid > .kt-row-column-wrap > .wp-block-kadence-column:last-child p {
  font-size: inherit !important;
  line-height: 1.4 !important;
}
.contact-office-grid > .kt-row-column-wrap > .wp-block-kadence-column:last-child h3 {
  margin-bottom: 8px !important;
}

.contact-detail-item a,
.contact-office-grid a {
  color: var(--np-heading) !important;
  text-decoration: none !important;
}

.contact-detail-item a:hover {
  text-decoration: underline !important;
}

/* -------------------------------------------------------------
   MAP -- Kadence sets this block's own height via its "Height
   (Desktop)" setting in the block's own sidebar (currently 400).
   Raising that number there is the reliable fix; this is a
   supporting floor so the map never renders too short even if
   that setting is left low.
   ------------------------------------------------------------- */

.contact-map {
  width: 100% !important;
  min-height: clamp(380px, 36vw, 480px) !important;
  overflow: hidden !important;
  border: 1px solid var(--np-line) !important;
}

.contact-map iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(380px, 36vw, 480px) !important;
}

.contact-form-column {
  position: relative !important;
  background: var(--np-white) !important;
  border: 1px solid var(--np-line) !important;
  border-top: 0 !important;
  border-radius: 4px !important;
  box-shadow: var(--np-shadow-form) !important;
}

/* A soft top edge -- rounded to match the card's own corners, and
   a light blur underneath so it eases into the white card instead
   of cutting off abruptly. Red on the left this time, easing into
   green -- the flipped direction from before. */
.contact-form-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(
    to left,
    #b3746a 0%,
    var(--np-forest-mid) 23%,
    var(--np-forest) 55%,
    var(--np-forest-deep) 100%
  );
  filter: blur(0.3px);
  box-shadow: 0 2px 4px rgba(15, 38, 32, 0.18);
}

.contact-form-column > .kt-inside-inner-col {
  padding: clamp(32px, 3vw, 42px) !important;
}

.contact-form-column h2 {
  margin: 0 0 10px !important;
  color: var(--np-heading) !important;
  font-size: var(--np-h2) !important;
}

.contact-form-column > .kt-inside-inner-col > p {
  margin-bottom: 24px !important;
}

.contact-form-fields,
.contact-form-fields > .kt-row-column-wrap,
.contact-form-fields > .kt-row-column-wrap > .wp-block-kadence-column,
.contact-form-fields > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col {
  width: 100% !important;
  max-width: none !important;
}

.contact-form-column label,
.contact-form-column legend {
  color: var(--np-heading) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.contact-form-column
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form-column select,
.contact-form-column textarea {
  width: 100% !important;
  max-width: none !important;
  background: var(--np-white) !important;
  background-image: none !important;
  color: var(--np-body) !important;
  border: 1px solid var(--np-line-strong) !important;
  border-radius: 2px !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

.contact-form-column
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form-column select {
  /* 44px meets the comfortable mobile tap-target guidance (WCAG
     2.2 SC 2.5.5 / Apple HIG); this is also the field most people
     will fill out on a phone (the appointment request form). */
  min-height: 44px !important;
  height: 44px !important;
  padding: 9px 12px !important;
}

.contact-form-column textarea {
  min-height: 68px !important;
  padding: 8px 12px !important;
  resize: vertical !important;
}

.contact-form-column input:focus,
.contact-form-column select:focus,
.contact-form-column textarea:focus {
  border-color: var(--np-forest) !important;
  outline: 0 !important;
  box-shadow: var(--np-focus) !important;
}

.contact-name-row > .kt-row-column-wrap {
  gap: 16px !important;
}

.preferred-day-field .kb-radio-check-item-wrap {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
}

.time-preference-field .kb-radio-check-item-wrap {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
}

.contact-form-column .kb-radio-check-item {
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  gap: 7px !important;
  margin: 0 !important;
}

.contact-form-column .kb-radio-check-item label {
  display: inline !important;
  margin: 0 !important;
  color: var(--np-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.contact-form-column input[type="checkbox"],
.contact-form-column input[type="radio"] {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: var(--np-forest) !important;
}

.contact-form-column button[type="submit"],
.contact-form-column .kb-adv-form-submit-button {
  min-width: 150px !important;
  min-height: 48px !important;
}