/* Contact page form only — scoped classes; do not rely on edits elsewhere */

/* Align both headings on one row (same grid row) and match spacing */
.contact-page-heading {
  margin-bottom: 1rem;
}

.contact-page-heading h1,
.contact-page-heading .contact-form-title {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
  align-items: start;
  gap: 2rem 2.5rem;
  margin-bottom: 2rem;
}

/* Two columns need enough width: below ~992px the form column (up to 36rem) leaves almost no room for Contact Information on tablets (e.g. iPad). */
@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: minmax(12rem, 1fr) minmax(0, 36rem);
    /* Wider gutter between info and form on tablet / small-desktop widths */
    column-gap: clamp(2.5rem, 4vw, 4rem);
    row-gap: 2rem;
  }
}

.contact-info-col {
  min-width: 0;
}

.contact-form-section {
  min-width: 0;
}

/* Stack to one column for phones and tablets (matches common lg breakpoint where nav often collapses). */
@media (max-width: 991px) {
  .contact-layout {
    grid-template-columns: 1fr;
    /* Single column: extra space between info block and form (reads as “breathing room” on iPad portrait) */
    row-gap: 2.75rem;
    column-gap: 0;
  }
}

/* Typography matches page h1 via Bootstrap .h1; spacing from .contact-page-heading */
.contact-form-title {
  margin: 0;
}

.contact-form {
  display: block;
}

.contact-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.contact-form-field {
  flex: 1 1 12rem;
  min-width: 0;
}

.contact-form-field--full {
  flex: 1 1 100%;
  margin-bottom: 1rem;
}

/* One column of a two-field row (matches first-name width beside last name) */
.contact-form-field--half {
  flex: 0 1 calc((100% - 1.25rem) / 2);
  max-width: calc((100% - 1.25rem) / 2);
}

.contact-form-field--country {
  flex: 0 1 auto;
  margin-bottom: 1rem;
  max-width: 100%;
}

.contact-form-field--country select {
  width: 100%;
  max-width: 36ch;
}

.contact-form-field--resort,
.contact-form-field--property {
  flex: 0 1 auto;
  margin-bottom: 1rem;
  max-width: 100%;
}

.contact-form-field--resort select,
.contact-form-field--property select {
  width: auto;
  min-width: 12ch;
  max-width: 22ch;
}

.contact-form-field--digits {
  flex: 0 1 4.5rem;
  max-width: 5.5rem;
}

.contact-form-field--date {
  flex: 0 1 11rem;
  max-width: 13rem;
}

.contact-form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.35rem;
}

.contact-form-section + .contact-form-section {
  margin-top: 0.5rem;
}

.contact-form-readonly {
  font-size: 1rem;
  line-height: 1.4;
  color: #111827;
  padding: 0.35rem 0;
}

.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field input[type="tel"],
.contact-form-field input[type="date"],
.contact-form-field input[type="number"],
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.contact-form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form-field input:focus,
.contact-form-field input[type="date"]:focus,
.contact-form-field input[type="number"]:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: #0390fc;
  box-shadow: 0 0 0 2px rgba(3, 144, 252, 0.2);
}

/* intl-tel-input: fill contact column (half-width rows match email field) */
.contact-form-field .iti {
  display: block;
  width: 100%;
}

.contact-form-field .iti input.iti__tel-input:focus {
  outline: none;
  border-color: #0390fc;
  box-shadow: 0 0 0 2px rgba(3, 144, 252, 0.2);
}

.contact-form-actions {
  margin-top: 0.25rem;
}

.contact-form-submit {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #0390fc;
  border: 1px solid #0284e8;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form-submit:hover {
  background: #0284e8;
}

.contact-form-submit:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(3, 144, 252, 0.35);
}
