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

:root {
  --bg-1: #eaf4fb;
  --bg-2: #d8e8f7;
  --bg-3: #f5fbff;
  --text-main: #14233b;
  --text-soft: #5f7087;
  --line: rgba(255, 255, 255, 0.45);
  --shadow: 0 12px 36px rgba(65, 102, 138, 0.12);
  --blue-dark: #3f7dc4;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  position: relative;
  overflow-x: hidden;
  padding: 28px 20px;
}

.bg-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
  z-index: 0;
}

.circle-one {
  width: 220px;
  height: 220px;
  background: #ffffff;
  top: 180px;
  left: 120px;
}

.circle-two {
  width: 260px;
  height: 260px;
  background: #95c2ea;
  top: 120px;
  right: 90px;
}

.circle-three {
  width: 280px;
  height: 280px;
  background: #7db3e7;
  bottom: 70px;
  right: 120px;
}

.circle-four {
  width: 230px;
  height: 230px;
  background: #dff1ff;
  bottom: 60px;
  left: 220px;
}

.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow), inset 0 0 20px rgba(255, 255, 255, 0.18);
  border-radius: 28px;
}

.hero {
  padding: 30px 34px;
  margin-bottom: 24px;
}

.hero-label {
  font-size: 14px;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.hero-subtitle {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 15px;
}

.planner-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 22px;
  align-items: start;
}

.planner-form,
.planner-result {
  padding: 24px;
}

.section-header,
.result-top {
  margin-bottom: 22px;
}

.section-header h2,
.result-top h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-header p,
.result-top p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14px;
}

.result-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.44);
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  transition: 0.25s ease;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.14);
}

.form-group input:focus {
  border-color: rgba(95, 158, 219, 0.6);
  box-shadow: 0 0 0 4px rgba(95, 158, 219, 0.12);
}

.trip-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.trip-card {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 22px;
  padding: 18px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.18);
  min-height: 140px;
}

.trip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 158, 219, 0.55);
}

.trip-card.active {
  background: rgba(217, 235, 251, 0.55);
  border-color: rgba(63, 125, 196, 0.75);
  box-shadow: 0 8px 20px rgba(95, 158, 219, 0.14), inset 0 0 16px rgba(255, 255, 255, 0.2);
}

.trip-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.46);
  font-size: 26px;
  margin-bottom: 14px;
}

.trip-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.trip-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.action-buttons button {
  border: none;
  border-radius: 16px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #6faee4, #4d8fd3);
  color: white;
  box-shadow: 0 10px 24px rgba(77, 143, 211, 0.24);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.48);
  color: var(--blue-dark);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.ghost-btn {
  background: rgba(20, 35, 59, 0.08);
  color: var(--text-main);
}

.action-buttons button:hover {
  transform: translateY(-2px);
}

.message-box {
  margin-top: 16px;
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.message-box.error {
  display: block;
  background: rgba(255, 226, 226, 0.72);
  color: #b34141;
}

.message-box.success {
  display: block;
  background: rgba(222, 248, 230, 0.72);
  color: #2f7b4c;
}

.message-box.info {
  display: block;
  background: rgba(223, 240, 255, 0.72);
  color: #336fae;
}

.result-container {
  min-height: 650px;
}

.empty-state {
  min-height: 460px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(95, 158, 219, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  text-align: center;
}

.empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.empty-state p {
  max-width: 430px;
  color: var(--text-soft);
  line-height: 1.8;
}

.result-grid {
  display: grid;
  gap: 18px;
}

.destination-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.14);
}

.destination-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.destination-flag {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.destination-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-card h3 {
  font-size: 30px;
  margin-bottom: 6px;
}

.destination-card .country-note {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.info-box,
.feature-box,
.section-card,
.itinerary-day {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.14);
}

.info-box {
  padding: 14px;
}

.info-box span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 7px;
}

.info-box strong,
.info-box small {
  display: block;
  line-height: 1.5;
}

.info-box strong {
  font-size: 14px;
}

.info-box small {
  font-size: 12px;
  color: var(--text-soft);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
}

.feature-box {
  padding: 18px;
}

.feature-box h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-box p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14px;
}

.section-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.section-card {
  padding: 20px;
}

.section-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.list-grid {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 12px;
}

.list-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.list-item h4 {
  margin-bottom: 5px;
  font-size: 15px;
}

.list-item p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.budget-good {
  color: #2f7b4c;
}

.budget-medium {
  color: #ae7b33;
}

.budget-bad {
  color: #b44b4b;
}

.itinerary-wrapper {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.itinerary-wrapper h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.itinerary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.itinerary-day {
  padding: 18px;
}

.itinerary-day h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.day-slot {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.day-slot span {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--blue-dark);
  font-weight: 700;
}

.day-slot p {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1150px) {
  .planner-layout {
    grid-template-columns: 1fr;
  }

  .section-columns {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .itinerary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  body {
    padding: 16px 12px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .planner-form,
  .planner-result,
  .hero {
    padding: 18px;
    border-radius: 22px;
  }

  .trip-type-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .itinerary-grid {
    grid-template-columns: 1fr;
  }
}