:root {
  --bg: #061315;
  --panel: #0c2326;
  --panel-strong: #071012;
  --text: #f4fbfa;
  --muted: #a9c7c4;
  --accent: #26bcea;
  --accent-gradient: linear-gradient(
    135deg,
    rgba(38, 188, 234, 0.8),
    rgb(38, 188, 234) 50%,
    rgba(38, 188, 234, 0.8)
  );
  --line: rgba(38, 188, 234, 0.26);
  --danger: #ffb4a9;
  --success: #96f2c8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #061113 0%, var(--bg) 100%);
  overflow-x: hidden;
}

main {
  display: flex;
  justify-content: center;
  min-height: 0;
  width: 100%;
  overflow: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: center;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(0.65rem, 1.8dvh, 1.25rem) 0 clamp(0.55rem, 1.6dvh, 1.35rem);
}

.brand img {
  display: block;
  width: clamp(180px, 20dvh, 250px);
  height: auto;
}

.form-section {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(0.65rem, 1.9dvh, 1.7rem) 0 clamp(0.25rem, 0.8dvh, 0.8rem);
}

.section-heading {
  margin: 0 auto clamp(0.35rem, 0.9dvh, 0.75rem);
  text-align: center;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 4.5dvh, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 span {
  white-space: nowrap;
}

.section-heading p {
  margin: clamp(0.15rem, 0.35dvh, 0.35rem) auto 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.7dvh, 0.95rem);
  line-height: 1.35;
}

.request-form {
  display: grid;
  gap: clamp(0.35rem, 0.8dvh, 0.75rem);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: clamp(0.5rem, 1dvh, 0.9rem) 0.95rem clamp(0.55rem, 1.1dvh, 1rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 35, 38, 0.92);
}

legend {
  padding: 0 0.5rem;
  color: var(--accent);
  font-weight: 900;
}

.field-group {
  display: grid;
  gap: clamp(0.3rem, 0.7dvh, 0.55rem);
  margin-bottom: clamp(0.25rem, 0.6dvh, 0.5rem);
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.street-grid {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.28fr);
}

.city-grid {
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 700;
}

label span {
  font-size: clamp(0.68rem, 1.45dvh, 0.8rem);
  line-height: 1.2;
}

input,
select,
textarea {
  width: 100%;
  min-height: clamp(30px, 4.4dvh, 40px);
  border: 1px solid rgba(244, 251, 250, 0.16);
  border-radius: 6px;
  padding: clamp(0.35rem, 0.7dvh, 0.6rem) 0.7rem;
  color: var(--text);
  background: rgba(2, 9, 10, 0.44);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.8rem, 1.7dvh, 0.92rem);
  font-weight: 500;
  line-height: 1.25;
  outline: none;
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(2, 9, 10, 0.44);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px;
  padding-right: 2.3rem;
  cursor: pointer;
}

select option {
  color: #10191b;
  background: #f4fbfa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.group-title {
  margin: 0 0 clamp(0.12rem, 0.4dvh, 0.35rem);
  color: var(--text);
  font-size: clamp(0.68rem, 1.45dvh, 0.8rem);
  font-weight: 900;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(38, 188, 234, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: rgba(169, 199, 196, 0.68);
  font-weight: 500;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(0.25rem, 0.7dvh, 0.65rem);
}

.status-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: var(--success);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: clamp(32px, 4.3dvh, 40px);
  border: 0;
  border-radius: 6px;
  padding: clamp(0.42rem, 0.8dvh, 0.75rem) 1.1rem;
  color: #061416;
  background: var(--accent-gradient);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.8rem, 1.7dvh, 0.92rem);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(38, 188, 234, 0.2);
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: clamp(28px, 5dvh, 44px);
  padding: clamp(0.2rem, 0.7dvh, 0.55rem) 1rem calc(clamp(0.2rem, 0.7dvh, 0.55rem) + env(safe-area-inset-bottom));
  color: var(--muted);
  background: var(--panel-strong);
}

.site-footer img {
  width: 92px;
  height: auto;
}

.site-footer span {
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  body {
    height: auto;
    min-height: 100dvh;
  }

  main {
    overflow: visible;
  }

  .site-header {
    width: min(100% - 1.5rem, 1040px);
    padding: 1.1rem 0 1.45rem;
  }

  .brand img {
    width: clamp(210px, 58vw, 280px);
  }

  .form-section {
    width: min(100% - 1.5rem, 980px);
    padding-top: 2.4rem;
    padding-bottom: 1.6rem;
  }

  .section-heading {
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.12;
  }

  label span {
    font-size: 0.82rem;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    padding: 0.66rem 0.8rem;
    font-size: 0.95rem;
  }

  .two-columns,
  .street-grid,
  .city-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }

  .site-footer {
    min-height: 56px;
  }
}

@media (max-width: 420px) {
  h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 360px) {
  h2 {
    font-size: 1.45rem;
  }
}
