.strike-through {
    text-decoration: line-through;
    color: #d9534f;
    font-weight: bold;
}

.highlight-price {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.discount-info {
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed #28a745;
    background-color: #f6fff6;
    text-align: center;
    border-radius: 5px;
}

.discount-percent {
    font-size: 14px;
    font-weight: bold;
    color: #d9534f;
}

#card-number{
	direction: ltr;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.success-icon {
  width: 85px;
  height: 85px;
  background: #28a745;
  color: white;
  font-size: 50px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: pop 0.4s ease-in-out;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

.success-title {
  color: #28a745;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
}

.transaction-label {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 16px;
  color: #333;
}

/* اطلاعات پرداخت */
.payment-details {
  display: flex;
  justify-content: space-between;
  text-align: right;
  gap: 10px;
  font-size: 15px;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: bold;
  color: #444;
}

.details-values span {
  font-weight: normal;
  padding: 6px;
  background: white;
  border-radius: 5px;
  min-width: 120px;
  direction: ltr;
}

/* دکمه بستن */
.close-button {
  margin-top: 20px;
  padding: 10px 15px;
  border: none;
  background: #28a745;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.close-button:hover {
  background: #218838;
}

/* انیمیشن‌ها */
@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(50px);
  border-radius: 10px;
  transition: opacity 0.3s ease-in-out;
  display: none; 
  z-index: 999;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* در هنگام لود، فرم کمی بلور شود */
#reserv-main-body.loading {
  position: relative;
}

#reserv-main-body.loading #loading-overlay {
  display: flex;
}

#reserv-main-body {
  width: 100%;
}

#reserv-main-body * {
  font-family: iransans;
}

#reserv-main-body hr {
  margin: 1rem 0;
  color: inherit;
  background-color: currentColor;
  border: 20;
  opacity: 0.25;
}

.all-griffin {
  direction: rtl;
  margin: auto;
  padding: 16px;
  background-color: transparent;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.32);
}

@media only screen and (min-width: 768px) {
  .all-griffin {
    justify-content: center;
  }
}

.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto !important;
  margin-right: auto !important;
}
:root :where(.is-layout-constrained) > * {
  margin-block-start: 24px;
  margin-block-end: 0;
}

.g2-reserve-title {
  padding: 0;
  margin: 0 0 16px 0;
  color: white;
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  line-height: 34.2px;
}

.g2-form-information {
  font-size: 19px;
  font-weight: 400;
  line-height: 10px;
  text-align: center;
  color: #fff;
  margin: 0 0 20px 0;
  display: block;
}

.g2-form-input {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d7dadc;
  background-color: #fff;
  margin-bottom: 0;
  width: 100%;
  position: relative;
  color: #37474f;
  text-align: right;
  font-size: 13px;
  font-weight: 400;
  line-height: 23.4px;
}

.g2-form-input:focus {
  border-color: #ffba00;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 174, 66, 0.3);
  outline: none;
}

.g2-reserve-col label {
  display: block;
  text-align: right;
  font-size: 16px;
  font-weight: 400;
  line-height: 28.8px;
  margin-bottom: 4px;
}

.form-err {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  text-align: right;
}

.g2-reserve-flex {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.g2-reserve-col {
  flex: 1;
}

#reserv-main-body button {
  cursor: pointer;
}

#reserv-main-body button#reserve-next-step {
  width: 199px;
  height: 48px;
  margin: 0 auto;
  padding: 5px 0;
}

#reserv-main-body button#reserve-next-step {
  border: 1px solid #e8e8e9;
  padding-right: 9px;
  outline: none;
  display: block;
  background-color: #e21c1c;
  color: #fff;
  border-radius: 8px;
  transition: all 0.5s ease;
  font-weight: 600;
}

#reserv-main-body button#reserve-next-step:hover {
  background: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 140, 0, 0.2);
}

#reserv-main-body [type="submit"] {
  background-color: #e21c1c;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#reserv-main-body [type="submit"]:hover {
  background-color: #3dc60d;
}

.calendar-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.calendar-header h3 {
  font-size: 18px;
  color: #ffffff;
  font-weight: bold;
}

.calendar-header button {
  background: #ffba00;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-header button:hover {
  background: #ff8c00;
  box-shadow: 0px 4px 12px rgba(255, 140, 0, 0.3);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 1px;
  white-space: nowrap;
}

.weekday {
  font-size: 10px;
  color: #ffffff;
  text-align: center;
  line-height: 40px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  justify-content: center;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  height: 40px;
  margin: 5px auto;
  background: #ffffff;
  color: #37474f;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  padding: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-day:hover {
  background: #12ff00;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 174, 66, 0.2);
}

.calendar-day.active {
  background: #3dc60d;
  color: #ffffff;
  border-color: #ffffff;
}

.calendar-day.disabled {
  background: #aeaeae;
  color: #cccccc;
  border: 1px solid #e0e0e0;
  cursor: not-allowed !important;
}

.time-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.iti {
  display: block !important;
}

.mt-3 {
  margin-top: 1rem;
}

.time-button.disabled {
  background: #aeaeae;
  color: #cccccc;
  border: 1px solid #dddddd;
  cursor: not-allowed;
}

.g2-reserve-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  opacity: 0.9;
  z-index: 10;
  border-radius: 16px;
  background: linear-gradient(
      180deg,
      rgba(252, 252, 251, 0) 0%,
      rgba(252, 252, 251, 0.9) 63.45%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), #000;
}
.g2-reserve-job {
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: 12;
  border-radius: 16px;
  text-align: center;
}

.g2-form-step-inner {
  border-radius: 16px;
  margin-bottom: 48px !important;
  position: relative;
}

@media only screen and (min-width: 576px) {
  .g2-form-step-inner {
    padding: 24px 32px;
  }
}
.g2-form-step-inner {
  background-color: transparent;
  color:#fff;
}
.g2-form-step-inner {
  border-radius: 16px;
  margin-bottom: 48px !important;
  position: relative;
}
@media only screen and (min-width: 576px) {
  .g2-form-step-inner {
    padding: 24px 32px;
  }
}

.reserv-form-footer {
  position: relative;
  padding: 16px 0;
}

.reserv-form-footer::before {
  content: "";
  display: block;
  position: absolute;
  width: 95%;
  height: 1px;
  background-color: #e8e8e9;
  bottom: 100%;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.g2-contactinfo {
  padding: 10px;
  background-color: rgba(242, 243, 243, 0.0);
  border: 1px solid #d7dadc;
  border-radius: 15px;
  margin-bottom: 24px;
}

.g2-reserve-title{
  text-align: center;
}

.g2-contactinfo-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 28.8px;
  text-align: center;
  margin-bottom: 13px;
  color: #3d3d3d;
}

.g2-contactinfo-inner {
  display: flex;
  width: 100%;
  justify-content: space-around;
  list-style: none !important;
  padding: 0;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 !important;
}

li.g2-contactinfo-items {
  margin-bottom: 24px;
  line-height: 1.8rem;
}

.g2-contactinfo-label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  line-height: 25px;
  text-align: center;
  margin-bottom: 1px;
}

.g2-contactinfo-edit {
  color: #000000 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 28.8px;
  text-align: center;
  border: none;
  background: none;
  outline: none;
  display: block;
  margin: 0 auto;
}

.all-griffin .container {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 0px;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  width: 100%;
  padding-left: var(--bs-gutter-x, 0.75rem);
  padding-right: var(--bs-gutter-x, 0.75rem);
  margin-left: auto;
  margin-right: auto;
}

.g2-contactinfo-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 28.8px;
  text-align: center;
  margin: 0;
  direction: ltr;
}

.input-error {
  border: 1px solid red;
  background-color: #ffe6e6;
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-day.today {
  border: 2px solid #ff9800;
  font-weight: bold;
}

.g2-consultation-list.selectable,
.g2-session-list.selectable,
.g2-station-list.selectable,
.g2-state-list.selectable {
  display: block;
  opacity: 1;
}

.g2-consultation-list,
.g2-session-list,
.g2-station-list,
.g2-state-list {
  background-color: #fff;
  position: absolute;
  border-radius: 8px 8px 32px 32px;
  box-shadow: 0px 5px 10px 0px #0000000a, 0px 19px 19px 0px #00000008,
    0px 42px 25px 0px #00000005, 0px 75px 30px 0px #00000003,
    0px 118px 33px 0px #00000000;
  width: 100%;
  height: fit-content;
  padding: 12px 0 !important;
  flex-shrink: 0;
  z-index: 10;
  list-style: none;
  overflow: hidden;
  display: none;
  opacity: 0;
  max-height: 224px;
  overflow-y: auto;
}

.g2-consultation-items,
.g2-session-items,
.g2-station-items,
.g2-state-items {
  margin: 4px 0;
  padding: 8px 24px;
  color: #37474f;
  text-align: right;
  font-size: 16px;
  font-weight: 400;
  line-height: 28.8px;
  cursor: pointer;
  transition: all 0.3s;
}

.g2-list-price {
  font-size: 12px;
}

.g2-reserve-dropSvg.active {
  rotate: 180deg;
}
.g2-reserve-dropSvg {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 8px;
  top: 42px;
  transition: all 0.2s;
  background: center no-repeat;
  background-image: url("data:image/svg+xml,%0A%3Csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_13718_163' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='19' height='19'%3E%3Crect x='0.5' y='0.5' width='18' height='18' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_13718_163)'%3E%3Cpath d='M9.5 11.75L5.75 8H13.25L9.5 11.75Z' fill='%2337474F'/%3E%3C/g%3E%3C/svg%3E%0A");
}
.active {
  color: #ebbf58;
  font-weight: 700;
}

#consultations {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #333;
  padding: 10px;
  width: 100%;
  max-width: 400px;
  font-size: 16px;
  display: block;
  margin: 1rem 0;
}

#consultations:focus {
  outline: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.consultations_selector {
  margin: 1rem auto;
  width: 300px;
}

.mb-3 {
  margin-bottom: 1rem;
}

.g2-reserve-priceVal {
  padding: 6px 8px;
  margin: 0;
  color: #37474f;
  text-align: right;
  font-size: 13px;
  font-weight: 400;
  line-height: 23.4px;
  display: none;
}

.g2-reserve-calendersec {
  margin: auto;
  padding: 0;
}

@media only screen and (min-width: 992px) {
  .g2-reserve-calendersec {
    width: 40%;
  }
}
@media only screen and (min-width: 768px) {
  .g2-reserve-calendersec {
    width: 60%;
  }
}

#calendar-container {
  margin: 16px auto;
}

.g2-reserve-nextMonth,
.g2-reserve-preMonth {
  cursor: pointer;
  color: #37474f;
  font-weight: 400;
  font-size: 13px;
  padding: 4px 4px;
  border-radius: 4px;
  display: flex;
  align-content: center;
  margin-bottom: auto;
  align-items: center;
}

#calendar-container {
  border-bottom: 1px solid #e8e8e9;
}

p#reserv-time-lable {
  display: flex;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-right: 2px;
  text-align: center;
  margin-bottom: 5px !important;
  transition: all 0.5s ease;
  justify-content: center;
  place-items: center;
}

p#reserv-time-lable {
  margin: 0 0.1rem;
}

.iti--inline-dropdown .iti__dropdown-content {
  direction: rtl;
}

#back-button {
  background-color: #e21c1c;
  border: 0;
  color: white !important;
  padding: 0.25rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .g2-reserve-flex {
    flex-direction: column;
  }

  .g2-reserve-col {
    flex: 1 1 100%;
  }

  .calendar-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .time-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .g2-reserve-title {
    font-size: 20px;
  }

  .g2-form-information {
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media (max-width: 350px) {
  .weekday{
    font-size: 8px !important;
  }	
}

@media (max-width: 400px) {
  .weekday{
    font-size: 9px !important;
  }	
}

@media (max-width: 576px) {
  #consultations {
	width: 100%;	
  }
	
  .consultations_selector{
	width: 100%;	
  }

  .all-griffin .container {
    width: 100%;
    padding: 0 !important;
    margin-top: 0px;
  }

  .calendar-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .g2-reserve-title {
    font-size: 18px;
  }

  .g2-form-input {
    font-size: 12px;
    padding: 6px;
  }

  .g2-form-information {
    font-size: 12px;
  }

  button {
    font-size: 12px;
    padding: 6px 10px;
  }

  .reserv-form-footer {
    text-align: center;
  }

  .reserv-form-footer button {
    width: 100%;
  }

  .calendar-header h3 {
    margin-bottom: 10px;
  }

  .g2-form-step-inner {
    padding: 8px 10px;
  }
}

.g2-reserve-monthYear {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  color: #37474f;
  gap: 20px;
}

.g2-reserve-monthYear .month::before {
  content: "";
  display: block;
  position: absolute;
  width: 1px;
  height: 60%;
  background-color: #37474f;
  left: -10px;
  top: 15%;
}

.g2-reserve-monthYear .month {
  position: relative;
}

p:last-child,
p:empty {
  margin-bottom: auto;
}

.all-griffin .container {
  margin: 0 !important;
  place-self: center;
}

#reserv-main-body {
  text-align: right;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background-color: #333;
  color: white;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media screen and (max-width: 768px) {
  #reserv-main-body {
    padding: 0;
  }

  .g2-reserve-mainbox {
    width: 100%;
    padding: 15px;
  }

  .g2-reserve-flex {
    flex-direction: column;
  }

  .g2-reserve-col {
    width: 100%;
    margin-bottom: 10px;
  }

  .g2-form-input {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  .reserv-form-footer {
    text-align: center;
  }

  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }

  .g2-contactinfo-inner {
    padding: 10px;
  }

  #time-buttons-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .time-button {
    font-size: 14px;
    padding: 8px;
  }

  button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}
