:root {
  --ink: #101828;
  --muted: #5b6472;
  --blue: #1e5fa8;
  --green: #168145;
  --danger: #b42318;
  --line: #dfe5ec;
  --surface: #f5f8fb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(30, 95, 168, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(22, 129, 69, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  width: 100%;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 92px;
  height: 54px;
  object-fit: contain;
}

.login-link {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), #1a9a55);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.request-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.request-intro {
  max-width: 760px;
  margin-bottom: 24px;
  animation: requestFadeUp 340ms ease-out both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
}

.request-intro p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.request-form {
  display: grid;
  gap: 18px;
}

.form-section {
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
  animation: requestFadeUp 390ms 50ms ease-out both;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-section h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid #cfd8e3;
  border-radius: 8px;
  outline: 0;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 95, 168, 0.12);
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.manual-years-field,
.manual-business-type-field,
.manual-premises-type-field {
  display: block;
  margin-top: 14px;
}

.manual-years-field[hidden],
.manual-business-type-field[hidden],
.manual-premises-type-field[hidden] {
  display: none;
}

.full {
  grid-column: 1 / -1;
}

fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.radio-option,
.confirm-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  margin-right: 16px;
  color: var(--muted);
  font-weight: 800;
}

.radio-option input,
.confirm-field input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.file-field {
  display: block;
}

.confirm-field {
  align-items: flex-start;
  line-height: 1.45;
}

.form-actions {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
  animation: requestFadeUp 410ms 90ms ease-out both;
}

button {
  min-height: 52px;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), #1a9a55);
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 129, 69, 0.22);
  filter: brightness(1.02);
}

button:not(:disabled):active {
  transform: translateY(0) scale(0.985);
}

.form-status {
  margin: 0;
  color: #174a83;
  font-size: 14px;
  font-weight: 900;
}

.status-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 520px;
}

.loading-bar {
  width: 100%;
  min-width: 260px;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  background: #e7f3ff;
  border: 1px solid #c7dcff;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.loading-bar span {
  width: 38%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #1e5fa8, #168145, #1e5fa8);
  border-radius: inherit;
  box-shadow: 0 0 14px rgba(22, 129, 69, 0.35);
  animation: loadingSlide 0.9s ease-in-out infinite;
}

.loading-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loadingSlide {
  0% {
    transform: translateX(-110%);
  }

  50% {
    transform: translateX(82%);
  }

  100% {
    transform: translateX(245%);
  }
}

@keyframes requestFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.form-status.success {
  color: #126a4a;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  .site-header,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
