/**
Theme Name: Yazdvoyage Child theme 
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yazdvoyage-child-theme
Template: astra
*/

/* ============================== */
/* ========== GLOBAL =========== */
/* ============================== */
html {
  scroll-behavior: smooth;
}





/* ============================== */
/* ========== FROM  17:60 =========== */
/* ============================== */


.wpb_wrapper > div p.label,
.wpb_wrapper > div h3.label {
  margin: 0 !important;      /* remove default margin */
  padding-right: 150px !important;     /* remove any padding */
  line-height: 1 !important; /* remove extra line-height space */
}


/* ============================== */
/* === TOUR BOOKING FORM CSS === */
/* ============================== */
.tour-booking-form .wpcf7 input[type="text"],
.tour-booking-form .wpcf7 input[type="email"],
.tour-booking-form .wpcf7 input[type="tel"],
.tour-booking-form .wpcf7 select,
.tour-booking-form .wpcf7 textarea {
  padding-left: 35px;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 18px 18px;
  box-sizing: border-box;
  width: 100%;
}

/* === Field Icons === */
.tour-booking-form input[name="your-name"] {
  background-image: url('/wp-content/uploads/icons/user.svg');
}
.tour-booking-form input[name="your-email"] {
  background-image: url('/wp-content/uploads/icons/email.svg');
}
.tour-booking-form input[name="tel-931"] {
  background-image: url('/wp-content/uploads/icons/phone.svg');
}
.tour-booking-form select[name="tour-date"] {
  background-image: url('/wp-content/uploads/icons/calendar.svg');
}
.tour-booking-form select[name="number-of-people"] {
  background-image: url('/wp-content/uploads/icons/group.svg');
}
.tour-booking-form textarea[name="your-message"] {
  background-image: url('/wp-content/uploads/icons/message.svg');
}

/* === People Counter === */
.tour-booking-form .people-counter {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Flex layout for counter */
.counter-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;  /* vertically center all items */
  justify-content: center; /* horizontally center within container if needed */
  gap: 10px; /* space between buttons and number */
}

.counter-wrapper > p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  min-height: 0 !important; /* just in case some theme sets a min-height */
}

/* Buttons and number */
.counter-wrapper button,
.counter-wrapper #people-count {
  display: inline-flex; /* inline-flex is fine too */
  align-items: center;
  justify-content: center;
}

/* Optional: style buttons */
.counter-btn {
  padding: 6px 16px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px; /* rounded corners */
  border: 1px solid #ccc; /* optional border */
  background-color: #f0fdfd; /* optional */
}

/* Number styling */
#people-count {
  min-width: 24px; /* keeps number from being too small */
  text-align: center;
  font-weight: bold;
}

.people-input {
  display: none;
}
#tour-name {
  display: none !important;
}

/* === Departure Date Field === */
#tour-date {
  color: #000;
  background-color: #fff;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* === Info Tooltip (next to departure date) === */
/* Make label a block but keep text inline */
.form-group label {
  display: flex;           /* use flex to align text + icon */
  align-items: center;     /* vertically center text and icon */
  gap: 6px;                /* small space between text and icon */
  font-weight: 500;
  position: relative;      /* for tooltip positioning */
  font-size: 18px;
}

/* Icon styling */
label .info-icon {
  position: relative;      /* no more absolute */
  background: turquoise;
  border-radius: 50%;
  padding: 0 4px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip */
label .tooltip-box {
  display: none;
  position: absolute;
  background: #f0fdfd;;
  color: #2171AD;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  top: -35px;      /* above the icon */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 999;
}

/* ============== Price Display ============= */
.price-box {
  margin-top: 0px;
  font-size: 16px;
  background: #f0fdfd;
  padding: 5px 10px 0px 20px;
  border-radius: 8px;
  color: #2d3e50;
  max-width: 600px;
line-height: 1.5 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.p-price {
  font-weight: 600;
  margin-bottom: 5px;
}
.num {
  font-size: 20px;
  color: #111111;
  font-weight: bold;
}

/* ============== Price Display currency-selector  ============= */
.currency-selector {
  margin: 15px 0;
  display: absolute;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.currency-selector label {
  font-weight: 600;
}

.currency-selector select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.currency-selector select:hover {
  border-color: #666;
}



/* ======== Lowest Price Line === */
.lowest-price-line {
  font-size: 1.6rem;
  color: #40e0d0;
  font-weight: bold;
  margin: 10px 0 5px;
}
.lowest-price-line span {
  font-size: 1.8rem;
  font-weight: bold;
}

/* === Total Price Text === */
.tour-booking-form .total-price {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}


/* === Submit & WhatsApp Buttons === */
.tour-booking-form .wpcf7-submit,
.tour-booking-form .whatsapp-button {
  display: inline-block;
  background-color: #25d366 !important;
  color: white !important;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  margin-top: 15px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.tour-booking-form .wpcf7-submit:hover,
.tour-booking-form .whatsapp-button:hover {
  background-color: #1ebd5a !important;
}

/* === Force Full Width Inputs === */
input#tour-date,
.wpcf7 input.full-width,
.form-group input.full-width {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box;
  display: block;
  font-size: 16px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* === Responsive Fixes === */
@media (max-width: 600px) {
  .tour-booking-form .people-counter {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .tour-booking-form .wpcf7 input,
  .tour-booking-form .wpcf7 select,
  .tour-booking-form .wpcf7 textarea {
    font-size: 16px;
  }
  .tour-booking-form .wpcf7-submit,
  .tour-booking-form .whatsapp-button {
    width: 100%;
    text-align: center;
  }
}

/* Hide Astra's default mobile hamburger button */
.ast-button-wrap,
.ast-mobile-menu-trigger-minimal {
  display: none !important;
}


/* === START: Custom Menu Styles (Clean Final Version) === */


/* Easy spacing control */
:root {
  --nav-item-pad-y: 8px;
  --nav-item-pad-x: 10px;
  --nav-item-gap:   0px;   /* reduce to tighten horizontal spacing */
  --nav-font-size:  16px;
  --nav-font-weight:500;
}

.main-header {
  width: 100%;
  background:#fff;
  margin:0;
  padding:0;
  border:none;
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  padding:5px 0;
}

.custom-menu-container {
  max-width:1200px;
  width:100%;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.custom-logo-title {
  display:flex;
  align-items:center;
  gap:10px;
  padding-left:20px;
}

.custom-logo {
  max-height:40px;
  height:auto;
  width:auto;
}

.menu-toggle {
  display:none;
  background:none;
  border:none;
  font-size:1.5em;
  line-height:1;
  color:#333;
  cursor:pointer;
  padding:4px 8px;
}

/* Base nav list */
.nav-links {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:var(--nav-item-gap);
  flex-wrap:wrap;
  position:relative;
  z-index:1000;
}

.nav-links li {
  position:relative;
  margin:0;
  padding:0;
}

.nav-links li a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:var(--nav-item-pad-y) var(--nav-item-pad-x);
  box-sizing:border-box;
  color:#333;
  text-decoration:none;
  font-size:var(--nav-font-size);
  font-weight:var(--nav-font-weight);
  letter-spacing:0.5px;
  transition:all 0.2s ease;
}

.nav-links li a:hover {
  text-decoration:underline;
  color:#007BFF;
  transform:scale(1.05);
}

/* Desktop dropdowns */
.has-dropdown > ul {
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:180px;
  list-style:none;
  margin:0;
  padding:10px 0;
  background:#effcfc;
  border-radius:5px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  z-index:999;
  transition:opacity .15s ease;
}

.has-dropdown:hover > ul {
  display:block;
}

.has-dropdown > ul li a {
  display:block;
  padding:8px 16px;
  white-space:nowrap;
}

/* Social icon strip */
.social-icons {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  padding-right:16px;
}

.social-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  transition:transform .2s ease, box-shadow .2s ease;
}

.social-icon svg {
  width:20px;
  height:20px;
  display:block;
}

.social-icon:hover {
  transform:scale(1.1);
  box-shadow:0 0 6px rgba(0,0,0,.15);
}

/* ----------- MOBILE ----------- */
@media (max-width:768px) {
  .menu-toggle {
    display:block;
    background:#07e9f3;
    border-radius:4px;
    padding:6px 10px;
  }

  .nav-links {
    display:none;
    flex-direction:column;
    width:100%;
    background:#fff;
    position:absolute;
    top:60px;          /* adjust if header taller */
    left:0;
    z-index:999;
    border-top:1px solid #ddd;
    padding:1em 0;
    gap:0;             /* no gaps between stacked items */
  }

  .nav-links.active {
    display:flex;
  }

  .nav-links li {
    width:100%;
    border-bottom:1px solid #eee;
  }

  .nav-links li a {
    padding:10px 20px;
    font-size:14px;
    font-weight:600;
    color:#222;
  }

  /* Mobile accordion submenus (hidden by default) */
  .has-dropdown > ul {
    position:static;
    display:none;
    background:#bbf9f9;
    box-shadow:none;
    padding:0 0 0 20px;
    margin:0;
    max-height:none;
    opacity:1;
    visibility:visible;
  }
  .has-dropdown.open > ul,
  .has-dropdown > ul.active {
    display:block;
  }

  /* Social icons under menu (if moved in markup) */
  .social-icons {
    justify-content:center;
    margin-top:6px;
    padding-right:3px;
    gap:8px;
  }

  .social-icon {
    width:30px;
    height:30px;
  }

  .social-icon svg {
    width:18px;
    height:18px;
  }
}

/* ----------- DESKTOP ONLY ----------- */
@media (min-width:769px) {
  .menu-toggle { display:none; }
  .nav-links   { display:flex !important; flex-direction:row; position:static; }
  .has-dropdown { position:relative; }
  /* hover behavior handled above */
}

/* Astra compatibility: hide built-in header when using custom */
.ast-header-break-point .main-header-bar,
.ast-header-break-point .ast-mobile-header-wrap {
  display:none !important;
}

/* === END: Custom Menu Styles === */

/* === STEP 2 LAYOUT start ================================================== */
/* === STEP 2 LAYOUT ================================================== */
/* ===================== STEP 2 LAYOUT GLOBAL ===================== */
.submission-page-wrapper,
.entry-content .submission-page-wrapper,
.site-content .submission-page-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important; /* form | summary */
  gap: 34px !important;
  align-items: start;
  margin: 10px auto 0 auto !important;
  max-width: 1400px !important;
  padding: 0 15px;
  position: relative; /* anchor for absolute if we re-enable JS */
}

/* ----- Desktop sticky behavior (CSS-only baseline) ----- */
.submission-summary {
  position: sticky;
  top: 100px;
  height: max-content;
  z-index: 2; /* keeps above form edges */
}



/* ===================== MOBILE OVERRIDES ===================== */
@media (max-width: 768px) {

  /* collapse grid to single column */
  .submission-page-wrapper,
  .entry-content .submission-page-wrapper,
  .site-content .submission-page-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* summary becomes a normal block above the form */
  .submission-summary {
    order: -1;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-bottom: 20px;
    z-index: auto;
  }
}

/* ===================== SUMMARY BOX STYLING ===================== */
.submission-summary .summary-inner {
  border: 2px solid #1abc9c;
  padding: 20px 22px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 18px;
  line-height: 1.8;
  color: #004d4d;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.08);
}
.submission-summary h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.2;
  color: #006d6d;
  text-align: left;
}
.submission-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.submission-summary ul li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.submission-summary ul li strong {
  color: #006d6d;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 10px;
}
.submission-summary ul li span {
  flex: 1;
  text-align: right;
}
/* BIG total */
.submission-summary ul li.summary-total-line strong,
.submission-summary ul li.summary-total-line span {
  font-size: 20px;
  font-weight: 800;
  color: #006d6d;
}

/* ===================== MAIN FORM STYLING ===================== */
.submission-main .cf7-styled-form {
  max-width: none !important;
  width: 100%;
  margin: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #1abc9c;
  line-height: 1.3;
  padding: 10px 12px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.1);
}

.submission-main .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.submission-main .form-group.half {
  flex: 1 1 calc(50% - 20px);
  min-width: 320px;
}

.submission-main .form-group.full {
  flex: 1 1 100%;
}

.submission-main .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111111;
  line-height: 2.3;
  font-size: 18px;
}
.submission-main .form-group label i {
  margin-right: 6px;
  color: #1abc9c;
}

.submission-main .form-group input[type="text"],
.submission-main .form-group input[type="tel"],
.submission-main .form-group input[type="email"],
.submission-main .form-group select,
.submission-main .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.4;
}

/* CF7 radio group clean-up */
.submission-main .wpcf7-list-item {
  display: block;
  margin: 6px 0;
}
.submission-main .wpcf7-list-item label {
  font-weight: 400;
  margin-bottom: 0;
  min-width: 90px;
}

/* Acceptance box spacing */
.submission-main .wpcf7-acceptance .wpcf7-list-item-label {
  font-weight: 400;
}

/* Submit button */
.submission-main .submit-wrapper {
  text-align: right;
  margin-top: 30px;
}
.submission-main .wpcf7-submit {
  background-color: #28a745;
  color: #fff;
  font-size: 20px;
  border-radius: 20px;
  padding: 20px 40px;
  cursor: pointer;
  border: none;
  transition: filter .15s ease;
}
.submission-main .wpcf7-submit:hover {
  filter: brightness(1.05);
}

/* ===================== MAIN Finish ===================== */

/* =========================================================
   FORCE CF7 RADIO + CHECKBOX VISIBLE (Step 2 form only)
   ========================================================= */

/* Payment Method Styling */
/* --- Radio & Payment --- */
.payment-method-group .wpcf7-list-item {
  display: block;
  margin: 8px 0;
}

.payment-method-group .wpcf7-list-item-label {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: 400;
  color: #333;

}

/* Green highlight for selected payment option */
.payment-method-group input[type="radio"]:checked + .wpcf7-list-item-label {
  background:  turquoise;
  color: #fff;
  border-color: #28a745;
}

/* Green radio circle inside */
.payment-method-group input[type="radio"] {
  accent-color: #28a745;
margin-left: 5px;
}

/* Section heading: bolder + spacing */
.payment-method-group i {
  margin-top: 16px;
  color: #2ccda3;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
	margin-right: 15px;
margin-left: 7px;
}

/* --- Acceptance --- */
.acceptance-label {
	display: absolute;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  line-height: 1.6;
	margin-left: 5px;
}


.acceptance-label i {
  margin-top: 4px;
  color: #2ccda3;
  font-size: 18px;
margin-right: 15px;
}

/* Green checkbox when selected */
.wpcf7-acceptance input[type="checkbox"] {
  accent-color: #28a745;
}

/* Custom validation error message for acceptance */
.wpcf7-acceptance .wpcf7-not-valid-tip {
  color: red;
  font-size: 13px;
  margin-top: 4px;
}

.payment-method-group > label,
.acceptance-label .acceptance-title {
  font-size: 18px;     /* Match other form labels */
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  display: inline-block;
}

.payment-label {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  display: inline-block;
}

.payment-method-group > i,
.acceptance-label i {
  vertical-align: middle;
}


/* popup style after submit in submission page START  */
/* === Confirm Popup Overlay === */
/* === Confirm Popup Overlay === */
#confirm-popup {
  display: flex;              /* always flex, ensures centering */
  position: fixed !important;
  z-index: 99999 !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(144, 238, 144, 0.3);
  backdrop-filter: blur(5px);
  font-family: 'Segoe UI', Roboto, sans-serif;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

#confirm-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background-color: #ffffff !important;
  border-radius: 16px;
  padding: 30px 30px 20px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 auto;             /* keep centered */
  position: relative;
  z-index: 100000;
}


/* Summary Content */
#popup-summary {
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 10px;
  margin-bottom: 20px;
  color: #595ADE;
  font-size: 16px;
  line-height: 1.5;
}

#popup-summary strong {
  color: #2c7a7b;
  font-weight: 500;
  display: inline-block;
  width: 180px;
  padding-right: 15px;
}

#popup-summary p {
  margin-bottom: 12px;
}

.popup-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: auto;
}

.popup-buttons button {
  padding: 10px 20px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#edit-form {
  background-color: #f0f0f0;
  color: #333;
}
#edit-form:hover {
  background-color: #E8D6B0;
}

#confirm-submit {
  background-color: #4CAF50;
  color: black;
}
#confirm-submit:hover {
  background-color: #45a049;
  color: white;
}

@media (max-width: 480px) {
  .popup-box {
    padding: 20px;
  }
  #popup-summary strong {
    width: 160px;
  }
}


/* Popup END  */



/* single page help side bar Flip card  */
.flip-card {
  width: 350px;          /* same as your .widget.cta max-width */
  height: 150px;         /* give it a fixed height */
  perspective: 1000px;   /* enable 3D */
  margin: 20px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* iOS fix */
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  overflow: hidden;
  top: 0;
  left: 0;
}

/* Front (Image) */
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card:active .flip-card-inner {
  transform: rotateY(180deg);
}


.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block; /* prevents Safari rendering bug */
  -webkit-transform: translateZ(0); /* Safari hardware acceleration fix */
}


/* Back (Your existing CTA style) */
.flip-card-back {
  transform: rotateY(180deg);
  background: #f0fdfd;
  color: #111;
  padding: 12px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-back i {
  font-size: 28px;
  margin-right: 12px;
  color: #111;
}

.flip-card-back .call {
  line-height: 1.3;
}

.flip-card-back .number {
  font-size: 18px;
  font-weight: bold;
  display: block;
  color: #111;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.flip-card-back .slg {
  font-size: 14px;
  color: #111;
  margin: 0;
}



/* Flip card End  */

.file-card { 
    position:relative; 
    border:1px solid #ddd;
    padding:15px;
    width:280px; /* bigger */
    min-height:100px; /* more breathing room */
    border-radius:8px;
    box-shadow:0 3px 7px rgba(0,0,0,0.12);
    background:#fff; 
}





/* === Adjust Footer Padding important === */
.site-primary-footer-wrap {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}









