* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --v4-red: #e30613;
  --v4-red-dark: #b8050f;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e5e5e7;
  --focus: rgba(227, 6, 19, 0.08);
  --success-bg: #e6f7e9;
  --success-text: #1a7a2e;
  --error-bg: #fce8e8;
  --error-text: #c4181b;
  --info-bg: #eef4ff;
  --info-text: #1a4bb8;
}

body {
  min-width: 320px;
  padding: 20px 12px 80px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(100%, 880px);
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 32px 40px;
  border-top: 4px solid var(--v4-red);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.logo {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: var(--v4-red);
  color: #ffffff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo::after {
  position: absolute;
  bottom: 4px;
  content: "COMPANY";
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0;
}

.header-text h1 {
  margin-bottom: 4px;
  color: var(--v4-red);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.agency {
  margin-top: 6px;
  color: var(--v4-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.intro {
  margin-bottom: 24px;
  padding: 24px 32px;
  border-left: 3px solid var(--v4-red);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
}

.intro h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.intro p + p {
  margin-top: 8px;
}

.section {
  margin-bottom: 20px;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  color: var(--v4-red);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--v4-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label:not(.option) {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.req {
  margin-left: 3px;
  color: var(--v4-red);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

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

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--v4-red);
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--focus);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--v4-red);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color 0.15s, background-color 0.15s;
}

.option:hover {
  border-color: var(--v4-red);
  background: #ffffff;
}

.option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--v4-red);
  cursor: pointer;
}

.option input:checked + span {
  color: var(--v4-red);
  font-weight: 600;
}

.other-input {
  display: none;
  margin-top: 8px;
  padding: 9px 12px;
  border-width: 1px;
  font-size: 13px;
}

.other-input.visible {
  display: block;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  width: 100%;
  min-height: 52px;
  padding: 16px 24px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, opacity 0.15s;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.btn-primary {
  background: var(--v4-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--v4-red-dark);
}

.btn-secondary {
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--v4-red);
  color: var(--v4-red);
}

.status {
  display: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.status.success,
.status.error,
.status.info {
  display: block;
}

.status.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.status.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.status.info {
  background: var(--info-bg);
  color: var(--info-text);
}

.save-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  body {
    padding: 12px 10px 56px;
  }

  .header {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }

  .header-text h1 {
    font-size: 20px;
  }

  .intro,
  .section {
    padding: 22px 20px;
  }

  .section h2 {
    align-items: flex-start;
    font-size: 16px;
  }
}
