/* ===== WORDPRESS FIXES ===== */
html, body {
  overflow-x: hidden !important;
}

.xinghe-tour-wrapper {
  position: relative !important;
  z-index: 9 !important;
}

body .main-container {
  height: auto !important;
  min-height: 100vh;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
  padding: 20px;
}

/* ===== LAYOUT STRUCTURE ===== */
.main-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 40px);
}

.itinerary-column {
  width: 100%;
  overflow-y: auto;
}

.form-column {
  width: 100%;
  overflow-y: auto;
}

/* ===== DAY CARD STYLES ===== */
.day-card {
  background: #fff;
  border-left: 6px solid #0E386F;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.day-header h2 {
  font-size: 1.2rem;
  color: #0E386F;
  margin-bottom: 15px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.day-text {
  font-size: 14px;
}

.day-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.day-images img {
  width: calc(50% - 5px);
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== PRICING TABLE STYLES ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 25px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 15px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #ddd;
}

.pricing-table th {
  background: #0E386F;
  color: white;
  font-weight: 500;
}

.pricing-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.pricing-table tr:hover {
  background-color: #f1f5ff;
}

.book-btn {
  background: #0E386F;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 14px;
}

.book-btn:hover {
  background: #0a294d;
}

/* ===== COST DESCRIPTION STYLES ===== */
.cost-description {
  background: #fff;
  border-left: 6px solid #0E386F;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.cost-description h3 {
  color: #0E386F;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.cost-description ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.cost-description li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* ===== FORM STYLES ===== */
.booking-form {
  background: #fff;
  border-left: 6px solid #0E386F;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.booking-form h2 {
  color: #0E386F;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  background: #0E386F;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s;
  margin-top: 5px;
}

.submit-btn:hover {
  background: #0a294d;
}

/* ===== QR CODE SECTION STYLES ===== */
.qr-section {
  background: #fff;
  border-left: 6px solid #0E386F;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  text-align: center;
}

.qr-section h3 {
  color: #0E386F;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.qr-codes {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 15px;
  flex-wrap: wrap;
}

.qr-code {
  text-align: center;
}

.qr-code img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.qr-code p {
  font-size: 14px;
  color: #555;
}

/* ===== COMPACT MODAL STYLES ===== */
.booking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 380px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #0E386F;
}

.modal-content h2 {
  color: #0E386F;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-qr-section p,
.modal-form-section p {
  color: #555;
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.modal-qr-codes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.modal-qr-code {
  text-align: center;
}

.modal-qr-code img {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  margin-bottom: 5px;
  border: 1px solid #eee;
}

.modal-qr-code p {
  font-size: 13px;
  color: #666;
}

.modal-or-divider {
  display: flex;
  align-items: center;
  color: #999;
  font-size: 13px;
  margin: 5px 0;
}

.modal-or-divider::before,
.modal-or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
  margin: 0 10px;
}

.modal-form-section input,
.modal-form-section textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.modal-form-section textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-form-section button {
  background: #0E386F;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-form-section button:hover {
  background: #0a294d;
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 992px) {
  .main-container {
    flex-direction: row;
    gap: 30px;
  }
  
  .itinerary-column {
    flex: 7;
    padding-right: 15px;
  }
  
  .form-column {
    flex: 3;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
  }
  
  .content-wrapper {
    flex-direction: row;
    max-height: none;
  }
  
  .day-text {
    flex: 1;
    padding-right: 15px;
  }
  
  .day-images {
    flex: 0 0 240px;
    flex-direction: column;
    gap: 15px;
  }
  
  .day-images img {
    width: 100%;
    height: 180px;
  }
  
  .modal-content {
    max-width: 500px;
  }
  
  .modal-body {
    flex-direction: row;
  }
  
  .modal-qr-section {
    flex: 1;
    padding-right: 20px;
    border-right: 1px solid #eee;
  }
  
  .modal-form-section {
    flex: 1;
    padding-left: 20px;
  }
  
  .modal-or-divider {
    display: none;
  }
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .day-images {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .day-images img {
    width: calc(50% - 8px);
  }
}

/* ===== SMALL MOBILE ADJUSTMENTS ===== */
@media (max-width: 400px) {
  body {
    padding: 15px;
  }
  
  .day-card,
  .cost-description,
  .booking-form,
  .qr-section {
    padding: 15px;
  }
  
  .day-header h2 {
    font-size: 1.1rem;
  }
  
  .modal-content {
    padding: 15px;
  }
  
  .modal-qr-codes {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
.free-consult-form h2 {
  color: #062348;           /* Your preferred dark blue */
  font-size: clamp(1.1rem, 4vw, 1.5rem); /* Responsive scaling */
  font-weight: 800;         /* Max boldness */
  text-align: center;
  margin: 0 auto 15px;      /* Auto margins help center properly */
  max-width: 95%;           /* Prevents edge overflow */
  display: inline-block;    /* Better for text width control */
  padding: 0 10px;          /* Padding ensures breathing room */
  line-height: 1.3;         /* Prevents awkward spacing */
	
}
/* Add this to your existing CSS */
.day-text p, 
.cost-description p, 
.modal-body p:not(.modal-qr-code p) {
  margin-bottom: 1em !important; /* Adds space after each paragraph */
}

/* For better readability in text-heavy sections */
.day-text p + p, 
.cost-description p + p {
  margin-top: 1em !important; /* Extra space between paragraphs */
}
/* Add this to your existing CSS */
.qr-section {
  margin-top: 30px; /* Adds space above the QR section */
}