/* =========================================================
   TUMUGI Tour Page Styles
   =======================================================*/

/* ===== Tour Header ===== */
.tour-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.3s ease;
  font-weight: var(--fw-medium);
}

.back-link:hover {
  color: var(--brand);
}

/* ===== Tour Hero ===== */
.tour-hero {
  background: linear-gradient(135deg, 
    color-mix(in oklab, var(--brand) 12%, var(--bg)) 0%,
    color-mix(in oklab, var(--ok) 8%, var(--surface)) 100%
  );
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 2px solid color-mix(in oklab, var(--brand) 30%, var(--line));
  position: relative;
  overflow: hidden;
}

.tour-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(90, 200, 250, 0.1), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(57, 217, 138, 0.1), transparent 40%);
  pointer-events: none;
}

.tour-hero-inner {
  position: relative;
  z-index: 1;
}

.tour-hero-inner h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.tour-hero-inner h1 i {
  margin-right: 12px;
  color: var(--ok);
}

.tour-hero .hero-subtitle {
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(255,255,255,0.9);
  font-weight: var(--fw-medium);
}

/* ===== Tour Main ===== */
.tour-main {
  padding: 60px 0;
  background: linear-gradient(180deg, 
    var(--bg) 0%, 
    color-mix(in oklab, var(--brand) 5%, var(--bg)) 100%
  );
}

/* ===== Tour Info Section ===== */
.tour-info-section {
  margin-bottom: 60px;
}

.tour-info-section h2 {
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 32px;
  color: var(--brand);
}

.tour-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.location-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
  border-color: color-mix(in oklab, var(--brand) 30%, var(--line));
}

.location-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.location-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}

.location-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Requirements Section ===== */
.requirements-section {
  background: linear-gradient(135deg, 
    rgba(90, 200, 250, 0.05),
    rgba(57, 217, 138, 0.03)
  );
  border: 1px solid rgba(90, 200, 250, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.requirements-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--ok);
}

.requirement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.requirement-item i {
  color: var(--ok);
  font-size: 18px;
  flex-shrink: 0;
}

.requirement-item span {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}

/* ===== Tour Form ===== */
.tour-form-wrapper {
  max-width: 720px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-1);
}

.tour-form-wrapper h2 {
  font-size: 22px;
  margin-bottom: 28px;
  color: #fff;
  text-align: center;
}

.tour-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.95);
  font-weight: var(--fw-medium);
  font-size: 14px;
  letter-spacing: 0.03em;
  min-height: 22px;
}

.form-group .required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(255,107,107,0.15);
  color: var(--danger);
  font-size: 11px;
  border-radius: 4px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(90,200,250,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  height: 46px;
  box-sizing: border-box;
}

.form-group textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8b2c3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input[type="datetime-local"] {
  color-scheme: dark;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--surface-2);
  color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.08);
  border-color: var(--brand);
  box-shadow: 0 0 20px rgba(90,200,250,0.15);
}

.form-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Checkbox */
.checkbox-group {
  margin: 32px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.terms-link {
  color: var(--brand);
  text-decoration: underline;
  margin: 0 4px;
}

.terms-link:hover {
  color: color-mix(in oklab, var(--brand) 80%, #fff);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.btn-secondary {
  padding: 12px 28px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--muted);
  color: #fff;
}

/* Form Message */
.form-message {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  display: none;
}

.form-message i {
  margin-right: 8px;
}

.form-message.success {
  background: rgba(57,217,138,0.1);
  border: 1px solid rgba(57,217,138,0.4);
  color: var(--ok);
}

.form-message.error {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.4);
  color: var(--danger);
}

/* ===== Terms Section ===== */
.terms-section {
  max-width: 700px;
  margin: 60px auto 0;
  padding: 28px;
  background: rgba(20, 24, 33, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.terms-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--warn);
}

.terms-section ul {
  list-style: none;
  padding: 0;
}

.terms-section li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.terms-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--warn);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .tour-form-wrapper {
    padding: 24px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .tour-locations {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .tour-hero {
    padding: 40px 0 30px;
  }
  
  .tour-hero-inner h1 {
    font-size: 22px;
  }
  
  .tour-main {
    padding: 40px 0;
  }
  
  .tour-form-wrapper {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .requirements-section {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}