/* RTL stylesheet for AI Calculator: Enables RTL on the first and last steps, while keeping dynamic questions in LTR */
/* 1. Global RTL styles (Initial Step & Contact Form Step) */
.calc-root-wrapper {
  direction: rtl !important;
  text-align: right !important;
}
.calc-root-wrapper .step-wrapper {
  text-align: right !important;
}
.calc-root-wrapper .header, .calc-root-wrapper p, .calc-root-wrapper label, .calc-root-wrapper small, .calc-root-wrapper span.error-msg {
  text-align: right !important;
}
.calc-root-wrapper {
  /* Swapping form-group flexbox flow and align items */
}
.calc-root-wrapper .form-group-wrapper {
  flex-direction: row-reverse !important;
}
.calc-root-wrapper {
  /* Form Inputs direction override */
}
.calc-root-wrapper textarea, .calc-root-wrapper input[type=text], .calc-root-wrapper input[type=email], .calc-root-wrapper input[type=tel] {
  text-align: right !important;
  direction: rtl !important;
}
.calc-root-wrapper {
  /* Keep email/phone input LTR, but align text right */
}
.calc-root-wrapper input[type=email], .calc-root-wrapper input[type=tel] {
  direction: ltr !important;
  text-align: right !important;
}
.calc-root-wrapper {
  /* Checkbox & Radio Button Alignment */
}
.calc-root-wrapper .checkbox-wrapper .checkbox-inner,
.calc-root-wrapper .radio-wrapper .radio-inner {
  text-align: right !important;
}
.calc-root-wrapper .checkbox-wrapper .checkbox-inner input[type=checkbox], .calc-root-wrapper .checkbox-wrapper .checkbox-inner input[type=radio],
.calc-root-wrapper .radio-wrapper .radio-inner input[type=checkbox],
.calc-root-wrapper .radio-wrapper .radio-inner input[type=radio] {
  right: 0 !important;
  left: auto !important;
}
.calc-root-wrapper .checkbox-wrapper .checkbox-inner label,
.calc-root-wrapper .radio-wrapper .radio-inner label {
  padding-right: 28px !important;
  padding-left: 0 !important;
  text-align: right !important;
  justify-content: flex-start !important;
}
.calc-root-wrapper .checkbox-wrapper .checkbox-inner label::before,
.calc-root-wrapper .radio-wrapper .radio-inner label::before {
  right: 0 !important;
  left: auto !important;
}
.calc-root-wrapper .checkbox-wrapper .checkbox-inner label::after,
.calc-root-wrapper .radio-wrapper .radio-inner label::after {
  right: 6px !important;
  left: auto !important;
}
.calc-root-wrapper {
  /* Radio button specific check dot offset */
}
.calc-root-wrapper .radio-wrapper .radio-inner label::after {
  right: 5px !important;
  left: auto !important;
}
.calc-root-wrapper {
  /* File upload elements spacing */
}
.calc-root-wrapper .upload-btn {
  margin-left: 15px !important;
  margin-right: 0 !important;
}

/* 2. LTR-Lock for dynamic questions and progress bar in between */
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  direction: ltr !important;
  text-align: left !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .step-wrapper {
  text-align: left !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .header, .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) p, .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) label, .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) small, .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) span.error-msg {
  text-align: left !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  /* Force standard LTR form wrapping flow */
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .form-group-wrapper {
  flex-direction: row !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  /* Form Inputs typing direction */
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) textarea, .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) input[type=text], .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) input[type=email], .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) input[type=tel] {
  text-align: left !important;
  direction: ltr !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  /* Checkbox & Radio Button Alignment (Force LTR layout) */
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .checkbox-wrapper .checkbox-inner,
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .radio-wrapper .radio-inner {
  text-align: left !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .checkbox-wrapper .checkbox-inner input[type=checkbox], .calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .checkbox-wrapper .checkbox-inner input[type=radio],
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .radio-wrapper .radio-inner input[type=checkbox],
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .radio-wrapper .radio-inner input[type=radio] {
  left: 0 !important;
  right: auto !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .checkbox-wrapper .checkbox-inner label,
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .radio-wrapper .radio-inner label {
  padding-left: 28px !important;
  padding-right: 0 !important;
  text-align: left !important;
  justify-content: flex-start !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .checkbox-wrapper .checkbox-inner label::before,
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .radio-wrapper .radio-inner label::before {
  left: 0 !important;
  right: auto !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .checkbox-wrapper .checkbox-inner label::after,
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .radio-wrapper .radio-inner label::after {
  left: 6px !important;
  right: auto !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  /* Radio button specific check dot offset (Force LTR layout) */
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .radio-wrapper .radio-inner label::after {
  left: 5px !important;
  right: auto !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  /* Progress bar alignment (Force LTR layout) */
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .progressbar-wrapper {
  flex-direction: row !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .progressbar-wrapper .progressbar-track {
  direction: ltr !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .progressbar-wrapper .progressbar-label {
  margin-left: 10px !important;
  margin-right: 0 !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  /* File upload elements spacing */
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .upload-btn {
  margin-right: 15px !important;
  margin-left: 0 !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) {
  /* Stepper items alignment (Force LTR layout) */
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .mvp-box-large-items-radio-wrapper {
  margin-right: 15px !important;
  margin-left: 0 !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .mvp-box-large-items div[class*=-wrapper] {
  margin-right: 10px !important;
  margin-left: 0 !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .mvp-box-large-items div[class*=-wrapper]:nth-child(2n) {
  margin-right: 0 !important;
}
.calc-root-wrapper .calc-content-item-wrapper:not(.contact-form-wrapper):not(:first-child) .mvp-box-large-items img {
  margin-left: 9px !important;
  margin-right: 0 !important;
}

/* 3. Footer & Buttons (Force LTR layout) */
.calc-footer-wrapper .calc-btn-wrapper {
  flex-direction: row !important;
}
.calc-footer-wrapper .calc-btn-wrapper .left {
  animation-name: slideLeft !important;
}
.calc-footer-wrapper .calc-btn-wrapper .right {
  animation-name: slideRight !important;
}

/* 4. International Telephone Input configuration */
.iti {
  direction: ltr !important; /* Keep input wrapper LTR for standard phone layout */
  text-align: left !important;
}

.iti--rtl .iti__country-container {
  right: 0 !important;
  left: auto !important;
}
.iti--rtl .iti__country-container .iti__selected-country {
  border-left: 1px solid #d9d9d9 !important;
  border-right: none !important;
  border-radius: 0 4px 4px 0 !important;
  padding-left: 8px !important;
  padding-right: 0 !important;
}
