@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #0f172a;
  background: radial-gradient(circle at 15% 0%, #dbeafe 0%, #f8fafc 45%, #ecfeff 100%);
  padding-top: 78px;
}

.top-popup {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 24px));
  z-index: 1000;
  background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.top-popup-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.top-popup-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

body.top-popup-closed {
  padding-top: 24px;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.registration-form {
  width: 100%;
  max-width: 780px;
  margin: auto;
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .1);
}

.registration-form h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.form-cover-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 0.95rem;
  border: 1px solid #e2e8f0;
}

.registration-form h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.45rem;
}

.event-info {
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border-radius: 12px;
}

.event-info h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.event-info ul {
  margin: 0;
  padding-left: 1.05rem;
}

.event-info li {
  margin-bottom: 0.35rem;
  color: #334155;
}

.event-info a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.event-info a:hover {
  text-decoration: underline;
}

.helper-text {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

.captcha-box {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #f0f9ff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.registration-form label {
  display: block;
  margin-top: 0.86rem;
  font-weight: 600;
  color: #1f2937;
}

.registration-form input,
.registration-form textarea,
.registration-form select {
  width: 100%;
  padding: 0.62rem 0.72rem;
  margin-top: 0.28rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.registration-form input:focus,
.registration-form textarea:focus,
.registration-form select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

.registration-form button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.78rem;
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
}

.registration-form button:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
}

.registration-form .secondary-btn {
  background: #334155;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: center;
}

.contact-row select,
.contact-row input {
  margin-top: 0.25rem;
}

.acomp {
  margin-top: 1rem;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  padding: 0.85rem;
  background: #f8fbff;
}

.acomp .remove-acompanhante {
  background: #991b1b;
}

.acomp-error {
  margin-top: 0.6rem;
  margin-bottom: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

.total-box {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.total-box h3 {
  margin: 0 0 0.45rem;
}

.consent-box {
  margin-top: 0.95rem;
  padding: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: #334155;
  margin: 0;
}

.checkbox-line input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0;
}

#total-breakdown {
  margin: 0;
  color: #334155;
  line-height: 1.4;
}

#total-amount {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.35rem;
  color: #0f172a;
}

@media (max-width: 760px) {
  body {
    padding-top: 96px;
  }

  .top-popup {
    top: 8px;
    width: calc(100% - 16px);
    padding: 10px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }
}
