/* DDA design system — pieces that render on EVERY public page: the "Register Interest" popup (src/components/site/RegisterModal.tsx),
   the form fields it shares with the contact form, and the centred "page not set up yet" screen shown for every unknown URL
   (src/components/site/pages/DynamicContentPage.tsx -> src/app/(site)/not-found.tsx). Loaded site-wide (root layout) after dda-ds.css.
   Every class starts with `ds-`, so nothing here can collide with the original site.css. */

/* ===== Form fields (register popup, contact form) ======================================================================== */
.ds-form { display: grid; gap: 14px; font-family: var(--ds-font); }
.ds-field { margin: 0; min-width: 0; }
.site-shell .ds-field > label,
.site-shell .ds-field.phone-field > label {
  display: block;
  margin: 0 0 7px;
  font: 600 12px/1.2 var(--ds-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
}
.site-shell .ds-field > input:not([type="hidden"]),
.site-shell .ds-field > textarea,
.site-shell .ds-select > select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: var(--ds-surface);
  color: var(--ds-ink);
  font: 500 15px/1.4 var(--ds-font);
  outline: none;
  box-shadow: none;
  color-scheme: light;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
html[data-site-theme="dark"] .site-shell .ds-field > input:not([type="hidden"]),
html[data-site-theme="dark"] .site-shell .ds-field > textarea,
html[data-site-theme="dark"] .site-shell .ds-select > select { color-scheme: dark; }
.site-shell .ds-field > textarea { height: auto; min-height: 124px; padding: 15px 18px; line-height: 1.6; resize: vertical; }
.site-shell .ds-field > input::placeholder,
.site-shell .ds-field > textarea::placeholder { color: var(--ds-ink-3); opacity: .8; }
.site-shell .ds-field > input:not([type="hidden"]):focus,
.site-shell .ds-field > textarea:focus,
.site-shell .ds-select > select:focus {
  border-color: var(--ds-gold);
  background: var(--ds-bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-gold) 20%, transparent);
}
.site-shell .ds-field > input:disabled,
.site-shell .ds-field > textarea:disabled { opacity: .65; cursor: not-allowed; }
.ds-select { position: relative; }
.site-shell .ds-select > select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; }
.ds-select > i { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); font-size: 12px; color: var(--ds-ink-3); pointer-events: none; }

/* Phone field (PhoneInput: country picker + number) */
.site-shell .ds-field .intl-phone-input {
  align-items: stretch;
  min-height: 52px;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: var(--ds-surface);
  overflow: hidden;
  box-shadow: none;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-shell .ds-field .intl-phone-input:focus-within {
  border-color: var(--ds-gold);
  background: var(--ds-bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-gold) 20%, transparent);
}
/* site.css forces radius / height on every .intl-phone-input on phones (!important): same declarations, higher specificity */
.site-shell .ds-field .intl-phone-input { min-height: 52px !important; border-radius: 14px !important; }
.site-shell .ds-modal .ds-field .intl-phone-input { border-radius: 999px !important; }
.site-shell .ds-field .intl-phone-country { border-right: 1px solid var(--ds-line); }
.site-shell .ds-field .intl-phone-country-trigger { min-height: 50px; min-width: 104px; padding: 0 14px; color: var(--ds-ink); font: 600 14px/1 var(--ds-font); }
.site-shell .ds-field .intl-phone-country-trigger:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-ink) 5%, transparent); }
.site-shell .ds-field .intl-phone-input input[type="tel"] {
  height: 50px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ds-ink);
  font: 500 15px/1.4 var(--ds-font);
  box-shadow: none;
}
.site-shell .ds-field .intl-phone-input input[type="tel"]:focus { box-shadow: none; border: 0; }
.site-shell .ds-field .intl-phone-input input[type="tel"]::placeholder { color: var(--ds-ink-3); opacity: .8; }

.ds-btn--block { width: 100%; }
.ds-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Register Interest popup =========================================================================================== */
.ds-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 12, .58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--ds-font);
  animation: ds-fade .35s ease both;
}
.ds-modal-card {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: calc(100dvh - 48px);
  overflow: hidden auto;
  border-radius: 28px;
  background: var(--ds-bg);
  color: var(--ds-ink);
  box-shadow: var(--ds-shadow-float);
  animation: ds-modal-in .65s var(--ds-ease) both;
}
@keyframes ds-modal-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.ds-modal-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
  transition: background-color .25s ease, color .25s ease, transform .35s var(--ds-ease);
}
.ds-modal-close:hover { background: var(--ds-gold); color: var(--ds-on-gold); transform: rotate(90deg); }
.ds-modal-close:focus-visible { outline: 2px solid var(--ds-gold); outline-offset: 3px; }
.ds-modal-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.ds-modal-form { padding: clamp(28px, 4vw, 48px); min-width: 0; }
.ds-modal-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ds-gold) 16%, transparent);
  color: var(--ds-gold-strong);
  font-size: 18px;
}
.ds-modal-form h2 {
  margin: 20px 0 10px;
  padding-right: 40px;
  font: 700 clamp(26px, 3vw, 32px)/1.1 var(--ds-font);
  letter-spacing: -.03em;
  color: var(--ds-ink);
}
.ds-modal-form > p { margin: 0 0 24px; font: 400 14.5px/1.65 var(--ds-font); color: var(--ds-ink-2); }
.ds-modal-form .ds-form { gap: 13px; }
.ds-modal-form .ds-form .ds-btn { margin-top: 8px; min-height: 54px; font-size: 15px; }
/* pill fields in the popup */
.site-shell .ds-modal .ds-field > input:not([type="hidden"]),
.site-shell .ds-modal .ds-select > select { border-radius: 999px; padding: 0 22px; }
.site-shell .ds-modal .ds-field > textarea { border-radius: 24px; min-height: 92px; padding: 15px 22px; }
.site-shell .ds-modal .ds-field .intl-phone-country-trigger { padding: 0 14px 0 20px; }
.ds-modal-photo {
  position: relative;
  margin: 12px 12px 12px 0;
  border-radius: 20px;
  overflow: hidden;
  background: #141416;
}
.ds-modal-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ds-modal-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--ds-gold) 28%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, .04) 35%, rgba(0, 0, 0, .46) 100%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .ds-modal-body { grid-template-columns: 1fr; }
  .ds-modal-photo { display: none; }
  .ds-modal-form h2 { padding-right: 48px; }
}
@media (max-width: 480px) {
  .ds-modal-card { border-radius: 24px; }
  .ds-modal-form { padding: 26px 20px 24px; }
}
/* Short screens (small laptops once the browser bars are taken off, landscape tablets, small phones): the whole form, button
   included, fits without scrolling inside the card. */
@media (max-height: 820px) {
  .ds-modal { padding: 16px; --ds-modal-field: clamp(42px, 6vh, 48px); }
  .ds-modal-card { max-height: calc(100dvh - 32px); }
  .ds-modal-form { padding: clamp(20px, 3.5vh, 34px) clamp(22px, 3vw, 40px); }
  .ds-modal-badge { display: none; }
  .ds-modal-form h2 { margin: 0 0 6px; font-size: clamp(22px, 3.6vh, 28px); }
  .ds-modal-form > p { margin-bottom: clamp(12px, 2vh, 18px); font-size: 13.5px; line-height: 1.55; }
  .ds-modal-form .ds-form { gap: clamp(8px, 1.4vh, 12px); }
  .site-shell .ds-modal .ds-field > label { margin-bottom: 5px; font-size: 11px; }
  .site-shell .ds-modal .ds-field > input:not([type="hidden"]) { height: var(--ds-modal-field); }
  .site-shell .ds-modal .ds-field .intl-phone-input { min-height: var(--ds-modal-field) !important; }
  .site-shell .ds-modal .ds-field .intl-phone-country-trigger { min-height: calc(var(--ds-modal-field) - 2px); }
  .site-shell .ds-modal .ds-field .intl-phone-input input[type="tel"] { height: calc(var(--ds-modal-field) - 2px); }
  .site-shell .ds-modal .ds-field > textarea { min-height: clamp(48px, 8vh, 72px); padding: 11px 20px; }
  .ds-modal-form .ds-form .ds-btn { margin-top: 4px; min-height: clamp(44px, 6.4vh, 50px); }
}

/* ===== "This page is not set up yet" screen (404) ======================================================================== */
.ds-notfound { background: var(--ds-surface); }
/* (site.css forces the padding of every <section> with !important: same `:not(#ds)` pattern as dda-ds.css) */
section.ds-section.ds-notfound:not(#ds) { padding-top: clamp(56px, 8vw, 112px) !important; padding-bottom: clamp(56px, 8vw, 112px) !important; }
.ds-notfound-card {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 56px);
  border: 1px solid var(--ds-line);
  border-radius: 30px;
  background: var(--ds-bg);
  box-shadow: var(--ds-shadow);
  text-align: center;
  animation: ds-rise .9s var(--ds-ease) both;
}
.ds-notfound-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ds-gold) 15%, transparent);
  color: var(--ds-gold-strong);
  font-size: 34px;
}
.ds-notfound-icon::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1.5px dashed color-mix(in srgb, var(--ds-gold) 55%, transparent);
  border-radius: 50%;
  animation: ds-notfound-spin 28s linear infinite;
}
@keyframes ds-notfound-spin { to { transform: rotate(360deg); } }
.ds-notfound-card h2 {
  margin: 0 0 14px;
  font: 700 clamp(26px, 3.4vw, 36px)/1.15 var(--ds-font);
  letter-spacing: -.03em;
  color: var(--ds-ink);
  text-wrap: balance;
}
.ds-notfound-card p { max-width: 46ch; margin: 0 auto 10px; font: 400 16px/1.7 var(--ds-font); color: var(--ds-ink-2); }
.ds-notfound-card .ds-notfound-hint { margin-bottom: 32px; font-size: 13.5px; color: var(--ds-ink-3); }
