@font-face {
  font-family: "primark regular";
  src: url("https://prm-uat.store.alshaya.com/media/fonts/PrimarkBasis-Regular.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "primark bold";
  src: url("https://prm-uat.store.alshaya.com/media/fonts/PrimarkBasis-Bold.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
}

html {
  font-size: 10px;
  /* Set 1rem to 10px */
}

body {
  font-family: "primark regular", sans-serif;
  margin: 0;
  padding: 0;
}

html[dir="ltr"] {
  font-family: "primark regular", sans-serif;
}

.arabic {
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.english {
  direction: ltr;
}

.hidden {
  display: none;
}

.inlineError {
  font-weight: 400;
  z-index: 1;
  color: #d0011b;
  font-size: 12px;
  display: none;
  text-align: start;
  padding-top: 5px;
}

.inlineError.show {
  display: block;
}

.submitLoader {
  border: 5px solid #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #777;
  border-bottom: 5px solid #777;
  width: 30px;
  height: 30px;
  animation: submitSpin 2s linear infinite;
  position: absolute;
  top: 6px;
  left: 104px;
  display: none;
}

header {
  background-color: #fff;
  padding: 24.5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

html[lang="ar"] header {
  padding: 10px 20px;
}

.logo-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.logo {
  font-size: 1.2em;
  /* Slightly smaller logo */
  color: #333;
  text-decoration: none;
  line-height: 1;
}

.language {
  color: #000;
  text-decoration: none;
  font-family: "Vazirmatn", sans-serif;
  position: absolute;
  right: 20px;
}

html[lang="ar"] .language {
  font-family: "primark bold", sans-serif;
  font-weight: 700;
  left: 20px;
  right: auto;
}

.hero img {
  width: 100%;
  height: auto;
}

@keyframes submitSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 70%;
  margin: 0 auto;
}

.text-content {
  margin-bottom: 25px;
  /* Increased bottom margin */
}

.announcement-title {
  font-size: 1.4em;
  /* Smaller title */
  margin-bottom: 3.2rem;
  color: #000;
  line-height: 1.3;
  font-family: "primark bold", sans-serif;
  text-align: start;
}

html[lang="ar"] .announcement-title {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.announcement-text {
  font-size: 1.4rem;
  /* Smaller text */
  color: #555;
  line-height: 1.5;
  text-align: start;
}

a:-webkit-any-link {
  color: #545961;
}

.submit-helper-text {
  font-size: 1.2rem;
  color: #545961;
  text-align: start;
  margin-top: 0;
  margin-bottom: 2.4rem;
  line-height: 130%;
  font-weight: 400;
}

html[lang="ar"] .announcement-text {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.form-container {
  width: 100%;
}

.form-area {
  margin-bottom: 2.4rem;
}

div#failed {
  color: #d0011b;
  font-size: 1.2rem;
}

div#success {
  color: #000;
  font-size: 1.4rem;
  display: flex;
  gap: 1rem;
}

.form-group {
  margin-bottom: 0.5rem;
  /* Reduced bottom margin */
  display: block;
  position: relative;
  border: 0.1rem solid #ebebeb;
}

.form-group:not(.notransistion) label {
  position: absolute;
  font-size: 1.6rem;
  line-height: 1;
  top: 2rem;
  left: 0;
  padding: 0 1.2rem;
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
  color: #545961;
}

html[lang="ar"] .form-group:not(.notransistion) label {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 400;
  font-style: normal;
  right: 0;
  left: auto;
}

.form-group input {
  padding-block-end: 0;
  height: 48px;
  padding-bottom: 0;
  padding-top: 0.8rem;
  padding-inline-start: 12px;
  width: 90%;
  border: 0;
}

input[type="tel"] {
  padding-inline-start: 4.8rem;
}

html[lang="ar"] input[type="tel"] {
  direction: rtl;
}

.form-group:not(.no-transition) input:focus ~ label,
.form-group:not(.no-transition)
  input:not(:placeholder-shown)
  ~ label:not(.radiobuttonlabel) {
  transform: translateY(-50%);
  font-size: 1.2rem;
  padding: 2px 5px;
  top: 1.2rem;
}

.form-group.checkbox:not(.no-transition) input:focus ~ label,
.form-group.checkbox:not(.no-transition)
  input:not(:placeholder-shown)
  ~ label:not(.radiobuttonlabel) {
  transform: none;
  margin-top: 2px;
}

.input-field-wrapper input:focus,
.input-field-wrapper textarea:focus,
.input-field-wrapper select:focus {
  outline: none;
  border: 0.1rem solid var(--color-neutral-700);
}

input::placeholder {
  color: #999;
  font-size: 0;
}

.phone-input-group {
  display: flex;
  gap: 8px;
  /* Reduced gap */
}

.phone-input-group input[type="text"]:first-child {
  width: 60px;
  background-color: transparent;
  border: 0;
  color: #545961;
  border-radius: 0;
  padding: 8px;
  font-size: 1.4rem;
  text-align: start;
  box-sizing: border-box;
  height: 32px;
  position: absolute;
  bottom: 0.8rem;
  font-weight: 400;
}

.phone-input-group input[type="text"]:last-child {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  font-size: 0.85em;
  color: #333;
  box-sizing: border-box;
  height: 32px;
}

.form-group.checkbox {
  position: relative;
  border: 0;
  display: flex;
  align-items: center;

  input {
    width: 20px;
    height: 30px;
  }

  label {
    transform: none;
    padding-inline-start: 3rem;
    padding: 8px 8px 8px 40px;
    width: calc(100% - 47px);
    z-index: inherit;
    position: unset;
    transform: translateY(0%);

    img {
      height: 24px;
      vertical-align: middle;
    }
  }
}

html[dir="rtl"] .form-group.checkbox {
  padding: 0.4rem 0.5rem 0.4rem 1.2rem;

  & label {
    & img {
      margin-right: 5px;
    }

    & b {
      margin-left: 5px;
    }
  }
}

html[dir="rtl"] .form-group.checkbox input {
  left: unset;
  right: 4px;
  top: -2rem;
}

html[dir="rtl"] .form-group.checkbox label {
  right: unset;
  padding-right: 31px;
  width: calc(100% - 71px);
}

html[dir="rtl"] .form-group.checkbox label::after {
  right: unset;
  left: 30px;
}

.form-group.select select {
  height: 56px;
  width: 100%;
  background-color: white;
  border: none;
  padding: 1.9rem 1.2rem 1.2rem;
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("./icons/arrow_down_light.svg");
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;
  cursor: pointer;
}

html[dir="rtl"] .form-group.select select {
  background-position: 8px center;
}

.form-group.select select:focus {
  outline: none;
  border: none;
}

.form-group:not(.no-transition) select:active ~ label,
.form-group:not(.no-transition)
  select:has(option[value=""]:not(:checked))
  ~ label {
  transform: translateY(-50%);
  font-size: 1.2rem;
  padding: 2px 12px;
  top: 1.2rem;
}

.aura-info-icon {
  width: 20px;
  height: 20px;
  background: url("icons/info-black.svg") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

html[dir="rtl"] .aura-info-icon {
  left: 12px;
  right: unset;
}

#aura-info {
  display: none;
  position: absolute;
  bottom: 45px;
  right: 0;
  left: auto;
  background: #fff;
  padding: 14px 18px 14px 18px;
  border-radius: 0.25rem;
  font-size: 12px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  z-index: 100;
  text-align: start;
  font-weight: 450;
}

#aura-info strong {
  font-size: 13px;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

#aura-info .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

html[dir="rtl"] #aura-info {
  left: 0;
  right: unset;
}
html[dir="rtl"] #aura-info:after {
  right: unset;
  left: 6%;
}

html[dir="rtl"] #aura-info .close {
  right: unset;
  left: 12px;
}

#aura-info:after {
  content: "";
  position: absolute;
  right: 0;
  transform: translateX(-50%);
  bottom: -21px;
  border-width: 12px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* Add styles for modals */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  max-width: 402px;
  width: 90vw;
  margin: auto;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
}

.modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

html[dir="rtl"] .modal-close-button {
  left: 16px;
  right: unset;
}

.modal-success-icon-container {
  margin-bottom: 16px;
}

.modal-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-family: "primark bold", sans-serif;
}

html[lang="ar"] .modal-title {
  font-family: "Vazirmatn";
}

.modal-description {
  margin: 0 0 24px 0;
  font-size: 16px;
  font-weight: 450;
  color: #505050;
}

.modal-done-button {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 24px;
}

.otp-inputs-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.otp-digit {
  width: 54px;
  height: 38px;
  text-align: center;
  border: 1px solid #ccc;
}

.otp-resend-text {
  margin-top: 16px;
  color: #888;
  font-size: 12px;
}

#otpError {
  display: flex;
  align-items: center;
  gap: 4px;
}

#otpError svg {
  vertical-align: middle;
}

button[type="submit"],
input#subscribe {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
  border: 0.1rem solid #000;
  padding: 1.2rem 2.4rem;
  text-align: center;
  cursor: pointer;
  color: #fff;
  margin: 1.6rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 4.8rem;
  justify-content: center;
  background: #000;
  min-width: 16.5rem;
}

button[type="submit"]:hover,
input#subscribe:hover {
  background-color: #333;
}

html[lang="ar"] .button[type="submit"],
input#subscribe {
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
}

footer {
  background-color: #fff;
  padding: 15px 20px;
  /* Reduced footer padding */
  text-align: center;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  border-top: 1px solid #ebebeb;
}

.social-links a {
  color: #777;
  margin-inline-start: 1.2rem;
  /* Reduced social link margin */
  text-decoration: none;
}

input:focus {
  outline: none;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

.ar-text {
  display: none;
}

html[lang="ar"] .ar-text {
  display: block;
}

html[lang="ar"] .en-text {
  display: none;
}

.en-text {
  display: block;
}

/* Responsive Design */
@media (min-width: 768px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
    padding: 32px;
  }

  .text-content {
    flex: 1;
    margin-bottom: 0;
    text-align: left;
  }

  .announcement-title {
    font-size: 2.8rem;
  }

  .announcement-text {
    font-size: 1.4em;
  }

  .submit-helper-text {
    font-size: 1.2rem;
  }

  .form-container {
    flex: 1;
  }

  button[type="submit"] {
    width: auto;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 1em;
    height: auto;
    line-height: normal;
  }

  footer {
    padding: 15px 30px;
    font-size: 1.4rem;
  }

  .social-links a {
    margin-inline-start: 1.2rem;
  }

  .language {
    font-size: 1.4rem;
  }
}

/* Small screens - center logo and full width button */
@media (max-width: 767px) {
  .announcement-title {
    font-size: 2.4rem;
  }

  .content-wrapper {
    max-width: 100%;
  }

  .form-group input {
    width: 80%;
  }

  .announcement-text {
    font-size: 1.2rem;
  }

  .form-group {
    margin-bottom: 15px;
  }

  button[type="submit"] {
    padding: 10px 20px;
    font-size: 0.9em;
    height: auto;
    line-height: normal;
  }

  .submit-helper-text {
    font-size: 1rem;
  }

  footer {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .social-links {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .language {
    font-size: 1.2rem;
    position: absolute;
    right: 2.4rem;
  }

  html[lang="ar"] .language {
    left: 2.4rem;
    right: auto;
    position: absolute;
  }

  footer {
    font-size: 1.2rem;
    padding: 0;
    display: block;
  }

  footer p {
    border-bottom: 0.1rem solid #ebebeb;
    padding: 2.8rem 1.2rem;
  }

  button[type="submit"],
  input#subscribe {
    width: 100%;
  }

  footer p a {
    display: block;
  }

  div#success {
    font-size: 1.2rem;
  }
}

/* Mobile-only styles */
.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }
}

/* Desktop-only styles */
.desktop-only {
  display: block;
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }
}

body footer p a:-webkit-any-link {
  color: #000;
}
