@import './ds/styles.css';

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
  background: var(--at-gray-900, #181d27);
  color: var(--at-gray-800, #1f2937);
  min-height: 100vh;
  padding: 40px 16px 80px;
}

.hero { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(239, 104, 32, 0.15); border: 1px solid rgba(239, 104, 32, 0.35);
  color: var(--at-orange-500, #ef6820); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 99px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(22px, 5vw, 36px); font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 14px; }
.hero h1 span { color: var(--at-orange-500, #ef6820); }
.hero p { color: var(--at-gray-400, #98a2b3); font-size: 15px; line-height: 1.7; max-width: 560px; margin: 0 auto; }
.hero-meta { display: flex; justify-content: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 7px; color: var(--at-gray-300, #d0d5dd); font-size: 13px; }
.hero-meta-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--at-orange-500, #ef6820); flex-shrink: 0; }

.card {
  background: var(--at-white, #FFFFFF); border-radius: 16px;
  padding: 36px 40px; max-width: 760px; margin: 0 auto 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25); position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0,0,0,.3);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(135deg, #942d1e 0%, #ee6723 48%, #fcb424 100%);
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--at-orange-600, #e04f16); background: var(--at-orange-50, #fff2eb);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 20px;
}
.card h2 { font-size: 18px; font-weight: 700; color: var(--at-gray-900, #101828); margin-bottom: 24px; }

.flowchart-wrap {
  background: var(--at-gray-50, #f9fafb);
  border: 1px solid var(--at-gray-200, #eaecf0); border-radius: 14px;
  padding: 28px 20px; margin-bottom: 28px; overflow-x: auto;
}
.flowchart-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--at-gray-500, #667085); margin-bottom: 20px; text-align: center;
}
.flow-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap; min-width: 580px;
}
.flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex: 1; min-width: 90px; max-width: 120px;
}
.flow-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.05);
  position: relative; background: #fff;
}
.flow-icon .step-num {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--at-orange-500, #ef6820); color: white;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow-label { font-size: 11px; font-weight: 600; color: var(--at-gray-900, #101828); text-align: center; line-height: 1.4; }
.flow-sub { font-size: 10px; color: var(--at-gray-500, #667085); text-align: center; line-height: 1.4; }
.flow-arrow { color: var(--at-gray-300, #d0d5dd); font-size: 20px; flex-shrink: 0; margin: 0 4px; padding-top: 8px; }

.cdp-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f4ebff; color: #6941c6;
  font-size: 11px; font-weight: 700; border-radius: 6px;
  padding: 3px 8px; margin-top: 4px;
}

.infobox {
  background: var(--at-orange-50, #fff2eb);
  border: 1px solid var(--at-orange-200, #fcd5c0); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 28px;
}
.infobox-title { font-size: 13px; font-weight: 700; color: var(--at-orange-700, #bc3b10); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.infobox p { font-size: 14px; color: var(--at-orange-900, #7b270e); line-height: 1.7; }
.infobox p + p { margin-top: 8px; }
.infobox strong { color: var(--at-orange-800, #96300f); }

.question { margin-bottom: 28px; }
.question label.q-label { display: block; font-size: 15px; font-weight: 600; color: var(--at-gray-900, #101828); margin-bottom: 4px; line-height: 1.5; }
.question .q-hint { font-size: 13px; color: var(--at-gray-500, #667085); margin-bottom: 12px; }

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; border: 1.5px solid var(--at-gray-300, #d0d5dd); border-radius: 10px;
  padding: 12px 16px; font-family: inherit; font-size: 14px; color: var(--at-gray-900, #101828);
  transition: border-color .3s ease, box-shadow .3s ease; outline: none;
}
input:focus { border-color: var(--at-orange-500, #ef6820); box-shadow: 0 0 0 4px rgba(239,104,32,.15); }

.options { display: flex; flex-direction: column; gap: 10px; }
.option-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--at-gray-200, #eaecf0); border-radius: 10px; cursor: pointer;
  transition: all .2s ease; user-select: none;
}
.option-item:hover { border-color: var(--at-orange-400, #f58444); background: var(--at-orange-25, #fff8f5); transform: translateX(4px); }
.option-item.selected { border-color: var(--at-orange-500, #ef6820); background: var(--at-orange-50, #fff2eb); }
.option-item input { display: none; }
.opt-ctrl {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 2px solid var(--at-gray-300, #d0d5dd); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; margin-top: 1px;
}
.opt-ctrl.checkbox { border-radius: 6px; }
.option-item.selected .opt-ctrl { border-color: var(--at-orange-500, #ef6820); background: var(--at-orange-500, #ef6820); }
.opt-ctrl::after { content: ''; display: none; }
.opt-ctrl:not(.checkbox)::after { width: 8px; height: 8px; background: white; border-radius: 50%; }
.opt-ctrl.checkbox::after {
  width: 5px; height: 9px; border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.option-item.selected .opt-ctrl::after { display: block; }
.option-text { font-size: 14px; color: var(--at-gray-700, #344054); line-height: 1.5; flex: 1; }
.option-text strong { color: var(--at-gray-900, #101828); display: block; margin-bottom: 2px; }

#fallback-section { display: none; animation: slideDown .4s cubic-bezier(0.16, 1, 0.3, 1); }
#fallback-section.show { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }

.divider { border: none; border-top: 1px solid var(--at-gray-200, #eaecf0); margin: 28px 0; }
.required { color: #d92d20; margin-left: 3px; }

.submit-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #942d1e 0%, #ee6723 48%, #fcb424 100%);
  color: white; font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 16px 48px; border: none; border-radius: 99px; cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 25px rgba(239,104,32,.3);
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(239,104,32,.4); }
.submit-note { color: var(--at-gray-400, #98a2b3); font-size: 13px; margin-top: 16px; }

#success-msg { display: none; text-align: center; padding: 60px 40px; max-width: 760px; margin: 0 auto; background: white; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
#success-msg .check-icon { width: 72px; height: 72px; background: #079455; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 36px; color: white; box-shadow: 0 8px 20px rgba(7,148,85,.3); }
#success-msg h2 { font-size: 24px; font-weight: 800; color: var(--at-gray-900, #101828); margin-bottom: 12px; }
#success-msg p { color: var(--at-gray-600, #475467); line-height: 1.7; }
@media (max-width: 600px) { .card { padding: 24px 20px; } .hero h1 { font-size: 24px; } }

.other-input {
  width: 100%; border: 1.5px solid var(--at-orange-300, #f9a366); border-radius: 10px;
  padding: 12px 16px; font-family: inherit; font-size: 14px; color: var(--at-gray-900, #101828);
  background: var(--at-orange-25, #fff8f5); margin-top: 10px;
  transition: border-color .3s ease, box-shadow .3s ease, opacity .3s ease; outline: none;
  animation: slideDown .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.other-input:focus { border-color: var(--at-orange-500, #ef6820); box-shadow: 0 0 0 4px rgba(239,104,32,.15); }
.other-input::placeholder { color: var(--at-gray-400, #98a2b3); }
