/* ===========================
   Request Flight Plugin Styles
=========================== */
/* ===========================
   Request Flight Plugin Styles
=========================== */
@media screen and (max-width: 768px) {
  .pt-passenger-table, 
  .pt-passenger-table thead, 
  .pt-passenger-table tbody, 
  .pt-passenger-table th, 
  .pt-passenger-table td, 
  .pt-passenger-table tr {
    display: block;
    width: 100%;
  }

  .pt-passenger-table thead {
    display: none; /* هدر جدول مخفی می‌شود */
  }

  .pt-passenger-table tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }

  .pt-passenger-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
    position: relative;
  }

  /* نمایش عنوان هر فیلد در بالای input */
  .pt-passenger-table td::before {
    content: attr(data-label);
    position: absolute;
    top: -18px;
    left: 0;
    font-weight: 500;
    font-size: 13px;
    color: #555;
  }

  .pt-passenger-table input,
  .pt-passenger-table select {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 6px;
    font-size: 14px;
    box-sizing: border-box;
  }

  .pt-passenger-table input[type="date"] {
    font-size: 13px;
  }
}

.request-flight-wrap {
  max-width: 980px;
  margin: 30px auto;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  direction: rtl;
}

.request-flight-wrap form {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* فیلدها و لیبل‌ها */
.request-flight-wrap label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #333;
}

.request-flight-wrap input[type=text],
.request-flight-wrap input[type=date],
.request-flight-wrap select,
.request-flight-wrap input[type=file],
.request-flight-wrap textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.request-flight-wrap input:focus,
.request-flight-wrap select:focus,
.request-flight-wrap textarea:focus {
  border-color: #0a7f55;
  box-shadow: 0 0 0 3px rgba(10,127,85,0.15);
  outline: none;
}

/* دکمه‌ها */
.request-flight-wrap button {
  background: #0a7f55;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 14px;
  font-size: 15px;
  transition: background 0.3s;
}

.request-flight-wrap button:hover {
  background: #086a47;
}

.small-btn {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 6px;
}

.small-btn:hover {
  background: #555;
}

/* چیدمان دو ستونه برای برخی فیلدها */
.pt-two-col {
  display: flex;
  gap: 12px;
}

.pt-two-col div {
  flex: 1;
}

/* ردیف تاریخ */
.pt-date-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* بلوک مسافران همراه */
#passengers_container .passenger-block {
  border: 1px dashed #ddd;
  padding: 10px;
  border-radius: 8px;
  margin-top: 8px;
  background: #fafafa;
}

/* چک‌باکس‌ها */
.pt-checkbox label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.pt-checkbox input[type=checkbox] {
  transform: scale(1.1);
}

/* دکمه ارسال */
.pt-submit-btn {
  width: 100%;
  background: #b10000;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 22px;
  cursor: pointer;
  transition: background 0.3s;
}

.pt-submit-btn:hover {
  background: #8a0000;
}

/* پیام‌های وضعیت */
.pt-error {
  color: #b00020;
  margin-top: 6px;
  display: block;
  font-size: 13px;
}

.pt-success {
  color: #0a7f55;
  margin-top: 6px;
  display: block;
  font-size: 13px;
}

/* ===========================
   بخش تأیید (رسید پرواز)
=========================== */
.pt-confirm-box {
  border: 2px solid #5ccfcf;
  border-radius: 15px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  max-width: 1000px;
  margin: 20px auto;
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
  position: relative;
  padding-top: 140px; /* فاصله با QR */
}

.pt-confirm-box h2 {
  margin: 0;
  color: #1c1c1c;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
}

.pt-confirm-box p {
  margin: 4px 0 15px;
  font-size: 15px;
  color: #555;
  text-align: center;
}

/* جدول‌ها */
.pt-confirm-box table.pt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  table-layout: auto;
  word-wrap: break-word;
}

.pt-confirm-box table.pt-table th,
.pt-confirm-box table.pt-table td {
  border: 1px solid #eee;
  padding: 8px 10px;
  text-align: right;
  font-size: 14px;
  word-break: break-word;
  color: #000;
}

.pt-confirm-box table.pt-table.passengers {
  width: 100%;
  margin-top: 10px;
  table-layout: fixed;
  display: block;
  overflow-x: auto;
}

/* یادداشت */
.note {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* جداکننده نازک بین ستون‌ها */
.pt-confirm-box table.pt-table.passengers td,
.pt-confirm-box table.pt-table.passengers th,
.pt-table.passengers td,
.pt-table.passengers th {
  border-right: 1px solid rgba(255,255,255,0.6);
}

/* موبایل: هدرها مخفی و هر سلول برچسب داخلی داشته باشد */
@media (max-width: 768px) {
  .pt-table.passengers thead { display: none; }
  .pt-table.passengers tr { display: table-row; } /* اجازه بده ردیف‌ها حفظ شوند */
  .pt-table.passengers td { display: block; width: 100%; box-sizing: border-box; padding: 8px; }
  .pt-table.passengers td::before {
    content: attr(data-label);
    display: block;
    font-weight:700;
    margin-bottom:6px;
    color:#333;
  }
  /* برای ستون عملیات متن عمودی را کوچک‌تر کن */
  .pt-table.passengers td .vertical-sd { transform: rotate(0); writing-mode: horizontal-tb; }
}

/* 💻 واکنش‌گرایی */
@media (max-width: 900px) {
  .pt-two-col { flex-direction: column; }
  .pt-date-row { flex-direction: column; }
  .pt-confirm-box h2 { font-size: 18px; }
  .pt-confirm-box p { font-size: 14px; }
}

@media (max-width: 600px) {
  .request-flight-wrap form {
    padding: 18px;
  }
  .request-flight-wrap button {
    width: 100%;
  }
  .pt-confirm-box {
    padding: 10px;
  }
  .pt-confirm-box h2 { font-size: 16px; }
  .pt-confirm-box p { font-size: 13px; }
  .pt-confirm-box table.pt-table,
  .pt-confirm-box table.pt-table.passengers {
    font-size: 13px;
    width: 100%;
  }
  .pt-confirm-box table.pt-table th,
  .pt-confirm-box table.pt-table td {
    padding: 6px;
  }
}

/* ===========================
   چاپ رسید
=========================== */
@media print {
  body {
    background: #fff !important;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-family: inherit !important;
    color: #111 !important;
  }

  .pt-confirm-wrapper {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 210mm !important;
    height: 297mm !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .pt-confirm-box {
    width: 85% !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    padding: 30px 40px !important;
    margin-top: 20mm !important;
    border-radius: 8px !important;
    color: #111 !important;
  }

  .pt-confirm-box img[alt="Parham Travel"] {
    height: 60px !important;
  }

  .pt-qr img {
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
  }

  header, footer, nav, .elementor-section, .site-footer, .site-header {
    display: none !important;
    visibility: hidden !important;
  }

  a[href]:after { content: "" !important; }
}
.pt-passenger-remove {
  background-color: orange !important;
  color: white !important;
  font-size: 12px !important;
  padding: 5px 10px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  position: relative;
  top: -2px; /* دکمه را کمی بالاتر می‌آورد */
  transition: all 0.4s ease-in-out;
}

.pt-passenger-remove:hover {
  background-color: #ff7b00 !important; /* رنگ پررنگ‌تر هنگام هاور */
  box-shadow: 0 0 0 2px white !important; /* استروک سفید دور دکمه */
  transform: translateY(-5px); /* کمی بالا آمدن هنگام هاور */
}
/* استایل عمومی برای همه دکمه‌ها در فرم رزرو پرواز */
#pt_flight_form button,
#pt_flight_form input[type="submit"],
#pt_flight_form .pt-passenger-remove {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

/* حالت hover برای همه دکمه‌ها */
#pt_flight_form button:hover,
#pt_flight_form input[type="submit"]:hover,
#pt_flight_form .pt-passenger-remove:hover {
  filter: brightness(1.15); /* رنگ را کمی پررنگ‌تر می‌کند */
  transform: translateY(-1px); /* کمی بالا آمدن طبیعی هنگام هاور */
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4); /* استروک سفید ملایم */
}
/* =========================
   استایل چک‌باکس قوانین
   ========================= */
.pt-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* سمت چپ */
    margin-bottom: 15px;
}

.pt-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;        /* متن خاکستری */
    font-weight: 600;   /* بولد */
    cursor: pointer;
}

.pt-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6A52C7; /* رنگ تیک آبی */
}
/* =========================
   هدر فرم: لوگو و QR
   ========================= */
.pt-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pt-form-header .pt-logo img,
.pt-form-header .pt-qr img {
    max-height: 80px;
    width: auto;
}

/* موبایل */
@media (max-width: 768px) {
  /* هدر فرم */
  .pt-form-header-wrapper {
    flex-direction: row !important; /* لوگو و QR کنار هم */
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px !important;
    position: relative;
  }

  /* لوگو */
  .pt-form-logo img {
    height: 86px !important; /* 20٪ بزرگتر */
  }


  
  /* QR */
  .pt-form-qr-wrapper {
    position: relative !important;
  }

  .pt-form-qr-wrapper img {
    height: 86px !important; /* 20٪ بزرگتر */
  }

  /* متن کنار QR عمودی */
  .pt-form-side-text {
    position: absolute !important;
    left: auto !important;
    right: -25px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(360deg) !important; /* چرخش کامل */
    writing-mode: vertical-lr !important;
    font-size: 6px !important;
    letter-spacing: 0.5px !important;
    color: #555;
    text-align: center;
  }

  /* متن فارسی و انگلیسی زیر هدر */
  .pt-form-header-wrapper + div {
    font-size: 12px !important;
    margin: 10px 0 !important;
    text-align: center;
  }

  .pt-form-header-wrapper + div + div {
    font-size: 12px !important;
    margin: 5px 0 !important;
    text-align: center;
  }
}
