/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0A0A0A;
  --card: #111111;
  --card-border: #1E1E1E;
  --orange: #F97316;
  --orange-hover: #EA6A0E;
  --orange-glow: rgba(249, 115, 22, 0.15);
  --text: #F1F1F1;
  --text-muted: #888888;
  --text-dim: #555555;
  --input-bg: #1A1A1A;
  --input-border: #2A2A2A;
  --input-focus: #F97316;
  --danger: #EF4444;
  --success: #22C55E;
  --radius: 10px;
  --radius-sm: 6px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  padding: 32px 20px 0;
}

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--orange);
}

.header-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* ===== PROGRESS BAR ===== */
.progress-wrap {
  max-width: 480px;
  margin: 28px auto 36px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--card-border);
}

.progress-steps .line-fill {
  position: absolute;
  top: 15px;
  left: 15%;
  height: 2px;
  background: var(--orange);
  transition: width 0.6s ease;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.step.done .step-circle {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 6px;
  font-weight: 500;
}

.step.active .step-label,
.step.done .step-label {
  color: var(--text-muted);
}

/* ===== SECTION / CARD ===== */
.form-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.form-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

/* ===== FORM ELEMENTS ===== */
.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

label .req {
  color: var(--orange);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

input.error,
select.error,
textarea.error {
  border-color: var(--danger);
}

.error-msg {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.error-msg.show {
  display: block;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Row layouts */
.row {
  display: grid;
  gap: 12px;
}

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

@media (max-width: 540px) {
  .row-3, .row-2 { grid-template-columns: 1fr; }
}

/* ===== CHECKBOXES (services) ===== */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 540px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.checkbox-item:hover {
  border-color: var(--text-dim);
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--input-border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.checkbox-item input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item span {
  font-size: 0.88rem;
  color: var(--text);
}

/* Other service field */
.other-field {
  margin-top: 10px;
  display: none;
}

.other-field.show {
  display: block;
}

/* ===== PACKAGE CARDS ===== */
.package-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-card {
  position: relative;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 52px;
  cursor: pointer;
  transition: all 0.2s;
}

.package-card:hover {
  border-color: var(--text-dim);
}

.package-card.selected {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.05);
}

.package-card input[type="radio"] {
  appearance: none;
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--input-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
}

.package-card input[type="radio"]:checked {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px var(--input-bg);
}

.package-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}

.package-price {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.package-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
  display: block;
  width: 100%;
  padding: 15px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--orange-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== CONTRACT PAGE ===== */
.summary-box {
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(249,115,22,0.02));
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.summary-box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary-box .value {
  font-size: 1.15rem;
  font-weight: 700;
}

.summary-box .value .orange {
  color: var(--orange);
}

.contract-body {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 20px;
  max-height: 520px;
  overflow-y: auto;
}

.contract-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contract-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 20px 0 8px;
}

.contract-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}

.contract-body::-webkit-scrollbar {
  width: 6px;
}

.contract-body::-webkit-scrollbar-track {
  background: var(--card);
}

.contract-body::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 3px;
}

/* Signature section */
.sig-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.sig-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
}

.agree-row input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  border: 2px solid var(--input-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.agree-row input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.agree-row input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 1px auto 0;
}

.agree-row span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ip-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ip-note svg {
  min-width: 14px;
}

/* ===== CONFIRMATION PAGE ===== */
.confirm-hero {
  text-align: center;
  padding: 20px 0 32px;
}

.check-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(249,115,22,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.check-icon svg {
  width: 36px;
  height: 36px;
  color: var(--orange);
}

.confirm-hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.confirm-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.next-steps {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.next-steps h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 5px;
  line-height: 1.5;
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.summary-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.88rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .lbl {
  color: var(--text-muted);
}

.summary-row .val {
  font-weight: 600;
  text-align: right;
}

.contact-box {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.contact-box a {
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--card-border);
  margin-top: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-section,
.summary-box,
.contract-body,
.sig-section,
.next-steps,
.summary-card,
.confirm-hero {
  animation: fadeUp 0.45s ease both;
}

.form-section:nth-child(2) { animation-delay: 0.05s; }
.form-section:nth-child(3) { animation-delay: 0.1s; }
.form-section:nth-child(4) { animation-delay: 0.15s; }
.form-section:nth-child(5) { animation-delay: 0.2s; }
.form-section:nth-child(6) { animation-delay: 0.25s; }
.form-section:nth-child(7) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
  .container { padding: 0 14px 40px; }
  .form-section { padding: 22px 18px; }
  .contract-body { padding: 24px 18px; }
  .header { padding-top: 24px; }
  .logo { font-size: 1.4rem; }
}
