/* =========================
   Base
========================= */

:root {
  --bg: #f8f6f2;
  --card: #ffffff;
  --text: #1c1c1c;
  --muted: #666;
  --line: rgba(0,0,0,.08);
  --accent: #8b1e1e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.05);
  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.25;
  margin-top: 0;
  font-size: 160%;
}

p {
  margin: 0 0 16px 0;
}

ul, ol {
  margin: 0 0 20px 20px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* =========================
   Layout
========================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  padding: 60px 0;
}

/* =========================
   Header / Navigation
========================= */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color .2s ease;
}
a.nav-label {
  color: var(--accent);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
a.nav-label:hover {
  color: var(--accent);
}

/* =========================
   Article
========================= */

.article {
  background: var(--card);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.section h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,.03);
  border-radius: 10px;
  font-style: italic;
}

/* =========================
   FAQ
========================= */

.faq {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.faq-item[open] {
  box-shadow: 0 8px 26px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.12);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(0,0,0,.03);
}

.arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.faq-item[open] .arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.faq-answer p {
  margin: 0;
}

/* =========================
   Contact Form
========================= */

.contact-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
}

input,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,30,30,.12);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a11d1d;
  box-shadow: 0 0 0 3px rgba(161,29,29,.12);
}
.field-error {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 8px;

  background: #fdeeee;
  border: 1px solid #f3bcbc;
  color: #a11d1d;
}

.field-error.show {
  display: block;
}
.error {
  display: none;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #a11d1d;
}

.error.show {
  display: block;
}

.btn-primary {
  margin-top: 20px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease, transform .06s ease;
}

.btn-primary:hover {
  opacity: .92;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary[disabled] {
  opacity: .65;
  cursor: not-allowed;
}

/* =========================
   Form Status
========================= */

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.form-status.loading {
  display: block;
  background: #f4f4f4;
  border-color: #dcdcdc;
  color: #444;
}

.form-status.loading::before {
  content: "⏳ ";
}

.form-status.success {
  display: block;
  background: #eef9f1;
  border-color: #b8e2c2;
  color: #1c6b3b;
}

.form-status.success::before {
  content: "✓ ";
  font-weight: bold;
}

.form-status.error {
  display: block;
  background: #fdeeee;
  border-color: #f3bcbc;
  color: #a11d1d;
}

.form-status.error::before {
  content: "⚠ ";
  font-weight: bold;
}

.honeypot {
  display: none;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  .article {
    padding: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav a {
    margin-left: 14px;
  }

  hr {
    margin: 32px 0;
  }
}
.attached-files {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.attached-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 30, 50, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.attached-file__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attached-file__size {
  flex: 0 0 auto;
  color: #667085;
  font-size: 13px;
}

.attached-file__remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
}

.attached-file__remove:hover {
  color: #7a271a;
}