﻿:root {
  --bg: #e6e8ea;
  --card: #ffffff;
  --primary: #c9d0d6;
  --accent: #d92b4a;
  --border: #d0d5da;
  --text: #1c1f23;
  --muted: #5f6c7b;
  --shadow: 0 30px 60px rgba(19, 35, 51, 0.18);
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.page__content {
  display: flex;
  align-items: stretch;
  gap: clamp(2rem, 4vw, 3rem);
  width: 100%;
  flex: 1;
  min-height: 100vh;
  max-height: none;
}
.hero {
  flex: 0 0 38%;
  background: linear-gradient(160deg, #f2f3f5 0%, #d6dbe1 100%);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  min-height: 0;
}
.hero__branding {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
}
.hero__logo {
  width: clamp(120px, 40%, 220px);
  height: auto;
}
.hero__email {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__content {
  display: grid;
  gap: 1rem;
  align-content: flex-start;
  justify-items: flex-start;
}
.hero__content h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__subtitle {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}
.hero__deadline {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
}
.hero__content .button--ghost {
  align-self: flex-start;
}
.form-wrapper {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 0;
  height: auto;
}
.card {
  width: min(960px, 100%);
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  overflow-y: auto;
}
.card::-webkit-scrollbar {
  width: 10px;
}
.card::-webkit-scrollbar-thumb {
  background: rgba(92, 103, 118, 0.2);
  border-radius: 999px;
}
.section h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.section h2 span {
  font-size: 0.85rem;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--two {
  grid-template-columns: repeat(2, minmax(200px, 1fr));
}
.grid--address {
  grid-template-columns: minmax(280px, 2fr) minmax(120px, 1fr) minmax(160px, 1.2fr);
  gap: 1rem;
}

.grid--full {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field span {
  font-weight: 600;
  font-size: 0.95rem;
}
.field input,
.signature-text {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.signature-text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 43, 74, 0.2);
}
.checkbox-group {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}
.checkbox-group legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 500;
}
.checkbox input[type="radio"] {
  width: 20px;
  height: 20px;
}
.section--footer {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.button {
  align-self: flex-start;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.7rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(217, 43, 74, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(217, 43, 74, 0.28);
}
.button:disabled {
  background: #f0a0ad;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(28, 31, 35, 0.2);
  box-shadow: none;
}
.button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.status--success {
  color: #2f7f4f;
}
.status--error {
  color: #c4281c;
}
.signature-pad {
  background: repeating-linear-gradient(
    to right,
    rgba(28, 31, 35, 0.06) 0,
    rgba(28, 31, 35, 0.06) 2px,
    transparent 2px,
    transparent 14px
  ), #fff;
  border: 1px dashed rgba(28, 31, 35, 0.2);
  border-radius: 1rem;
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
}
.signature-pad canvas {
  width: 100%;
  height: clamp(160px, 30vh, 220px);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(28, 31, 35, 0.08);
  touch-action: none;
}
.signature-pad__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.signature-pad__hint {
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 1101px) {
  .page {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .page__content {
    align-items: stretch;
  }
  .form-wrapper {
    height: 100%;
  }
}
@media (max-width: 1100px) {
  .page {
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }
  .page__content {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: auto;
    gap: clamp(1.25rem, 3vw, 2rem);
  }
  .hero {
    width: 100%;
    flex: none;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: 1.5rem 1.5rem 0 0;
  }
  .form-wrapper {
    width: 100%;
    padding: 0;
    height: auto;
  }
  .card {
    width: 100%;
    border-radius: 0 0 1.5rem 1.5rem;
  }
  .grid--two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (max-width: 768px) {
  body {
    background: #fff;
  }
  .page {
    padding: 0;
  }
  .page__content {
    width: 100%;
    gap: 0;
  }
  .hero {
    border-radius: 0;
    padding: 1.75rem 1.5rem;
  }
  .form-wrapper {
    padding: 0;
    height: auto;
  }
  .card {
    border-radius: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    padding: 1.5rem 1.25rem 2.5rem;
  }
  .grid--address {
    grid-template-columns: 1fr;
  }
  .signature-pad canvas {
    height: 180px;
  }
}
@media (orientation: portrait) {
  .page__content {
    flex-direction: column;
    align-items: center;
  }
  .hero {
    flex-direction: column;
  }
}
