:root {
  --bg-main: #f3f7fb;
  --bg-card: #08213b;
  --bg-card-soft: #0f2f4f;
  --text-main: #ecf4ff;
  --text-muted: #b6c7df;
  --accent: #4fc3ff;
  --accent-2: #6df0d9;
  --border: rgba(255, 255, 255, 0.18);
  --danger: #ff7d7d;
  --success: #69efc1;
  --shadow-lg: 0 28px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

.page-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #f8fbff, #f2f7fc);
  z-index: -2;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(79, 195, 255, 0.1), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(109, 240, 217, 0.08), transparent 42%);
}

.app-shell {
  position: relative;
  z-index: 0;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 18px 14px 42px;
  display: grid;
  gap: 16px;
}

.hero-card,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--bg-card), var(--bg-card-soft));
  backdrop-filter: none;
  box-shadow: var(--shadow-lg);
}

.hero-card {
  padding: 18px 18px;
  text-align: left;
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lang-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lang-switch select {
  min-width: 74px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(6, 28, 48, 0.86);
  color: var(--text-main);
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lang-switch select:focus,
.lang-switch select:hover {
  border-color: rgba(109, 240, 217, 0.72);
  box-shadow: 0 0 0 3px rgba(109, 240, 217, 0.17);
}

.hero-logo {
  width: clamp(72px, 20vw, 96px);
  max-height: 124px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.32));
}

.hero-brand {
  display: grid;
  gap: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.17);
  padding-left: 14px;
}

.hero-kicker {
  margin: 0 0 3px;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.required-mark {
  margin-left: 4px;
  color: #ff8e8e;
  font-weight: 700;
}

.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;
}

.hero-title {
  margin: 0;
  font-family: "Space Grotesk", "Sora", system-ui, sans-serif;
  font-size: clamp(1.3rem, 4.3vw, 1.95rem);
  line-height: 1.08;
}

.hero-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.panel {
  padding: 20px 18px;
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.22rem;
  font-family: "Space Grotesk", "Sora", system-ui, sans-serif;
}

.panel-head p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group label {
  font-size: 0.83rem;
  color: #d4e4fb;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(8, 24, 42, 0.95);
  color: var(--text-main);
  padding: 12px 13px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.guest-builder {
  gap: 8px;
}

.guest-builder-label {
  margin-bottom: 2px;
}

.guest-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 8px;
}

.secondary-btn {
  border: 1px solid rgba(109, 240, 217, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(6, 32, 49, 0.95);
  color: var(--text-main);
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  border-color: rgba(109, 240, 217, 0.9);
  transform: translateY(-1px);
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.guests-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.guests-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(5, 28, 47, 0.88);
}

.guests-item-text {
  margin: 0;
  font-size: 0.86rem;
  color: #e1ecff;
}

.guests-remove {
  border: 1px solid rgba(255, 125, 125, 0.6);
  border-radius: 999px;
  background: rgba(67, 10, 10, 0.55);
  color: #ffd4d4;
  padding: 5px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(182, 199, 223, 0.68);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(109, 240, 217, 0.72);
  box-shadow: 0 0 0 3px rgba(109, 240, 217, 0.17);
  transform: translateY(-1px);
}

.cta-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  margin-top: 14px;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #02253c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(13, 120, 157, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(13, 120, 157, 0.45);
}

.cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.feedback {
  margin-top: 14px;
  min-height: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feedback.error {
  color: var(--danger);
}

.feedback.success {
  color: var(--success);
}

.result-card {
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(109, 240, 217, 0.4);
  background: rgba(5, 32, 28, 0.55);
  padding: 12px;
}

.result-card p {
  margin: 4px 0;
  font-size: 0.88rem;
}

.contact-panel {
  padding-top: 18px;
}

.contact-head h2 {
  margin-bottom: 10px;
}

.contact-copy {
  display: grid;
  gap: 7px;
}

.contact-line {
  margin: 0;
  font-size: 0.9rem;
  color: #dceafc;
}

.contact-line.strong {
  color: var(--text-main);
  font-weight: 700;
}

.contact-line a {
  color: #9be7ff;
  text-decoration: none;
}

.contact-line a:hover,
.contact-line a:focus-visible {
  text-decoration: underline;
}

.cta-link {
  margin-top: 10px;
  display: inline-flex;
  text-decoration: none;
  color: #051f35;
  background: linear-gradient(135deg, #89d8ff, #82f3e0);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (min-width: 760px) {
  .app-shell {
    padding: 28px 20px 52px;
    gap: 18px;
  }

  .hero-card {
    padding: 20px 24px;
  }

  .hero-head {
    gap: 16px;
  }

  .hero-logo {
    width: clamp(88px, 10vw, 118px);
  }

  .hero-brand {
    padding-left: 16px;
  }

  .hero-kicker {
    margin-bottom: 5px;
    font-size: 0.73rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  }

  .panel {
    padding: 28px;
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .field-span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .hero-top {
    gap: 8px;
  }

  .hero-head {
    align-items: flex-start;
  }

  .hero-logo {
    width: 68px;
    max-height: 96px;
  }

  .hero-brand {
    padding-left: 12px;
  }

  .hero-title {
    font-size: 1.24rem;
  }

  .hero-subtitle {
    font-size: 0.84rem;
  }

  .guest-builder-row {
    grid-template-columns: 1fr;
  }

  .secondary-btn {
    min-height: 44px;
  }
}
