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

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
}

.q-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.q-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 18px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.q-header .q-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.q-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 2px;
}

.q-logo-kr {
  font-size: 1.2rem;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
  line-height: 1;
}

.q-logo-en {
  font-size: 0.6rem;
  font-weight: 600;
  color: #74C69D;
  letter-spacing: 3px;
}

.q-back {
  font-size: 0.875rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.q-back:hover { color: #111; }

/* PROGRESS */
.q-progress-bar {
  height: 6px;
  background: #f0f0f0;
  position: relative;
  max-width: 680px;
  margin: 2rem auto 0;
}

.q-progress-fill {
  height: 100%;
  background: #74C69D;
  transition: width 0.4s ease;
  width: 14%;
}

.q-progress-percent {
  position: absolute;
  top: 10px;
  background: #74C69D;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  transform: translateX(-50%);
  left: 14%;
  transition: left 0.4s ease;
  white-space: nowrap;
}

/* FORM WRAP (embedded in page) */
.q-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 2rem;
}

.q-step { display: block; }
.q-step.hidden { display: none; }

.q-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: #111;
}

.q-desc {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.q-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 1.75rem 0 1rem;
}

.q-section-desc {
  font-size: 0.825rem;
  color: #aaa;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* DATE */
.q-date-box {
  background: #fafafa;
  border: 1.5px solid #efefef;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.q-date-input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  margin-bottom: 1rem;
  color: #111;
}

.q-date-input:focus { border-color: #74C69D; }

.q-date-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: #74C69D;
}

/* OPTION CARDS (grid) */
.q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.q-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.q-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.q-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.q-option-card {
  cursor: pointer;
  display: block;
}

.q-option-card input { display: none; }

.q-option-inner {
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  background: #fff;
}

.q-option-inner:hover {
  border-color: #74C69D;
  background: #f6fdf9;
}

.q-option-card input:checked + .q-option-inner {
  border-color: #74C69D;
  background: #f0faf5;
  color: #111;
  font-weight: 700;
}

.q-opt-icon {
  font-size: 1.6rem;
}

/* REGION */
.q-region-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  border: 1.5px solid #efefef;
  border-radius: 16px;
  overflow: hidden;
}

.q-region-left {
  background: #fafafa;
  border-right: 1px solid #efefef;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.q-region-btn {
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.q-region-btn:hover { background: #f0faf5; color: #111; }

.q-region-btn.active {
  background: #74C69D;
  color: #fff;
  font-weight: 700;
}

.q-region-right {
  padding: 1rem;
  max-height: 360px;
  overflow-y: auto;
}

.q-district-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.q-district-item {
  padding: 10px 8px;
  border: 1.5px solid #efefef;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #555;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.q-district-item:hover { border-color: #74C69D; color: #111; }
.q-district-item.selected {
  border-color: #74C69D;
  background: #f0faf5;
  color: #111;
  font-weight: 700;
}

/* SIZE INPUT */
.q-size-input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  max-width: 240px;
}

.q-size-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: inherit;
  color: #111;
  width: 100px;
}

.q-size-unit {
  font-size: 1rem;
  color: #888;
  font-weight: 500;
}

/* COUNTER */
.q-counter-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.q-counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 120px;
  background: #fafafa;
  border: 1.5px solid #efefef;
  border-radius: 16px;
  padding: 1.5rem 1rem;
}

.q-counter-label {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.q-counter {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.q-cnt-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #555;
}

.q-cnt-btn:hover {
  border-color: #74C69D;
  color: #74C69D;
}

.q-cnt-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111;
  min-width: 32px;
  text-align: center;
}

/* SPACE ICON */
.q-space-icon {
  font-size: 2rem;
  color: #ccc;
  display: block;
  margin-bottom: 0.25rem;
}

.q-option-card input:checked + .q-option-inner .q-space-icon {
  color: #74C69D;
}

/* VERTICAL OPTIONS */
.q-options-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.q-option-row { cursor: pointer; display: block; }
.q-option-row input { display: none; }

.q-option-row-inner {
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.q-option-row-inner:hover { border-color: #74C69D; background: #f6fdf9; }

.q-option-row input:checked + .q-option-row-inner {
  border-color: #74C69D;
  background: #f0faf5;
  color: #111;
  font-weight: 700;
}

.q-option-row input:checked + .q-option-row-inner::before {
  content: '✓';
  color: #74C69D;
  font-weight: 900;
  font-size: 1rem;
}

.q-badge {
  font-size: 0.75rem;
  background: #74C69D;
  color: #fff;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}

/* FORM */
.q-form-group {
  margin-bottom: 1.25rem;
}

.q-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.q-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: border-color 0.2s;
}

.q-input:focus { border-color: #74C69D; }

.q-submit-btn {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.q-submit-btn:hover { background: #333; }

/* DONE */
.q-done {
  text-align: center;
  padding: 3rem 0;
}

.q-done-icon { font-size: 4rem; margin-bottom: 1.5rem; }

.q-done h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.q-done p { color: #666; line-height: 1.8; }

/* NAV BUTTONS */
.q-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-bottom: 1rem;
}

.q-prev-btn, .q-next-btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
}

.q-prev-btn {
  background: #fff;
  color: #888;
  border: 1.5px solid #ddd;
}

.q-prev-btn:hover { border-color: #999; color: #111; }
.q-prev-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.q-next-btn {
  background: #74C69D;
  color: #fff;
  border: none;
}

.q-next-btn:hover { background: #5aad85; }

@media (max-width: 600px) {
  .q-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .q-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .q-grid-2 { grid-template-columns: 1fr 1fr; }
  .q-region-wrap { grid-template-columns: 1fr; }
  .q-region-left { flex-direction: row; flex-wrap: wrap; gap: 0.25rem; }
  .q-region-btn { padding: 10px 12px; font-size: 0.875rem; }
  .q-district-list { grid-template-columns: repeat(2, 1fr); }
  .q-counter-group { justify-content: center; }
  .q-title { font-size: 1.3rem; }
  .q-prev-btn, .q-next-btn { min-width: 110px; padding: 12px 20px; font-size: 0.9rem; }
  .q-size-input { max-width: 100%; }
  .q-progress-bar { margin-top: 1.5rem; }
}
