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

body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; }

.tour-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2340 100%);
}

.tour-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: #f8fafc;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* 헤더 */
.tour-header {
  padding: 28px 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2340 100%);
  color: white;
}
.tour-header-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tour-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tour-header-desc {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 2px;
}
.tour-date-badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.tour-badge {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.tour-badge.active {
  background: white;
  color: #1e3a5f;
  border-color: white;
}

/* 폼 */
.tour-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tour-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tour-field input[type="text"],
.tour-field input[type="tel"] {
  width: 100%;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1e293b;
}
.tour-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* 버튼 그룹 (인원, 날짜) */
.tour-btn-group {
  display: flex;
  gap: 6px;
}
.tour-sel-btn,
.tour-date-btn {
  flex: 1;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.tour-sel-btn:active,
.tour-date-btn:active { transform: scale(0.95); }

.tour-sel-btn.active {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}
.tour-date-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* 시간 그리드 */
.tour-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tour-time-btn {
  padding: 12px 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.tour-time-btn:active { transform: scale(0.95); }
.tour-time-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* 에러 */
.tour-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  background: #fef2f2;
  border-radius: 12px;
  padding: 10px 14px;
}

/* 제출 */
.tour-submit-wrap { padding-bottom: 8px; }
.tour-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
  transition: opacity 0.2s, transform 0.15s;
}
.tour-submit-btn:active { transform: scale(0.98); opacity: 0.9; }
.tour-footer {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* 성공 화면 */
.tour-success {
  padding: 40px 24px;
  text-align: center;
}
.tour-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.tour-success h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.tour-success p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}
.tour-summary {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.tour-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 6px;
}
.tour-summary p:last-child { margin-bottom: 0; }
.tour-summary p span:first-child { color: #94a3b8; }
.tour-summary p span:last-child { font-weight: 600; }
.tour-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
