:root {
  --text-main: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.82);
  --line-soft: rgba(255, 255, 255, 0.42);
  --surface: rgba(22, 25, 34, 0.78);
  --surface-strong: rgba(16, 19, 27, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --accent: #d7a43c;
  --accent-strong: #c8911f;
  --error: #ff9a9a;
  --success: #d5f5db;
  --success-bg: rgba(42, 95, 58, 0.3);
  --error-bg: rgba(121, 36, 36, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

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

html {
  background: #161922;
}

body {
  margin: 0;
  min-height: auto;
  color: var(--text-main);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(215, 164, 60, 0.18), transparent 28%),
    linear-gradient(180deg, #272a2f 0%, #161922 100%);
}

.page-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.reservation-panel {
  padding: 28px 24px;
}

.form-card {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(39, 42, 47, 0.96) 0%, rgba(22, 25, 34, 0.98) 100%);
  box-shadow: var(--shadow);
}

.feedback {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  font-size: 0.96rem;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}

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

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

.hidden,
.field-hidden {
  display: none !important;
}

.reservation-form {
  display: grid;
  gap: 18px;
  width: 100%;
}

.field-grid {
  display: grid;
  gap: 18px 16px;
}

.field-grid-contacts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

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

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 14px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  appearance: none;
  backdrop-filter: blur(4px);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.field input::-webkit-calendar-picker-indicator,
.field select::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.9;
}

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.88) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 4px),
    calc(100% - 18px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.field select:disabled {
  color: rgba(255, 255, 255, 0.7);
  border-color: var(--line-soft);
  background-color: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(215, 164, 60, 0.14);
}

.field-choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.field-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
}

.field-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.field-choice span {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.field-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(215, 164, 60, 0.12);
}

.field-error {
  min-height: 18px;
  color: var(--error);
  font-size: 0.88rem;
  line-height: 1.35;
}

.reservation-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding-top: 4px;
}

.reservation-submit-copy {
  display: grid;
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.terms-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.terms-row a {
  color: #ffffff;
  text-decoration: none;
}

.terms-row a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(215, 164, 60, 0.88);
  text-underline-offset: 3px;
}

.terms-error {
  margin-top: 8px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.submit-button {
  min-width: 280px;
  min-height: 56px;
  padding: 14px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #ffffff;
  color: #1d1a17;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: #fff9f1;
}

.submit-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .reservation-panel {
    padding: 18px 16px 22px;
  }

  .field-grid-contacts,
  .reservation-submit-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .reservation-panel {
    padding: 12px;
  }

  .form-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .terms-row {
    font-size: 0.94rem;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 52px;
    font-size: 0.96rem;
  }
}
