/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #f0f7fc, #fff);
  color: #1a2e3b;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ─── SUCCESS SCREEN ─── */
.success-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(to bottom, #f0f7fc, #fff);
}
.success-card {
  text-align: center;
  max-width: 28rem;
  animation: fadeScale 0.5s ease-out;
}
.success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.success-card p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}
.success-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.success-logos .logo-sescon {
  height: 2.5rem;
  object-fit: contain;
}
.success-logos .logo-divider {
  width: 1px;
  height: 1.5rem;
  background: #d1d5db;
}
.success-logos .logo-omie {
  height: 2rem;
  object-fit: contain;
  opacity: 0.6;
}

/* ─── HEADER ─── */
.header {
  background: #0091d9;
  color: #fff;
}
.header-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  height: 3.5rem;
  object-fit: contain;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-label {
  font-size: 0.75rem;
  opacity: 0.7;
}
.header-omie {
  height: 1.75rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ─── HERO ─── */
.hero {
  background: #0091d9;
  color: #fff;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}
.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}
.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.btn-hero {
  display: inline-block;
  background: #fff;
  color: #0091d9;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}
.btn-hero:hover {
  background: #f0f0f0;
}
.hero-time {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

/* ─── FORM SECTION ─── */
.form-section {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ─── CARDS ─── */
.card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin: 1rem 0;
}
@media (min-width: 768px) {
  .card {
    padding: 2rem;
  }
}

.personal-card {
  border: 2px solid rgba(0, 145, 217, 0.2);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.card-title h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
}
.icon-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #0091d9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ─── BLOCK HEADERS ─── */
.block-header {
  margin-bottom: 1rem;
}
.block-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}
.block-header p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ─── FIELDS ─── */
.fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.375rem;
}
.required {
  color: #ef4444;
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  height: 3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1a2e3b;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus {
  border-color: #0091d9;
  box-shadow: 0 0 0 3px rgba(0, 145, 217, 0.15);
}
.field input.input-error {
  border-color: #f87171;
  background: #fef2f2;
}
.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}
.error-msg.visible {
  display: block;
}

/* ─── QUESTION CARDS ─── */
.question-card {
  transition: border-color 0.2s;
}
.question-card.has-error {
  border-color: #fca5a5;
  background: rgba(254, 242, 242, 0.3);
}

.question-header {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1f2937;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
  .question-header {
    font-size: 1rem;
  }
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #0091d9;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.question-hint {
  color: #6b7280;
  font-size: 0.8125rem;
  margin-top: 0.125rem;
  padding-left: 2.25rem;
}

.question-description {
  color: #6b7280;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  padding-left: 2.25rem;
}

/* ─── OPTIONS ─── */
.options {
  margin-top: 0.75rem;
  padding-left: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.option-label:hover {
  border-color: #93c5fd;
}
.option-label.selected {
  border-color: #0091d9;
  background: rgba(0, 145, 217, 0.04);
}

/* Hidden native inputs, custom indicators */
.option-label input[type="radio"],
.option-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.custom-indicator {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.custom-indicator.radio {
  border-radius: 50%;
}
.custom-indicator.checkbox {
  border-radius: 0.3rem;
}
.custom-indicator .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.custom-indicator .check {
  display: none;
}

.option-label.selected .custom-indicator {
  border-color: #0091d9;
  background: #0091d9;
}
.option-label.selected .custom-indicator .dot {
  display: block;
}
.option-label.selected .custom-indicator .check {
  display: block;
}

.option-label span.option-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
}

/* Other input inside option */
.other-container {
  flex: 1;
}
.other-container .other-label {
  font-size: 0.875rem;
  color: #374151;
}
.other-container input[type="text"] {
  width: 100%;
  margin-top: 0.375rem;
  height: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #1a2e3b;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.other-container input[type="text"]:focus {
  border-color: #0091d9;
  box-shadow: 0 0 0 3px rgba(0, 145, 217, 0.15);
}

/* ─── CURRENCY FIELDS ─── */
.currency-fields {
  margin-top: 0.75rem;
  padding-left: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.currency-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.currency-row label {
  font-size: 0.875rem;
  color: #374151;
  min-width: 18rem;
}
@media (max-width: 640px) {
  .currency-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .currency-row label {
    min-width: auto;
  }
}
.currency-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.currency-input-wrap span {
  color: #6b7280;
  font-size: 0.875rem;
}
.currency-input-wrap input {
  width: 8rem;
  height: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #1a2e3b;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.currency-input-wrap input:focus {
  border-color: #0091d9;
  box-shadow: 0 0 0 3px rgba(0, 145, 217, 0.15);
}

/* ─── QUESTION ERROR ─── */
.question-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding-left: 2.25rem;
  display: none;
}
.question-error.visible {
  display: block;
}

/* ─── LEGAL TEXT ─── */
.legal-text {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.6;
}
.legal-text a {
  color: #0091d9;
  text-decoration: underline;
}

/* ─── SUBMIT ─── */
.submit-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 3rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: #0091d9;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0, 145, 217, 0.25);
  transition: background 0.2s;
}
.btn-submit:hover {
  background: #007bbd;
}

.disclaimer {
  color: #9ca3af;
  font-size: 0.75rem;
  text-align: center;
  max-width: 32rem;
}

/* ─── BACK TO TOP ─── */
.back-top {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.back-top button {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #0091d9;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  transition: opacity 0.2s;
}
.back-top button:hover {
  opacity: 0.7;
}

/* ─── FOOTER ─── */
.footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem;
  text-align: center;
}
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.footer-sescon {
  height: 2rem;
  object-fit: contain;
}
.footer-divider {
  width: 1px;
  height: 1.5rem;
  background: #d1d5db;
}
.footer-omie {
  height: 1.5rem;
  object-fit: contain;
  opacity: 0.5;
}
.footer p {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ─── Animations ─── */
@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
