/* ----------------- Forms (mobile-first) ----------------- */

/* Section + titles */
.form-section {
  padding: 2rem 0;
  background: #f9f9f9;
  border-top: 3px solid var(--light-blue);
}
.form-title h1 {
  font-size: 1.8rem;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 0.5rem;
}
.form-title p {
  text-align: center;
  color: var(--grey);
  margin-bottom: 1.5rem;
}

/* Shared layout */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-message {
  margin: 0;
} /* fixed selector */
.website-form,
.contact-form #contact-form {
  width: 100%;
  max-width: none;
  margin: clamp(26px, 4vw, 42px) 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--light-blue) 28%, #fff);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 100%;
}
.field-label {
  display: block;
  margin: 0;
  color: var(--dark-blue);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
}
.website-form label.visually-hidden,
.contact-form #contact-form label.visually-hidden {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--dark-blue);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  border: 0;
}
.form-control {
  width: 100%;
  min-height: 46px;
  font:
    16px/1.4 "Roboto",
    sans-serif;
  color: var(--dark-blue);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--light-blue) 40%, #fff);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  box-sizing: border-box;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.form-control::placeholder {
  color: #aaa;
}
select.form-control:required:invalid,
select.form-control:has(option[value=""]:checked) {
  color: #aaa;
}
select.form-control option {
  color: var(--dark-blue);
}
.form-control:focus {
  outline: 3px solid color-mix(in srgb, var(--light-blue) 30%, transparent);
  border-color: var(--dark-blue);
  box-shadow: none;
}
.has-error .form-control {
  border-color: #c92a2a;
  box-shadow: 0 0 0 2px rgba(201, 42, 42, 0.08);
}
.has-error .form-control::placeholder {
  color: #c92a2a;
  opacity: 1;
}
textarea.form-control {
  min-height: 128px;
  resize: vertical;
}
.btn-submit {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.btn-submit:hover,
.btn-submit:focus {
  border-color: var(--dark-blue);
  background: var(--dark-blue);
}
.btn-submit:disabled {
  cursor: wait;
  opacity: 0.82;
}
.error {
  border-color: #e03131;
}
.error-msg {
  color: #c92a2a;
  font-size: 0.78rem;
  line-height: 1.2;
  margin: 0.24rem 0 0;
}
.form-success {
  color: var(--grey);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0.5rem auto 0;
  text-align: center;
}
.form-error {
  color: #c92a2a;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

/* Contact hero */
.contact-hero {
  overflow: hidden;
  background-color: #fff;
}

/* Page-level wrappers (used by Contact + others as needed) */
.contact-content {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding-top: 0;
  text-align: left;
}
.contact-form {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.contact-secondary {
  min-width: 0;
}
.contact-about-card {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-radius: 0.65rem;
  background: #fff;
}
.contact-about-title {
  position: relative;
  width: fit-content;
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  color: var(--dark-blue, #3f525b);
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.contact-about-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--orange, #ff7f00);
  content: "";
}
.main-content .contact-trust-list {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}
.contact-trust-list li {
  position: relative;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--grey, #2b2b2b);
  font-size: 0.8rem;
  line-height: 1.4;
}
.contact-trust-list li::before {
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--light-blue, #52a9c9);
  content: "";
}
.main-content .contact-trust-list li:not(:last-child) {
  margin-bottom: 0;
}
.contact-about-person {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}
.contact-about-photo {
  display: block;
  width: 6.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(26, 44, 53, 0.18);
}
.contact-about-details {
  min-width: 0;
  font-style: normal;
}
.contact-about-details p {
  margin: 0;
}
.contact-about-name {
  color: var(--light-blue, #52a9c9);
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
}
.main-content .contact-about-role,
.main-content .contact-about-brokerage {
  color: var(--grey, #2b2b2b);
  font-size: 0.58rem;
  line-height: 1.3;
}
.contact-about-brokerage {
  margin-bottom: 0.35rem !important;
}
.contact-about-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--dark-blue, #3f525b);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.contact-about-link:hover,
.contact-about-link:focus-visible {
  color: var(--light-blue, #52a9c9);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.main-content .contact-about-tagline {
  margin: 1rem 0 0;
  color: var(--dark-blue, #3f525b);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
/* Contact form container */
#contact-form {
  display: block;
  width: 100%;
}
.contact-form #contact-form {
  margin-top: calc(clamp(26px, 4vw, 42px) - 1rem);
}
#contact-form .g-recaptcha {
  margin-bottom: 10px;
  text-align: left;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 3px;
}
.checkbox-group label {
  font-size: 1rem;
  color: var(--grey);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.listing-type-row {
  margin-top: -0.15rem;
}
.listing-type-group {
  flex: 0 1 auto;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.listing-type-options {
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0;
}
.listing-type-options label {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--light-blue) 32%, #fff);
  border-radius: 8px;
  background: #fff;
  color: var(--dark-blue);
  font-weight: 500;
  line-height: 1.1;
}
.listing-type-options input {
  margin: 0;
  accent-color: var(--orange);
}
.listing-type-options label.is-selected,
.listing-type-options label:has(input:checked) {
  border-color: color-mix(in srgb, var(--orange) 72%, #fff);
  background: color-mix(in srgb, var(--orange) 10%, #fff);
  color: var(--dark-blue);
}

/* Responsive enhancements */
@media (min-width: 48rem) {
  /* --bp-md */
  .contact-content {
    grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
    align-items: start;
    gap: 1.35rem;
  }
  .contact-secondary {
    margin-top: calc(clamp(26px, 4vw, 42px) - 1rem);
  }
}

@media (min-width: 64.01rem) {
  .form-row {
    flex-direction: row;
  }
}
