*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f5fb;
  color: #0f1f3d;
  min-height: 100vh;
  line-height: 1.6;
}
:root {
  --primary:   #0078d4;
  --primary-d: #005a9e;
  --primary-l: #e6f2fb;
  --text:      #0f1f3d;
  --muted:     #5a7a96;
  --card:      #ffffff;
  --border:    #cddbe8;
  --green:     #107c10;
  --green-bg:  #e6f4e6;
  --red:       #c50f1f;
  --red-bg:    #fde7e9;
  --radius:    12px;
  --shadow:    0 2px 16px rgba(0,78,130,0.07);
  --shadow-md: 0 8px 32px rgba(0,78,130,0.13);
}
a { text-decoration: none; color: inherit; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(0,120,212,0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,78,130,0.08);
}
.nav-inner {
  max-width: 900px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.06rem; color: var(--text);
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.85; }
.nav-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav-back:hover { color: var(--primary); }

/* Page */
.page { max-width: 880px; margin: 0 auto; padding: 44px 24px 80px; }

/* Hero strip */
.page-hero {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 60%, #003a6e 100%);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin-bottom: 28px;
  color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero-content { position: relative; }
.page-hero-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  padding: 5px 12px; border-radius: 4px; margin-bottom: 14px;
}
.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; color: #fff;
}
.page-sub {
  font-size: 0.97rem; color: rgba(255,255,255,0.82); line-height: 1.65; max-width: 540px;
}
.info-strip { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.info-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.88);
}
.info-dot { width: 7px; height: 7px; border-radius: 50%; background: #50e6ff; flex-shrink: 0; }

/* Form card */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

/* Form sections */
.form-section {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  margin: 36px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-section:first-child { margin-top: 0; }
.form-section .section-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-note {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: 0.78rem; color: var(--muted); margin-left: auto;
}

/* Fields */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

label { font-size: 0.84rem; font-weight: 600; color: var(--text); }
label .req { color: var(--primary); margin-left: 2px; }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,120,212,0.12);
}
select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a96' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.65; }

.slot-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; line-height: 1.55; }

/* Submit */
.submit-row { margin-top: 36px; }
.btn-submit {
  width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(0,120,212,0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,120,212,0.48); filter: brightness(1.07); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { background: #aaa; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

.form-privacy {
  font-size: 0.78rem; color: var(--muted);
  text-align: center; margin-top: 14px; line-height: 1.55;
}

/* Error */
.form-error {
  display: none;
  background: var(--red-bg); border: 1px solid rgba(197,15,31,0.2);
  border-radius: 8px; padding: 12px 16px;
  font-size: 0.875rem; color: var(--red); margin-top: 12px;
}
.form-error.visible { display: block; }

/* Thank you */
.thankyou { display: none; text-align: center; padding: 56px 24px; }
.thankyou.visible { display: block; }
.ty-icon { font-size: 3.4rem; margin-bottom: 18px; animation: ty-pop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes ty-pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ty-title { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.02em; }
.ty-sub { font-size: 0.97rem; color: var(--muted); line-height: 1.72; margin-bottom: 28px; }
.ty-sub strong { color: var(--text); }
.ty-box {
  background: var(--primary-l); border: 1px solid rgba(0,120,212,0.18);
  border-radius: var(--radius); padding: 26px 30px;
  text-align: left; font-size: 0.9rem; color: var(--text); line-height: 1.82;
}
.ty-box strong { color: var(--primary); }
.ty-slot {
  margin-top: 16px; padding: 13px 16px;
  background: var(--primary); border-radius: 8px;
  font-weight: 600; color: #fff; font-size: 0.88rem;
}

/* Footer */
.site-footer {
  background: #0f1f3d;
  color: rgba(255,255,255,0.75);
  padding: 28px 24px 24px;
  margin-top: 36px;
  font-size: 0.82rem;
}
.site-footer-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: space-between;
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.site-footer-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  transition: color 0.15s;
}
.site-footer-links a:hover { color: #50e6ff; }
.site-footer-meta { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

/* Responsive */
@media (max-width: 640px) {
  .page-hero { padding: 28px 22px; }
  .page-title { font-size: 1.35rem; }
  .form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
