:root {
  --navy: #1f3864;
  --navy-dark: #142a4d;
  --gold: #b8860b;
  --gold-light: #e8c766;
  --brand-1: #e0812f;
  --brand-2: #9c2b1f;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #2c2c2c;
  --muted: #666666;
  --green: #1f7a3d;
  --border: #e1e5eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--brand-1) 0%, var(--brand-2) 320px, var(--bg) 320px);
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

header.top {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 54px 20px 54px;
  color: #fff;
  isolation: isolate;
}

header.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(31,20,15,0.55) 0%, rgba(31,20,15,0.72) 100%),
    url("../img/header-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

header.top::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

header.top .badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 18px;
  border: 3px solid rgba(255,255,255,0.9);
  outline: 2px solid rgba(232,199,102,0.45);
  outline-offset: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

header.top .badge::before,
header.top .badge::after {
  content: "";
  position: absolute;
  bottom: -24px;
  width: 20px;
  height: 34px;
  background: var(--gold);
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

header.top .badge::before {
  left: 12px;
  transform: rotate(10deg);
}

header.top .badge::after {
  right: 12px;
  transform: rotate(-10deg);
}

header.top h1 {
  position: relative;
  margin: 0 0 6px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

header.top p {
  position: relative;
  margin: 12px auto 0;
  max-width: 360px;
  color: #dbe4f2;
  font-size: 14.5px;
  letter-spacing: 0.3px;
}

header.top p::before {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 0 auto 12px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 42, 77, 0.12);
  padding: 30px 28px;
  margin-top: -40px;
  position: relative;
}

.card h2 {
  margin-top: 0;
  color: var(--navy);
  font-size: 19px;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 10px;
}

.intro {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 22px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0 6px;
  color: var(--navy-dark);
}

label .req { color: #c0392b; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
}

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

.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.loc-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #eef2f7;
  color: var(--navy-dark);
  border: 1.5px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover { background: #e2e8f0; }

.loc-status {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.loc-map {
  display: none;
  height: 220px;
  border-radius: 10px;
  margin-top: 12px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.loc-map.show { display: block; }

.file-drop {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--gold); background: #fffaf0; }
.file-drop input { display: none; }

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.previews img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.consent-box {
  background: #fbf3e3;
  border: 1px solid var(--gold-light);
  border-radius: 10px;
  padding: 16px;
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a3c10;
}
.consent-box a { color: var(--navy); font-weight: 600; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}
.consent-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.consent-check label { margin: 0; font-weight: 500; font-size: 13.5px; color: var(--text); }

.btn-submit {
  width: 100%;
  margin-top: 26px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-submit:hover { opacity: 0.92; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.error-msg {
  background: #fdecea;
  color: #a4231c;
  border: 1px solid #f5c2bd;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 14px;
  display: none;
}
.error-msg.show { display: block; }

footer.site {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 26px;
}
footer.site a { color: var(--navy); }
