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

* {
  box-sizing: border-box;
}

:root {
  font-family: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #0b1224;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #1e2c4f 0, #0b1224 45%, #0b1224 100%);
  color: #e2e8f0;
  position: relative;
}

.bg-accent {
  position: fixed;
  inset: 0;
  background: radial-gradient(900px circle at 20% 20%, rgba(58, 134, 255, 0.18), transparent 60%),
    radial-gradient(700px circle at 80% 10%, rgba(124, 58, 237, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  background: rgba(12, 19, 35, 0.65);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, #3a86ff, #7c3aed);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.lang-switch button.active {
  background: linear-gradient(120deg, #3a86ff, #7c3aed);
  border-color: transparent;
  color: #fff;
}

.page {
  min-height: calc(100vh - 56px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  max-width: 880px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 28px;
  backdrop-filter: blur(14px);
}

.card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
  color: #f8fafc;
}

.intro {
  background: linear-gradient(120deg, rgba(58, 134, 255, 0.18), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  color: #e2e8f0;
}

.card p {
  margin-top: 0;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.form-section h3 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.form-section.interest .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-field.full-row {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  color: #e2e8f0;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  font-family: inherit;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #3a86ff;
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.form-field input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-field-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.form-field-inline label {
  font-weight: 600;
  color: #e2e8f0;
}

.field-error input,
.field-error select,
.field-error textarea,
.field-error .boolean-group,
.field-error .checkbox-field {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.boolean-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid transparent;
  padding: 4px 6px;
  border-radius: 10px;
}

.boolean-group label {
  font-weight: 600;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #e2e8f0;
  border: 1px solid transparent;
  padding: 6px 8px;
  border-radius: 10px;
}

.checkbox-field input {
  transform: scale(1.2);
}

.consent-info {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.consent-info strong {
  color: #e2e8f0;
}

.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.consent-actions .link-btn {
  margin-left: 28px;
  display: inline-block;
}

.turnstile-box {
  margin: 18px 0 8px;
text-align:right;
}

.turnstile-box.full-width iframe {
  width: 100% !important;
}

.turnstile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.turnstile-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.turnstile-row .turnstile-box {
  width: 100%;
  display: block;
}

.turnstile-row .turnstile-box > div,
.turnstile-row .turnstile-box iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.consent-turnstile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
}

#turnstile-legend {
  color: #9fb4d1;
  font-weight: 600;
  font-size: 0.95rem;
}

.legal-row {
  margin: 6px 0 18px;
}

a {
  color: #c4b5fd;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #e9d5ff;
}

.link-btn {
  border: none;
  background: transparent;
  color: #c4b5fd;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-weight: 600;
}

button[type="submit"] {
  width: 100%;
  justify-self: stretch;
  align-self: center;
  margin-top: 24px;
  padding: 12px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, #3a86ff, #7c3aed);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(58, 134, 255, 0.3);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.message {
  display: none;
}

.alert {
  position: fixed;
  bottom: 22px;
  right: 22px;
  min-width: 320px;
  max-width: 460px;
  padding: 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.alert.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.alert.success {
  border-color: rgba(34, 197, 94, 0.5);
}

.alert.error {
  border-color: rgba(239, 68, 68, 0.6);
}

.alert-icon {
  font-size: 1.4rem;
}

.alert button {
  margin-left: auto;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
  overflow: hidden;
}

.no-scroll {
  overflow: hidden;
}

.modal {
  background: #0f172a;
  border-radius: 14px;
  max-width: 760px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.modal-body {
  margin-top: 10px;
  white-space: pre-wrap;
  color: #cbd5e1;
  max-height: 70vh;
  overflow: auto;
}

.modal button#modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  color: #e2e8f0;
}

.pcb-illustration {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

@media (min-width: 768px) {
  .fields {
    grid-template-columns: repeat(2, 1fr);
  }
}
