/* Contact page enquiry card (Pages/contact.php): labelled fields with an
   orange leading icon, the phone prefix and number in one control, and the
   theme button. Scoped under .cf-card. */

.cf-card {
  padding: 36px 40px 40px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(42, 68, 86, 0.08);
}
.cf-card .cf-title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark, #2a4456);
}
.cf-sub {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--body-text-color, #757f95);
}
.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-bottom: 24px;
}
.cf-full {
  grid-column: 1 / -1;
}
.cf-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark, #2a4456);
}
.cf-control {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-control:focus-within {
  border-color: var(--theme-color, #f98225);
  box-shadow: 0 0 0 3px rgba(249, 130, 37, 0.14);
}
.cf-control > i {
  flex: 0 0 auto;
  width: 46px;
  text-align: center;
  color: var(--theme-color, #f98225);
  font-size: 16px;
}
.cf-card .cf-control input,
.cf-card .cf-control select,
.cf-card .cf-control textarea {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-dark, #2a4456);
  font-size: 15px;
  box-shadow: none;
  outline: none;
}
.cf-card .cf-control input::placeholder,
.cf-card .cf-control textarea::placeholder {
  color: #9aa1ad;
}
.cf-card .cf-control input[readonly] {
  cursor: pointer;
}
.cf-card .cf-select select,
.cf-card .cf-phone select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232a4456' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.cf-card .cf-phone select {
  flex: 0 0 96px;
  padding-right: 30px;
  border-right: 1px solid #e3e6eb;
  border-radius: 0;
}
.cf-card .cf-phone input {
  padding-left: 14px;
}
.cf-textarea {
  align-items: flex-start;
  height: auto;
}
.cf-textarea > i {
  padding-top: 15px;
}
.cf-card .cf-textarea textarea {
  min-height: 96px;
  padding: 12px 14px 12px 0;
  resize: vertical;
  line-height: 1.5;
}

.cf-field.has-error .cf-control {
  border-color: #d93025;
}
.cf-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #d93025;
}
.cf-card #recaptcha {
  height: 0;
}
.cf-card #Enquire-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

@media (max-width: 767px) {
  .cf-card {
    padding: 26px 18px 28px;
    border-radius: 22px;
  }
  .cf-card .cf-title {
    font-size: 26px;
  }
  .cf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin-bottom: 20px;
  }
  /* one field per row, except the two dates side by side */
  .cf-grid > .cf-field:not(.cf-half) {
    grid-column: 1 / -1;
  }
  .cf-field > label {
    margin-bottom: 6px;
    font-size: 13px;
  }
  .cf-control:not(.cf-textarea) {
    height: 46px;
  }
  .cf-control > i {
    width: 38px;
  }
  .cf-card .cf-half .cf-control input {
    font-size: 14px;
  }
  .cf-card #Enquire-btn {
    width: 100%;
    justify-content: center;
  }
}

/* contact details: fixed-size icon circles so every row's text lines up,
   even when the address wraps */
.contact-info .icon {
  flex: 0 0 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .contact-info {
    gap: 16px;
    margin-top: 16px;
  }
  .contact-info .icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
  .contact-info .icon img {
    width: 28px;
  }
  .contact-info .content h4 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .contact-info .content p,
  .contact-info .content p a {
    font-size: 15px;
    margin: 0;
  }
}

/* the #Form scroll anchor is inline-block in the theme, which opened an
   empty line box above the fields */
.cf-card > a#Form {
  display: block;
  height: 0;
}
/* mockup sentence case and an upright paper plane (the theme capitalises
   button text and tilts its icon) */
.cf-card #Enquire-btn {
  text-transform: none;
}
.cf-card #Enquire-btn i {
  transform: none;
}
