/* =========================================================================
   ANAX Developments — Register Your Interest (lead page)
   Look & feel matched to anaxdevelopments.com "Get In Touch" section:
   cream ground, hairline underlined inputs, thin oversized heading.
   ========================================================================= */

:root {
  --cream: #e8d9b8;
  /* matches the golden body background image */
  --ink: #311909;
  /* brand brown from the ANAX Developments logo */
  --line: #97815c;
  /* hairline under inputs, toned to the gold bg */
  --gold: #8a5a1e;
  /* link / accent bronze */
  --err: #b3392f;
  --ok: #2e6e46;
  --font: 'Inter Tight', 'Metric', Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--cream);
  /* Body background image with a light veil to keep the form legible */
  background-image:
    linear-gradient(rgba(240, 228, 200, 0.28), rgba(240, 228, 200, 0.28)),
    url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ header ============ */
.site-header {
  display: flex;
  align-items: center;
  padding: 0;
}

.logo {
  height: 102px;
  width: auto;
  display: block;
  margin: 0px auto;
}

/* ============ layout ============ */
.page {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) clamp(20px, 5vw, 64px) 96px;
}

.title {
  font-weight: 200;
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: 0.5px;
  text-align: center;
  margin: clamp(24px, 5vh, 64px) 0 clamp(32px, 6vh, 72px);
}

.rule {
  border-top: 1px solid var(--line);
  margin-bottom: 8px;
}

/* ============ grid ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(24px, 4vw, 52px);
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

/* ============ fields ============ */
.field {
  padding-top: 34px;
  position: relative;
}

.field label {
  display: block;
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 14px;
}

.field label span {
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  padding: 6px 2px 12px;
  border-radius: 0;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.select-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23311909' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.select-field select:invalid,
.select-field select option[value=""] {
  color: var(--ink);
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-bottom-color: var(--err);
}

/* ============ checkboxes ============ */
.checks {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  margin-top: 56px;
  font-size: 16px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
  cursor: pointer;
  flex: none;
}

.check a {
  color: var(--gold);
}

.check.invalid span {
  color: var(--err);
}

.check.invalid a {
  color: var(--err);
}

/* ============ status ============ */
.form-status {
  text-align: center;
  min-height: 24px;
  margin-top: 22px;
  font-size: 16px;
}

.form-status.error {
  color: var(--err);
}

.form-status.ok {
  color: var(--ok);
}

/* ============ button ============ */
.actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.btn-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-width: 420px;
  padding: 16px 26px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s;
}

.btn-confirm:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-confirm[disabled] {
  opacity: .55;
  cursor: default;
}

.btn-arrow {
  font-size: 24px;
  line-height: 1;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ success view ============ */
.success .success-text {
  text-align: center;
  font-size: 22px;
  line-height: 1.7;
  margin-top: 48px;
}

/* ============ responsive ============ */
@media (max-width: 860px) {

  .col-4,
  .col-6 {
    grid-column: span 12;
  }

  .btn-confirm {
    min-width: 100%;
  }

  .checks {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}