/* === Header & Menu Layout === */
/* HEADER AND NAVIGATION */
header {
  background-color: #fff;
  padding: 12px 24px;
  box-shadow: none; /* ← Remove shadow */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}




.navbar {
  position: absolute;
  left: 20px;
  top: 12px;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #e60000;
  z-index: 20;
  position: relative;
}


.hamburger:hover {
  transform: scale(1.1);
}

#menu {
  position: absolute;
  top: 60px; /* â¬…ï¸ increased from 50px */
  left: 20px;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
  z-index: 15;
  width: 200px;
}


#menu.expanded {
  max-height: 300px;
}

#menu ul {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

#menu li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
}

#menu li a:hover {
  background-color: #f7f7f7;
}

#menu ul li {
  border-bottom: 1px solid #f0f0f0;
}

#menu ul li:last-child {
  border-bottom: none;
}

#menu ul li a {
  display: block;
  padding: 14px 20px;
  color: #444;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#menu ul li a:hover {
  background-color: #e60000;
  color: white;
}

/* === Modern & Clean Form Layout === */
.form-container {
  max-width: 650px;
  margin: 60px auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

form {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form label {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

form input,
form select,
form textarea {
  background-color: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border: 2px solid #2a9d8f;
  box-shadow: 0 0 6px rgba(42, 157, 143, 0.3);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  background-color: #e60000;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
}

/* Save button style */
#save-button {
  background-color: #2a9d8f;
  color: white;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 10px;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#save-button:hover {
  background-color: #1e7a68;
}

@media (max-width: 600px) {
  form {
    padding: 24px;
  }

  form button,
  form input,
  form select,
  form textarea {
    font-size: 1rem;
  }
}


.hero {
  text-align: center;
  padding: 60px 20px 30px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #222222;  /* <-- cambia da #ffffff */
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555555;  /* <-- cambia da #f1f1f1 */
  max-width: 700px;
  margin: 0 auto;
}


.itinerary-box {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  line-height: 1.6;
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1rem;
  color: #333;
}

.itinerary-box h2 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  color: #444;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3rem;
}

.itinerary-box h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #666;
}

.itinerary-box p {
  margin: 0.4rem 0;
}

#trip-form select {
  appearance: none;
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='16' height='16' fill='%232a9d8f' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

form select:hover {
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}


.response-box {
  max-height: none;
  overflow-y: auto;
  padding: 1.5rem;
  line-height: 1.6;
  white-space: pre-wrap;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 2rem auto;
  max-width: 800px;
  font-size: 1rem;
  color: #333;
}

.day-toggle-group {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.day-btn {
  padding: 12px 24px;
  background: white;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #f5e9dc; /* soft cream-white border */
  color: #d90429; /* deep red text */
}

.day-btn:hover {
  background-color: #f4cccc;
}

.day-btn.active {
  background-color: #d90429;
  color: white;
  border-color: #d90429;
}


.accordion {
  background-color: #d90429;
  color: white;
  cursor: pointer;
  padding: 14px 20px;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  outline: none;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

.accordion:hover,
.accordion.active {
  background-color: #a9031f;
}

.panel {
  background-color: #f9f9f9;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  border-left: 2px solid #ccc;
  border-radius: 0 0 8px 8px;
  margin-bottom: 1rem;
}

.panel pre {
  white-space: pre-wrap;
  padding: 1rem 0;
}


/* General container centering */
.login-container, .register-container {
  max-width: 400px;
  margin: 5vh auto;
  padding: 2rem;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Form fields spacing */
.login-container form, .register-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Center header */
.login-container h1, .register-container h1 {
  text-align: center;
  margin-bottom: 1rem;
}

/* Button styling */
.login-container button,
.register-container button {
  background-color: #e60012;
  color: white;
  padding: 0.8rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover,
.register-container button:hover {
  background-color: #c40010;
}

/* Responsive padding */
@media (max-width: 480px) {
  .login-container, .register-container {
    margin: 2vh auto;
    padding: 1rem;
  }
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top: 2px solid #2a9d8f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
