:root {
  --maydos-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --maydos-sans: "Source Sans 3", "Poppins", sans-serif;
}

.maydos-reserve-section {
  background:
    radial-gradient(900px 360px at 90% 0%, color-mix(in srgb, var(--maydos-wine) 10%, transparent), transparent 55%),
    linear-gradient(180deg, var(--maydos-surface, #fff) 0%, var(--maydos-paper) 100%);
  padding: 56px 0 72px;
}

.maydos-reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px 48px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.maydos-reserve-kicker {
  margin: 0 0 8px;
  font-family: var(--maydos-display);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--maydos-wine);
}

.maydos-reserve-intro .head {
  margin: 0 0 12px;
  font-family: var(--maydos-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--maydos-ink);
  letter-spacing: 0.02em;
}

.maydos-reserve-lead {
  margin: 0 0 24px;
  max-width: 28rem;
  font-family: var(--maydos-sans);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--maydos-muted);
}

.maydos-reserve-figure {
  margin: 0;
  overflow: hidden;
}

.maydos-reserve-figure img {
  width: 100%;
  height: min(420px, 52vh);
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}

.maydos-reserve-panel {
  background: color-mix(in srgb, var(--maydos-surface, #fff) 88%, transparent);
  border-top: 3px solid var(--maydos-wine);
  padding: 28px 28px 24px;
  color: var(--maydos-ink);
}

.maydos-reserve-form.maydos_form,
.maydos-reserve-form.nano_form {
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: inherit;
}

.maydos-reserve-form.maydos_form:hover {
  box-shadow: none;
  transform: none;
}

html[data-theme="night"] .maydos-reserve-panel {
  background: #1e1916 !important;
  color: #f2ebe3 !important;
  border-top-color: #c45a5a !important;
}

html[data-theme="night"] .maydos-reserve-form.maydos_form,
html[data-theme="night"] .maydos-reserve-panel .maydos_form {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #f2ebe3 !important;
}

html[data-theme="night"] .maydos-reserve-form .form-field input,
html[data-theme="night"] .maydos-reserve-form .form-field textarea,
html[data-theme="night"] .maydos-reserve-form .form-field select {
  background: #14110f !important;
  background-color: #14110f !important;
  background-image: none !important;
  color: #f7f2ea !important;
  border-color: rgba(242, 235, 227, 0.28) !important;
  -webkit-text-fill-color: #f7f2ea;
  color-scheme: dark;
}

html[data-theme="night"] .maydos-reserve-form .form-field select {
  background-image: linear-gradient(45deg, transparent 50%, #f0a8a0 50%),
    linear-gradient(135deg, #f0a8a0 50%, transparent 50%) !important;
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  background-color: #14110f !important;
}

html[data-theme="night"] .maydos-reserve-form .form-field label,
html[data-theme="night"] .maydos-reserve-hint {
  color: #cbbfb3 !important;
}

.maydos-reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.maydos-reserve-form .form-field {
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 16px;
}

.maydos-reserve-form .maydos-span-2 {
  grid-column: 1 / -1;
}

.maydos-reserve-form .form-field label {
  float: none;
  height: auto;
  margin: 0 0 8px;
  font-family: var(--maydos-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maydos-muted);
}

.maydos-reserve-form .field-required label::after {
  content: " *";
  position: static;
  color: var(--maydos-wine);
  font-weight: 600;
}

.maydos-reserve-form .form-field input,
.maydos-reserve-form .form-field textarea,
.maydos-reserve-form .form-field select {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--maydos-line, rgba(26, 18, 16, 0.22));
  border-radius: 0;
  background: transparent;
  padding: 10px 2px 12px;
  font-family: var(--maydos-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--maydos-ink);
  outline: none;
  box-shadow: none;
  height: auto;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.maydos-reserve-form .form-field input::placeholder,
.maydos-reserve-form .form-field textarea::placeholder {
  color: var(--maydos-muted);
  opacity: 0.75;
}

.maydos-reserve-form .form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.maydos-reserve-form .form-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--maydos-wine) 50%),
    linear-gradient(135deg, var(--maydos-wine) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.maydos-reserve-form .form-field input:focus,
.maydos-reserve-form .form-field textarea:focus,
.maydos-reserve-form .form-field select:focus {
  border-bottom-color: var(--maydos-wine);
  background: rgba(92, 0, 0, 0.03);
}

.maydos-reserve-form .form-field input:disabled,
.maydos-reserve-form .form-field textarea:disabled,
.maydos-reserve-form .form-field select:disabled {
  background-color: transparent !important;
  opacity: 0.55;
  cursor: not-allowed;
}

.maydos-reserve-hint {
  margin: 8px 0 0;
  font-family: var(--maydos-sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--maydos-muted);
  min-height: 1.2em;
}

.maydos-reserve-form .form-submit {
  margin: 8px 0 0;
}

.maydos-reserve-form .form-submit button {
  width: 100%;
  margin: 0;
  appearance: none;
  border: 0;
  background: var(--maydos-ink);
  color: #f7f2ea;
  font-family: var(--maydos-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.maydos-reserve-form .form-submit button:hover,
.maydos-reserve-form .form-submit button:focus-visible {
  background: var(--maydos-wine);
  outline: none;
  transform: translateY(-1px);
}

.maydos-reserve-message {
  margin-top: 16px;
  padding: 12px 14px;
  font-family: var(--maydos-sans);
  font-size: 0.95rem;
  line-height: 1.45;
}

.maydos-reserve-message.success {
  background: rgba(47, 107, 79, 0.12);
  color: #2f6b4f;
}

.maydos-reserve-message.error {
  background: rgba(139, 30, 30, 0.1);
  color: #8b1e1e;
}

@media (max-width: 900px) {
  .maydos-reserve-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .maydos-reserve-figure img {
    height: 240px;
  }

  .maydos-reserve-panel {
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .maydos-reserve-grid {
    grid-template-columns: 1fr;
  }

  .maydos-reserve-form .maydos-span-2 {
    grid-column: auto;
  }
}
