@font-face {
  font-family: 'PorscheNext';
  src: url('assets/PorscheNext-Thin.otf') format('opentype');
  font-weight: 100;
}
@font-face {
  font-family: 'PorscheNext';
  src: url('assets/PorscheNext-Regular.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'PorscheNext';
  src: url('assets/PorscheNext-SemiBold.otf') format('opentype');
  font-weight: 600;
}
@font-face {
  font-family: 'PorscheNext';
  src: url('assets/PorscheNext-Bold.otf') format('opentype');
  font-weight: 700;
}

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

:root {
  --orange: #E85D20;
  --bg: #111111;
  --card-bg: #111111;
  --card-border: #2c2c2c;
  --text: #ffffff;
  --muted: #888888;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'PorscheNext', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.orange { color: var(--orange); }

/* ═══════════════════════════════════════
   INDEX PAGE
═══════════════════════════════════════ */

.page-index {
  max-width: 480px;
  margin: 0 auto;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 62vw;
  max-height: 340px;
  overflow: hidden;
  background: #000;
}

.hero-car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  display: block;
  transform: scale(2.2);
  transform-origin: center center;
}

.hero-logo {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  z-index: 2;
  pointer-events: none;
}

/* ── CONTENT ── */
.content {
  padding: 30px 18px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invite-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  color: var(--text);
  padding: 10px 8px;
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

/* ── LOCATION CARD ── */
.location-card {
  display: flex;
  align-items: stretch;
  min-height: 120px;
}

.location-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 12px 18px 16px;
}

/* Pin icon: circle with dot and tail lines */
.pin-svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.location-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.location-address {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.3;
}

.location-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}

.location-right {
  width: 44%;
  max-width: 170px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.location-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #111111, transparent);
  z-index: 1;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* NO background on map label — text directly on map */
.map-label {
  position: absolute;
  top: 10px;
  right: 8px;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  /* no background */
}

.map-label svg { flex-shrink: 0; margin-top: 1px; }

.map-label span {
  font-size: 9px;
  line-height: 1.4;
  color: var(--orange);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-weight: 600;
}

.map-street {
  position: absolute;
  bottom: 7px;
  right: 6px;
  font-size: 8px;
  color: #ddd;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  text-align: right;
  line-height: 1.3;
}

/* ── DATETIME CARD ── */
.datetime-card {
  display: flex;
  align-items: center;
  padding: 20px 20px 20px 16px;
  gap: 0;
}

.time-block {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.clock-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.time-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dt-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.time-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* CALENDAR */
.cal-wrap {
  flex-shrink: 0;
  position: relative;
  width: 60px;
  height: 72px;
}

.cal-wrap svg {
  width: 60px;
  height: 72px;
}

.cal-inner {
  position: absolute;
  top: 40%;
  bottom: 5%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cal-day {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.cal-month {
  font-size: 10px;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

/* WELCOME + BUTTON */
.welcome-text {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  padding: 8px 0 4px;
}

.btn-orange {
  display: block;
  width: 100%;
  padding: 22px;
  background: var(--orange);
  color: #000;
  font-family: 'PorscheNext', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  -webkit-appearance: none;
  transition: opacity 0.15s;
}
.btn-orange:active { opacity: 0.85; }


/* ═══════════════════════════════════════
   REGISTER PAGE
═══════════════════════════════════════ */

.page-register {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--muted);
  text-decoration: none;
  z-index: 10;
  padding: 4px;
  font-size: 22px;
  line-height: 1;
}

.reg-content {
  padding-top: 52px;
  gap: 20px;
}

.reg-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reg-title-top {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.reg-title-model {
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
}

.reg-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
}

.alert {
  background: rgba(232,93,32,0.12);
  border: 1px solid rgba(232,93,32,0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--orange);
}

/* FORM */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}

.req { color: var(--orange); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  flex-shrink: 0;
}

.input-wrap input {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px 14px 15px 44px;
  font-size: 15px;
  font-family: 'PorscheNext', sans-serif;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.input-wrap input::placeholder { color: #555; }
.input-wrap input:focus { border-color: rgba(232,93,32,0.5); }

input[type="date"] {
  color-scheme: dark;
  padding: 15px 14px 15px 44px;
  min-height: 54px;
}
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.4); }

/* PHONE ROW */
.phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* COUNTRY DROPDOWN */
.country-dropdown {
  position: relative;
  flex-shrink: 0;
}

.country-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  height: 100%;
  transition: border-color 0.2s;
}

.country-selected:hover { border-color: rgba(232,93,32,0.4); }

.c-flag { font-size: 18px; line-height: 1; }

.c-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: 'PorscheNext', sans-serif;
}

.country-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #1e1e1e;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  list-style: none;
  overflow: hidden;
  z-index: 100;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.country-list.open { display: block; }

.country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-family: 'PorscheNext', sans-serif;
  transition: background 0.15s;
}

.country-option:hover { background: rgba(255,255,255,0.06); }
.country-option.active { color: var(--orange); }

.country-option .dial {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

/* PHONE INPUT */
.phone-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.phone-icon-inline {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.phone-input-wrap input {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px 14px 15px 40px;
  font-size: 15px;
  font-family: 'PorscheNext', sans-serif;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.phone-input-wrap input::placeholder { color: #555; }
.phone-input-wrap input:focus { border-color: rgba(232,93,32,0.5); }

/* WHATSAPP NOTE */
.whatsapp-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 2px;
}

.whatsapp-note svg { flex-shrink: 0; margin-top: 1px; }

.whatsapp-note span {
  font-size: 14px;
  color: var(--orange);
  line-height: 1.5;
}


/* ═══════════════════════════════════════
   SUCCESS PAGE
═══════════════════════════════════════ */

.page-success {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.success-hero {
  position: relative;
  flex: 0 0 55vh;
  overflow: hidden;
}

.success-car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.success-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.success-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px;
}

.success-msg {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  line-height: 1.6;
}
