:root {
  --bg: #eef4fb;
  --panel: rgba(255, 255, 255, 0.96);
  --card: #ffffff;
  --ink: #122033;
  --muted: #667085;
  --line: #d9e2ee;
  --line-strong: #c6d3e1;
  --blue: #1266d6;
  --blue-dark: #0c4fa8;
  --green: #16803c;
  --green-bg: #e8f7ee;
  --red: #b42318;
  --red-bg: #fff1f0;
  --shadow: 0 24px 70px rgba(20, 43, 75, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(118, 132, 153, 0.10) 45% 45.25%, transparent 45.25% 100%),
    repeating-linear-gradient(112deg, transparent 0 72px, rgba(18, 102, 214, 0.08) 73px 75px, transparent 76px 148px),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 52%, #e2ebf6 100%);
}

.page-shell {
  min-height: 100vh;
  padding: 32px 18px;
}

.complaint-panel {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(198, 211, 225, 0.74);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-header {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}

.brand {
  display: inline-flex;
}

.brand-logo {
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
  display: block;
}

.header-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 20px;
}

.lead {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.form-section,
.alert {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(20, 43, 75, 0.08);
}

.form-section {
  padding: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

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

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.check-row span {
  display: block;
  margin-bottom: 8px;
  color: #26364b;
  font-size: 14px;
  font-weight: 800;
}

.field strong,
.check-row strong {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}

select {
  appearance: auto;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 102, 214, 0.14);
  outline: none;
  background: #ffffff;
}

.file-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.check-row input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.check-row span {
  margin: 0;
  line-height: 1.5;
}

.refund-fields {
  margin-top: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 20px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 50px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(18, 102, 214, 0.20);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 22px;
}

.submit-button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.alert {
  margin: 0 0 18px;
  padding: 15px 18px;
  border-left-width: 5px;
  line-height: 1.45;
}

.alert.success {
  border-left-color: var(--green);
  background: var(--green-bg);
}

.alert.error {
  border-left-color: var(--red);
  background: var(--red-bg);
}

.field-error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.10);
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 12px;
  }

  .complaint-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .panel-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand-logo {
    width: min(300px, 100%);
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 19px;
  }

  .form-section {
    padding: 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-actions,
  .submit-button {
    width: 100%;
  }
}
