﻿/* Application and confirmation pages share the same quiet, editorial palette. */
.apply-hero {
  position: relative;
  isolation: isolate;
  padding: 65px 0;
  background: var(--surface);
  overflow: hidden;
}
.apply-hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 45%;
  background: url("../assets/images/neighbourhoods/blouberg.webp") center/cover;
}
.apply-hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--surface) 35%,
    #eeebe5d9 55%,
    #eeebe526
  );
}
.apply-hero-content {
  max-width: 720px;
}
.apply-hero-title {
  font: 500 clamp(48px, 5.5vw, 76px)/1.05 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 680px;
}
.apply-hero-subtitle {
  max-width: 490px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.apply-form-section {
  padding: 75px 0 95px;
}
.apply-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 65px;
  align-items: start;
}
.apply-form-container {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 40px;
}
.form-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
  margin-bottom: 30px;
}
.form-header h2 {
  font: 500 39px/1.1 var(--serif);
  margin: 0 0 15px;
}
.form-header p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.form-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin: 28px 0 22px;
  color: var(--bronze);
}
.form-row {
  margin-bottom: 22px;
}
.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 0;
}
.form-row label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 9px;
}
.form-row input,
.form-row select,
.form-row textarea {
  display: block;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #cbc6bb;
  border-radius: 2px;
  min-height: 49px;
  padding: 12px 14px;
  font-size: 14px;
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 1px solid var(--bronze);
  outline-offset: 1px;
}
.form-actions {
  margin-top: 30px;
}
.btn-submit {
  width: 100%;
  min-height: 50px;
}
.btn-submit:disabled {
  opacity: 0.65;
}
.form-note {
  color: var(--muted);
  font-size: 10px;
  margin-top: 16px;
  line-height: 1.8;
}
.sidebar-card {
  margin-bottom: 25px;
}
.image-card img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}
.info-card,
.contact-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sidebar-card h3 {
  font: 500 29px/1.1 var(--serif);
  margin: 0 0 22px;
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefits-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.benefits-list li:last-child {
  margin-bottom: 0;
}
.benefits-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--bronze);
  fill: currentColor;
}
.benefits-list strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-card p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-link:hover {
  color: var(--bronze);
}
.form-message {
  padding: 18px;
  font-size: 12px;
  margin-bottom: 22px;
  background: #e9eee4;
  border: 1px solid #bfcab6;
}
.form-message.error {
  background: #f2e6dd;
  border-color: #c4a58b;
  color: #764b32;
}
.selected-property {
  padding: 16px 18px;
  margin-bottom: 25px;
  background: var(--surface);
  border-left: 2px solid var(--bronze);
  font-size: 12px;
}
.spinner {
  height: 20px;
  width: 20px;
  animation: spin 1s linear infinite;
}
.spinner .path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 90 150;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.thank-you-hero {
  min-height: 650px;
  padding: 70px 20px;
  background:
    linear-gradient(#eeebe5e8, #eeebe5e8),
    url("../assets/images/neighbourhoods/blouberg.webp") center/cover;
}
.thank-you-card {
  max-width: 740px;
  margin: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}
.thank-you-header {
  text-align: center;
  padding: 45px 40px 35px;
  border-bottom: 1px solid var(--line);
}
.thank-you-icon {
  margin: 0 auto 22px;
  width: 54px;
  height: 54px;
  border: 1px solid #b7bfad;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--olive);
}
.thank-you-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.thank-you-header h1 {
  font: 500 66px/1 var(--serif);
  margin: 0 0 18px;
}
.thank-you-header p {
  color: var(--muted);
  font-size: 13px;
}
.thank-you-content {
  padding: 35px 40px 40px;
}
.thank-you-content h2 {
  font: 500 34px/1.1 var(--serif);
  margin: 0 0 18px;
}
.thank-you-content p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.9;
}
.summary-box {
  background: var(--surface);
  padding: 22px;
  margin: 25px 0;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.summary-box p:last-child {
  margin-bottom: 0;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 28px;
}
.thank-you-content p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1000px) {
  .apply-grid {
    gap: 35px;
  }
  .apply-form-container {
    padding: 30px;
  }
  .apply-hero-title {
    max-width: 570px;
  }
}
@media (max-width: 800px) {
  .apply-hero {
    padding: 45px 0;
  }
  .apply-hero-title {
    font-size: 51px;
  }
  .apply-hero-bg {
    inset: 0;
  }
  .apply-hero-overlay {
    background: #eeebe5df;
  }
  .apply-form-section {
    padding: 45px 0 65px;
  }
  .apply-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .apply-form-container {
    padding: 25px;
  }
  .form-row-group {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row input,
  .form-row select,
  .form-row textarea {
    font-size: 16px;
  }
  .form-header h2 {
    font-size: 34px;
  }
  .thank-you-hero {
    padding: 40px 20px;
  }
  .thank-you-header {
    padding: 35px 25px;
  }
  .thank-you-header h1 {
    font-size: 56px;
  }
  .thank-you-content {
    padding: 28px 25px;
  }
  .thank-you-content h2 {
    font-size: 31px;
  }
  .action-row {
    flex-direction: column;
  }
  .summary-box {
    padding: 18px;
  }
}
