/* travel_budget_calculator.css */

/* === Base Mobile Layout === */
main {
  padding: 1.5rem;
  background-color: #f5f5dc; /* beige */
  font-family: 'Inter', sans-serif;
  color: #1c1c1c;
  position: relative;
}

/* === Floating Ad Bar (LEFT) - Visible on Desktop Only === */
.ad-bar {
  position: fixed;
  top: 15rem;
  left: 0.79rem;
  background-color: #0d1b2a; /* navy */
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 8px;
  z-index: 1000;
  max-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .ad-bar {
    display: none;
  }
}

/* === Form Content Boxes === */
.content {
  max-width: 850px;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* === Each Section Box === */
form section {
  background-color: #ffffff;
  border: 1px solid #e0e0da;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* === Section Headings === */
form section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 1.2rem;
  color: #0d1b2a;
}

/* === Labels & Inputs === */
label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
  color: #0d1b2a;
  font-size: 1rem;
}

input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #f5c243;
  box-shadow: 0 0 0 3px rgba(245, 194, 67, 0.4); /* gold glow */
}

small {
  font-size: 0.9rem;
  color: #444;
  margin-top: -0.35rem;
  margin-bottom: 1.25rem;
  display: block;
}

/* === Button === */
button[type="submit"] {
  margin: 2rem auto 1rem auto;
  display: block;
  padding: 0.75rem 1.25rem;
  background-color: #f5c243; /* gold */
  color: #0d1b2a;
  font-weight: 700;
  border-radius: 8px;
  font-size: 1.9rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #001f3f; /* deep navy */
  color: #ffffff;
}

/* === Divider === */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.7rem 0;
}

/* === Ad Popup (Before Result) === */
.ad-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f5f5dc; /* beige */
  border: 2px dashed #f5c243;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  z-index: 2000;
}

.ad-popup.hidden {
  display: none;
}

#adBox p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #1c1c1c;
}

#adBox button {
  padding: 0.75rem 1.5rem;
  background-color: #f5c243;
  color: #0d1b2a;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

#adBox button:hover {
  background-color: #001f3f;
  color: #fff;
}

.hidden {
  display: none;
}

.disclosure-box {
  font-size: 0.85em;
  color: #777;
  text-align: center;
  margin: 40px auto 30px auto;
  max-width: 680px;
  padding: 0 1rem;
  line-height: 1.6;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* === Responsive Enhancements === */
@media (min-width: 768px) {
  form section {
    padding: 3rem;
  }

  form section h2 {
    font-size: 2rem;
  }

  label,
  input,
  select,
  small {
    font-size: 1.05rem;
  }

  .ad-popup p,
  .ad-popup button {
    font-size: 1.1rem;
  }
}
