@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --bg-main: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.55);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.4);
  
  --primary-glow: linear-gradient(135deg, #10B981 0%, #3B82F6 100%); /* Emerald to Blue */
  --secondary-glow: rgba(16, 185, 129, 0.15);
  
  --color-text-main: #F3F4F6;
  --color-text-muted: #9CA3AF;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- RESET & GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(59, 82, 246, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
}

.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* --- HEADER --- */
header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
  background: rgba(9, 13, 26, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFF;
}

/* --- GLASS CONTAINER --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* --- SCREENS --- */
.screen {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.screen.active {
  display: block;
}

/* Screen 1: Intro */
.intro-content {
  text-align: center;
  padding: 2.5rem 1rem;
}

.intro-badge {
  background: var(--secondary-glow);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 99px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intro-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #FFF;
}

.intro-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* --- PROGRESS BAR --- */
.form-progress {
  margin-bottom: 2.5rem;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.step-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.step-indicator.active {
  color: #10B981;
}

.progress-line-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
}

.progress-line-fill {
  height: 100%;
  background: var(--primary-glow);
  width: 0%;
  border-radius: 99px;
  transition: width 0.4s ease-in-out;
}

/* --- FORM ELEMENTS --- */
#travel-form h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #FFF;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.8rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.flex-1 {
  flex: 1;
}

/* Text & Select Inputs */
input[type="number"], select {
  font-family: var(--font-primary);
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #FFF;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

input[type="number"]:focus, select:focus {
  border-color: #10B981;
  background: rgba(255, 255, 255, 0.06);
}

/* Checkbox Cards Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.checkbox-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.checkbox-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.checkbox-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.chk-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-card input[type="checkbox"]:checked ~ .chk-label {
  color: #FFF;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
  border-color: #10B981;
  background: var(--secondary-glow);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

/* Form Navigation */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* --- BUTTONS --- */
.btn {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-elastic);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-glow);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- RESULTS SCREEN --- */
.results-header {
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.results-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.results-header p {
  color: var(--color-text-muted);
}

.destinations-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* Destination Card */
.destination-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.destination-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.dest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

@media (max-width: 500px) {
  .dest-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.dest-title h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
}

.dest-title p {
  font-size: 0.85rem;
  color: #10B981;
  font-weight: 700;
  text-transform: uppercase;
}

.match-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.dest-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Tags grid (Weather and Budget) */
.dest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.dest-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

/* Infos Accordion */
.dest-info-box {
  background: rgba(9, 13, 26, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.info-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-main);
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.info-item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.info-item strong {
  color: var(--color-text-main);
}

/* Action buttons */
.dest-actions {
  display: flex;
  gap: 0.8rem;
}

@media (max-width: 500px) {
  .dest-actions {
    flex-direction: column;
  }
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  flex: 1;
}

.results-actions {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MODAL STYLES --- */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 26, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(17, 24, 39, 0.95) !important;
  border-radius: 24px;
  padding: 2.2rem !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid var(--border-color);
}

.close-button {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-button:hover {
  color: #FFF;
}

.modal-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

/* Transport Toggle Button Groups */
.transport-toggle-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.transport-toggle-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.transport-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.transport-toggle-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

/* Styled select option dropdown */
select {
  font-family: var(--font-primary);
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #FFF;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

select:focus {
  border-color: #10B981;
  background: rgba(255, 255, 255, 0.06);
}

select option {
  background: #0B0F19;
  color: #FFF;
}
