/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f4f6;
  color: #2A2A2C;
}

/* ── Full-screen layout ── */
.page {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Left: hero ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f0f0f2;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 4rem 2.5rem 3rem;
  color: #2A2A2C;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
}

.hero-logo {
  display: none;
}

.hero-bar {
  display: block;
  width: 30px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 2.8rem;
  line-height: 1.25;
  font-weight: 500;
  max-width: 500px;
  color: #2A2A2C;
}

.hero-tagline span { color: #d12f30; }

/* ── Right: form ── */
.form-wrap {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.form-logo {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin-bottom: 1.75rem;
}

.form-wrap h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #2A2A2C;
}

.form-wrap .sub {
  font-size: .85rem;
  color: #6e6e73;
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: #2A2A2C;
  margin-bottom: .3rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid #d8d8dc;
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  color: #2A2A2C;
  background: #fafafb;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: #d12f30;
  box-shadow: 0 0 0 3px rgba(209,47,48,.1);
  background: #fff;
}

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

.opt { color: #9a9a9e; }

.lopd {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.lopd input[type="checkbox"] {
  margin-top: .15rem;
  accent-color: #d12f30;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.lopd label {
  font-size: .76rem;
  line-height: 1.5;
  color: #6e6e73;
  cursor: pointer;
  user-select: none;
}

.lopd label a {
  color: #d12f30;
  text-decoration: none;
}

.lopd label a:hover { text-decoration: underline; }

.btn {
  width: 100%;
  padding: .8rem;
  background: #d12f30;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.btn:hover { background: #b82829; }
.btn:active { transform: scale(.98); }

.form-footer {
  margin-top: 1.5rem;
  font-size: .7rem;
  color: #9a9a9e;
  text-align: center;
}

.form-footer a { color: #2A2A2C; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* ── Messages ── */
.msg {
  padding: .7rem .9rem;
  border-radius: 10px;
  font-size: .85rem;
  margin-bottom: 1rem;
}

.msg.ok { background: #eaf8e6; color: #1f6e1f; border: 1px solid #b8e0b0; }
.msg.err { background: #fde8e8; color: #b82829; border: 1px solid #f5c0c0; }

/* ── Honeypot ── */
.honey {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 20, 22, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn .25s ease;
}

.modal-overlay.visible {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.92);
  z-index: 1001;
  width: 90%;
  max-width: 620px;
  max-height: 80vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  overflow: hidden;
  flex-direction: column;
  animation: modalIn .3s ease forwards;
}

.modal.visible {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eeeef0;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2A2A2C;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f4f4f6;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: #6e6e73;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.modal-close:hover {
  background: #e4e4e7;
  color: #2A2A2C;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  line-height: 1.65;
  font-size: .9rem;
  color: #3a3a3e;
}

.modal-body h4 {
  font-size: .95rem;
  font-weight: 600;
  color: #2A2A2C;
  margin: 1.25rem 0 .4rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: .75rem;
}

.modal-body ul {
  margin: .5rem 0 .75rem 1.25rem;
}

.modal-body li {
  margin-bottom: .3rem;
}

.modal-body a {
  color: #d12f30;
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  html, body { overflow: auto; }

  .page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .hero-logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .form-logo {
    display: none;
  }

  .hero { min-height: 50vh; }
  .hero-overlay { padding: 2rem 1.25rem; }
  .hero-tagline { font-size: 1.8rem; }
  .form-wrap { padding: 2rem 1.5rem 2.5rem; }

  .modal {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
    font-size: .85rem;
  }
}
