:root {
  --brand-950: #0d3c33;
  --brand-900: #19413b;
  --brand-800: #1d4e49;
  --bg: #f5f8fa;
  --border: #dbe0e3;
  --muted: #64748b;
  --cta: #125246;
}

* { box-sizing: border-box; }

body.averia-body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--brand-900);
}

.public-layout-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-layout-body .averia-main-wrap { flex: 1; }
.public-layout-body .footer { margin-top: auto; }

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

.averia-header {
  background: var(--brand-950);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.averia-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.averia-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.averia-header nav {
  display: inline-flex;
  gap: 22px;
}

.header-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-link.active,
.header-link:hover {
  color: #5eead4;
}

.averia-shell {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}


.card-block {
  background: #fff;
  border: 1px solid #ecf0f2;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}


.card-block-single {
  width: min(100%, 920px);
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-wrap,
.field-wrap-full {
  display: grid;
  gap: 7px;
}

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

label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.field-input,
.dash-select-kind {
  width: 100%;
  border: 1px solid #dce3e7;
  border-radius: 12px;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea.field-input {
  min-height: 120px;
  resize: vertical;
}

.field-input:focus,
.dash-select-kind:focus {
  outline: none;
  border-color: var(--brand-950);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 60, 51, 0.08);
}

.files-help {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-main {
  grid-column: 1 / -1;
  border: none;
  border-radius: 14px;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--cta);
  cursor: pointer;
}

.btn-main:hover {
  background: var(--brand-950);
}

.error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.84rem;
}

.alert {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
}

.footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.footer-grid {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-brand-block h2 {
  margin: 0;
  font-size: 1rem;
}

.footer-brand-block p,
.footer-copy {
  margin: 3px 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
}

#kind-other-detail-wrap { display: none; }

@media (max-width: 930px) {
  .averia-shell {
    padding: 30px 0;
  }

  .card-block {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .averia-header nav {
    display: none;
  }
}

.dash-file-wrap {
  display: grid;
  gap: 0.5rem;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.7rem;
}

.dash-file-wrap input[type="file"].dash-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash-file-button {
  min-height: 40px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--brand-800);
  background: var(--brand-800);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.dash-file-button:hover,
.dash-file-wrap input[type="file"].dash-file-input:focus + .dash-file-button {
  background: var(--brand-950);
  border-color: var(--brand-950);
}
