:root {
  --glass-bg: rgba(18, 18, 18, 0.45);
  --glass-bg-strong: rgba(12, 12, 12, 0.55);
  --glass-border: rgba(255, 255, 255, 0.55);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --radius: 10px;
  --max-width: 420px;
  --font: "DM Sans", system-ui, sans-serif;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
}

.bg,
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--app-height, 100%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg__img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bg-w, 100%);
  height: var(--bg-h, 100%);
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

.page {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

.brand {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.75rem;
}

.logo {
  width: min(190px, 78vw);
  height: auto;
  display: block;
  padding: 0.85rem;
  background: #fff;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.link-btn:active {
  transform: scale(0.985);
}

.link-btn__icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.link-btn__icon svg {
  width: 100%;
  height: 100%;
}

.form-card {
  margin-top: 0.35rem;
  padding: 1.5rem 1.15rem 1.35rem;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-card h2 {
  margin: 0 0 1.15rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.field {
  display: block;
  width: 100%;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.field select:invalid,
.field select option[value=""] {
  color: var(--text-muted);
}

.field select option {
  color: #111;
  background: #fff;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #ff8a8a;
}

.form-error {
  margin: 0;
  font-size: 0.82rem;
  color: #ffb4b4;
  text-align: center;
}

.submit-btn {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.submit-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.submit-btn:active {
  transform: scale(0.985);
}

.date-field {
  position: relative;
}

.datepicker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: min(292px, 92vw);
  padding: 0.75rem 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  color: #222;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-family: var(--font);
}

.datepicker::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08);
}

.datepicker__header {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.datepicker__nav {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.datepicker__nav:hover {
  background: #f2f2f2;
}

.datepicker__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
}

.datepicker__month-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
}

.datepicker__month-btn:hover {
  background: #f2f2f2;
}

.datepicker__weekdays,
.datepicker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  text-align: center;
}

.datepicker__weekdays {
  margin-bottom: 0.25rem;
}

.datepicker__weekdays span {
  font-size: 0.72rem;
  color: #9a9a9a;
  font-weight: 500;
  padding: 0.25rem 0;
}

.datepicker__day {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #222;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.datepicker__day--muted {
  color: #c5c5c5;
}

.datepicker__day--today {
  box-shadow: inset 0 0 0 1.5px #cfcfcf;
}

.datepicker__day--selected {
  background: #4a7fd4;
  color: #fff;
  box-shadow: none;
}

.datepicker__day:hover:not(.datepicker__day--selected) {
  background: #f0f0f0;
}

.datepicker__months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.datepicker__months[hidden] {
  display: none;
}

.datepicker__month-option {
  border: 0;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0.55rem 0.25rem;
  font-size: 0.8rem;
  color: #333;
  cursor: pointer;
}

.datepicker__month-option:hover,
.datepicker__month-option--active {
  background: #4a7fd4;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 380px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 1.25rem, var(--max-width));
    padding-top: 1.75rem;
  }
}
