@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

:root {
  --lf-primary: #0d4366;
  --lf-primary-dark: #0a3551;
  --lf-accent: #82b440;
  --lf-text: #1f2d3d;
  --lf-muted: #5d666f;
  --lf-surface: #ffffff;
  --lf-bg: #f4f7fa;
  --lf-border: #dbe4ee;
  --lf-radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--lf-text);
  background:
    radial-gradient(circle at 10% 10%, rgba(13, 67, 102, 0.08), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(130, 180, 64, 0.09), transparent 35%),
    var(--lf-bg);
}

.page {
  min-height: 100vh;
  padding: 28px 16px;
}

.card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--lf-surface);
  border: 1px solid var(--lf-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 40px rgba(13, 67, 102, 0.09);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 43px;
  max-width: max-content;
  min-width: max-content;
  padding: 0 17px;
  border: none;
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  background: #0d4366;
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.3s ease;
}

.back-btn:hover {
  background: #0a3551;
  color: #fff;
  transform: translateY(-1px);
}

.logo-wrap {
  text-align: center;
  margin-bottom: 8px;
}

.logo-wrap img {
  max-width: none;
  width: auto;
  height: auto;
}

.card-header h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--lf-primary);
  text-align: center;
  margin-bottom: 16px;
}

.block {
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  padding: 14px;
  margin: 12px 0;
  background: #fff;
}

.block h2 {
  margin: 0 0 10px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 18px;
  color: var(--lf-primary);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.section-head p {
  margin: 0;
  color: var(--lf-muted);
  font-size: 13.5px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.field,
.note-item {
  display: grid;
  gap: 6px;
}

.field span,
.note-item span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lf-text);
}

.field input,
.note-item textarea,
.choices select {
  width: 100%;
  border: 1px solid #c8d5e3;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--lf-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choices select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230d4366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) 50%;
}

.field input:focus,
.note-item textarea:focus,
.choices select:focus {
  outline: none;
  border-color: var(--lf-primary);
  box-shadow: 0 0 0 3px rgba(13, 67, 102, 0.14);
}

.question-item {
  border-top: 1px dashed #d6e1ec;
  padding: 10px 0;
}

.question-item:first-child {
  border-top: 0;
}

.question-title {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lf-text);
}

.choices {
  max-width: 240px;
}

.notes {
  display: grid;
  gap: 8px;
}

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

.actions {
  margin-top: 14px;
}

.actions button {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--lf-primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.actions button:hover {
  background: var(--lf-primary-dark);
  transform: translateY(-1px);
}

.actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 32, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.modal-title {
  margin: 0 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 20px;
  color: var(--lf-primary);
}

.modal-message {
  margin: 0;
  font-size: 13.5px;
  color: var(--lf-text);
  white-space: pre-line;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.modal-actions button {
  height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: var(--lf-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .page {
    padding: 16px 10px;
  }

  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .card-header h1 {
    font-size: 24px;
  }

  .block h2 {
    font-size: 16px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-title {
    font-size: 13.5px;
  }

  .choices {
    max-width: 100%;
  }
}





