/* Reset & basics */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 20px;
  background: #f9f9f9;
  color: #222;
  line-height: 1.4;
}

/* Container */
.itinerary-container {
  max-width: 980px;
  margin: auto;
  padding-bottom: 40px;
}

/* Day card */
.day-card {
  width: 965px;
  max-width: 100%;
  background: #fff;
  border-left: 6px solid #0E386F;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 20px 25px;
  margin-bottom: 30px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Day header */
.day-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #0E386F;
  margin: 0;
}

/* Wrapper for text and images */
.content-wrapper {
  display: flex;
  gap: 18px;
  /* Keep height limited so text scrolls if needed */
  max-height: 520px;
}

/* Text content */
.day-text {
  flex: 1 1 auto;
  min-width: 0; /* Allow shrinking */
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.45;
  overflow-y: auto;
  max-height: 520px;
  padding-right: 10px;
  color: #333;
}

/* Lists styling */
.day-text ul, .day-text ol {
  padding-left: 20px;
  margin: 8px 0 12px 0;
  color: #444;
  font-size: 13.5px;
}

/* Images container */
.day-images {
  flex: 0 0 242px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

/* Individual images */
.day-images img {
  width: 242px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ====== Table Wrapper - horizontal scroll if needed ====== */
.table-wrapper {
  overflow-x: auto;
  margin: 40px auto 60px auto;
  max-width: 100%;
}

/* ====== Table Styles ====== */
table.pricing-table {
  border-collapse: collapse;
  width: 90%;
  max-width: 900px;
  margin: 40px auto 60px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}
table.pricing-table th, table.pricing-table td {
  border: 1px solid #ddd;
  padding: 12px 18px;
  text-align: center;
  color: #0e386f;
}
table.pricing-table th {
  background-color: #0e386f;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}
a.book-btn {
  text-decoration: none;
  color: white;
  background-color: #0e386f;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}
a.book-btn:hover {
  background-color: #09436a;
}
/* ====== Modal Styles ====== */
#bookingModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 15px;
}

#bookingModal .modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 600px; /* smaller modal width */
  width: 92%;
  padding: 22px 20px;
  position: relative;
  box-shadow: 0 6px 18px rgba(14, 56, 111, 0.1);
  box-sizing: border-box;
  text-align: center;
}

/* ====== Close Button ====== */
#bookingModal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #0e386f;
  cursor: pointer;
  border: none;
  background: none;
}

/* ====== Heading ====== */
.form-container h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #0e386f;
  margin-bottom: 15px;
  font-family: 'Georgia', serif;
}
.form-container h2::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #0e386f;
  display: block;
  margin: 8px auto 0 auto;
  border-radius: 2px;
  opacity: 0.6;
}
.form-container h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0e386f;
  margin-bottom: 12px;
  text-align: left;
}

/* ====== Travel Form Layout ====== */
.travel-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.travel-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #444;
  font-size: 0.88rem;
}

.travel-form label.full-width {
  grid-column: span 2;
}

/* ====== Inputs, Select, Textarea ====== */
.travel-form input[type="text"],
.travel-form input[type="email"],
.travel-form select,
.travel-form textarea {
  width: 100%;
  padding: 6px 10px;
  margin-top: 3px;
  border: 1.3px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.travel-form input[readonly] {
  background-color: #f2f3f5;
  cursor: not-allowed;
}

.travel-form input:focus,
.travel-form select:focus,
.travel-form textarea:focus {
  border-color: #0e386f;
  outline: none;
  box-shadow: 0 0 3px rgba(14, 56, 111, 0.15);
}

/* ====== Checkbox & Submit ====== */
.travel-form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.travel-form button[type="submit"] {
  background-color: #0e386f;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  padding: 10px 0;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  box-shadow: 0 2px 6px rgba(14, 56, 111, 0.15);
  margin-top: 6px;
}

.travel-form button[type="submit"]:hover {
  background-color: #0a294d;
}

/* ====== Responsive (Mobile) ====== */
@media (max-width: 600px) {
  #bookingModal .modal-content {
    padding: 20px 15px;
  }

  .form-container h2 {
    font-size: 1.2rem;
  }

  .travel-form {
    grid-template-columns: 1fr;
  }

  .travel-form label.full-width {
    grid-column: span 1;
  }
}

/* Cost Description Section */
.cost-description {
  width: 965px;
  max-width: 100%;
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  font-size: 14px;
  color: #333;
  margin: 0 auto 50px auto;
}

.cost-description h3 {
  color: #0E386F;
  margin-bottom: 15px;
}

.cost-description h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: #0E386F;
}

.cost-description p,
.cost-description ul {
  margin-bottom: 12px;
  line-height: 1.5;
}

.cost-description ul {
  padding-left: 20px;
}
