body,
html {
  height: 100%;
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
}
* {
  box-sizing: border-box;
}
body {
  font-size: 16px;
  line-height: 140%;
  color: black;
  position: relative;
  background: white;
}
img {
  max-width: 100%;
}
button,
input,
select,
textarea {
  outline: none;
  box-sizing: border-box;
}
input,
textarea,
select {
  font-family: 'Geologica', sans-serif;
}
input:focus,
textarea:focus,
select:focus {
  border: 1px solid #252D41;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: black;
}
.content .input-form form button[type="submit"] {
  background: #e82223 url(../img/icon-download.svg) center center no-repeat;
  background-size: 33px 33px;
}
button {
  border-radius: 36px;
  height: 60px;
  border: none;
  background: #e92223;
  color: #fff;
  padding: 0px 20px;
  cursor: pointer;
}
button:hover {
  background: #b6001b;
}

/* Download button state after successful download */
button.download-btn:disabled,
button.download-btn.downloaded {
  background: #6B7280;
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

button.download-btn:disabled:hover,
button.download-btn.downloaded:hover {
  background: #6B7280;
}

/* RTL support (Arabic) */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] header .language .current p {
  margin-left: 0;
  margin-right: 6px;
}

html[dir="rtl"] header .language .dropdown {
  left: 0;
  right: auto;
}

/* Input: move submit button to the left and swap paddings */
html[dir="rtl"] .content .input-form form button {
  left: 7px;
  right: auto;
}

html[dir="rtl"] .content .input-form form input {
  text-align: right;
  padding: 18px 32px 18px 92px; /* swapped from ltr (right-space for button) */
}

/* How-to cards: move number badge to the right */
html[dir="rtl"] .content .bottom-info .how-to-use .row .item {
  padding: 30px 60px 30px 30px;
}

html[dir="rtl"] .content .bottom-info .how-to-use .row .item .num {
  left: auto;
  right: 27px;
}

/* Mobile layout tweaks */
@media (max-width: 640px) {
  html[dir="rtl"] header .language .dropdown {
    text-align: center;
  }

  html[dir="rtl"] .content .bottom-info .about,
  html[dir="rtl"] .content .bottom-info .about .caption,
  html[dir="rtl"] .content .bottom-info .how-to-use .caption,
  html[dir="rtl"] .content .bottom-info .faq .caption {
    text-align: right;
  }

  html[dir="rtl"] .content .bottom-info .how-to-use .row {
    margin-left: 0;
    margin-right: 10px;
  }

  html[dir="rtl"] .content .bottom-info .faq .faq-question {
    padding: 15px 0 15px 35px;
  }
}
h1,
h2 {
  margin: 0;
  margin-bottom: 0px;
}
a {
  text-decoration: none;
  color: #000000;
  font-size: 15px;
}
a:hover {
  text-decoration: underline;
  color: white;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
p {
  margin: 0;
}
.wrapper {
  overflow: hidden;
}
.flex {
  display: flex;
  flex-wrap: wrap;
}
.flex.jcsb {
  justify-content: space-between;
}
.flex.aic {
  align-items: center;
}
.container {
  max-width: 1170px;
  padding: 0 35px;
  margin: 0 auto;
}
.caption {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 25px;
}
header,
footer {
  background: #f5f5f5;
}
header {
  position: relative;
  padding: 24px 0 18px 0;
}
header .logo {
  width: 200px;
  display: flex;
  align-items: center;
}
header .logo .logo-img {
  width: 100%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}
header .language {
  position: relative;
}
header .language .current {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  cursor: pointer;
}
header .language .current span {
  width: 20px;
  height: 20px;
  background: url('../img/icon-lang.svg') center center no-repeat;
  background-size: contain;
}
header .language .current p {
  margin-left: 6px;
}
header .language.active .dropdown {
  display: block;
}
header .language.active .current {
  border-radius: 8px 8px 0 0;
  background: rgb(163 163 163 / 50%);
}
header .language .dropdown {
  position: absolute;
  display: none;
  top: 100%;
  right: 0;
  border-radius: 8px 0 8px 8px;
  background:rgb(204 204 204 / 96%);
  padding: 10px 30px;
  z-index: 2;
}
header .language .dropdown li:first-of-type {
  display: none;
}
header .language .dropdown .item {
  line-height: 180%;
  white-space: nowrap;
  overflow: hidden;
}
.input-form {
  margin-top: 80px;
}
.content .top-title {
  text-align: center;
  padding: 80px 0 0;
}
.content .top-title h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 140%;
  color: #e82223;
}
.content .top-title span {
  font-size: 40px;
  color: #e82223;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}
.content .loading-animation {
  text-align: center;
  margin-top: 30px;
  padding: 40px 20px;
}
.content .loading-animation .loader {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.content .loading-animation .loader .loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e60023;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.content .loading-animation .loader .loader-text {
  margin: 0;
  font-size: 16px;
  color: #666;
  font-weight: 400;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.content .media-content {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
  border-radius: 8px;
}
.content .input-form form {
  max-width: 970px;
  margin: 0 auto;
  position: relative;
}
.content .input-form form input {
  width: 100%;
  border: 4px solid #dcdcdc;
  background: white;
  height: 72px;
  padding: 18px 92px 18px 32px;
  border-radius: 36px;
  font-size: 18px;
  font-weight: 250;
  letter-spacing: -0.08px;
  color: black;
  -webkit-autofill: none;
  -webkit-box-shadow: 0 0 0 1000px white inset;
  box-shadow: 0 0 0 1000px white inset;
}
.content .input-form form input::placeholder {
  color: #999;
  opacity: 1;
}
.content .input-form form input::-webkit-input-placeholder {
  color: #999;
  opacity: 1;
}
.content .input-form form input::-moz-placeholder {
  color: #999;
  opacity: 1;
}
.content .input-form form input:-ms-input-placeholder {
  color: #999;
  opacity: 1;
}
.content .input-form form input:focus {
  border: 4px solid #E72223;
}
.content .input-form form button {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -30px;
  padding: 20px;
  background-size: 100%;
  right: 7px;
  border-radius: 36px;
  height: 60px;
  border: none;
  padding: 30px 40px;
}
.content .bottom-info .about {
  max-width: 770px;
  margin: 80px auto;
  text-align: center;
}
.content .bottom-info .about p {
  font-weight: 300;
  margin-top: 10px;
}
.content .bottom-info .how-to-use {
  margin: 0 -35px 0 -35px;
}
.content .bottom-info .how-to-use .row {
  gap: 20px;
  color: black;
  font-weight: 300;
  margin-top: 30px;
}
.content .bottom-info .how-to-use .row .item {
  width: 25%;
  flex: 1;
  position: relative;
  background: #f5f5f5;
  padding: 30px 30px 30px 60px;
  border-radius: 30px;
}
.content .bottom-info .how-to-use .row .item .num {
  font-size: 24px;
  color: #E72223;
  font-size: 28px;
  font-weight: 900;
  position: absolute;
  left: 27px;
  top: 30px;
}
.content .bottom-info .how-to-use .row .item span {
  font-size: 20px;
  line-height: 28px;
}
.content .bottom-info .how-to-use .row .item p {
  margin-top: 10px;
  font-weight: 400;
}
.content .bottom-info .faq {
  max-width: 900px;
  margin: 60px auto 40px;
}
.content .bottom-info .faq .caption {
  font-size: 32px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}
.content .bottom-info .faq .faq-list {
  margin-top: 30px;
}
.content .bottom-info .faq .faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}
.content .bottom-info .faq .faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.content .bottom-info .faq .faq-question {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
  transition: color 0.2s;
  user-select: none;
}
.content .bottom-info .faq .faq-question:hover {
  color: #E72223;
}
.content .bottom-info .faq .faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #E72223;
  transition: transform 0.3s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content .bottom-info .faq .faq-item.active .faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}
.content .bottom-info .faq .faq-answer {
  font-size: 15px;
  font-weight: 300;
  color: #666;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 0;
}
.content .bottom-info .faq .faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 0 0 20px 0;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}
footer {
  margin-top: 60px;
  padding: 20px 0;
  text-align: center;
}
footer p {
  max-width: 970px;
  margin: 5px auto;
  font-weight: 300;
}
.md-overlay {
  width: 100%;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  height: 100%;
  visibility: hidden;
}
.close {
  position: absolute;
  cursor: pointer;
  right: 20px;
  top: 20px;
  width: 44px;
  background: url('../img/icon-close.svg') center center no-repeat;
  height: 44px;
  background-size: 100%;
}
.close:hover {
  opacity: 0.8;
}
.bottom-info {
  padding: 0 15px;
}
#media-container {
  max-width: 800px;
  margin: 40px auto 30px;
}
.media-item {
  margin: 20px 0;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.media-left {
  flex: 0 0 auto;
  max-width: 60%;
}
.media-right {
  flex: 1;
    min-width: 0;
}
@media (max-width: 940px) {
  .content .bottom-info .how-to-use {
    margin: 0 0px 0 0px;
  }
  .content .bottom-info .how-to-use .row .item {
    width: 48%;
    flex: auto;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 20px;
  }
  .container {
    max-width: 534px;
    min-width: 360px;
    padding: 0 10px;
  }
  header .language {
    position: static;
  }
  header .language .current {
    background: inherit;
    padding: 0;
    margin-top: -5px;
  }
  header .language .current p {
    display: none;
  }
  header .language .current span {
    width: 40px;
    height: 40px;
    background-size: 100%;
  }
  header .language .dropdown {
    width: 100%;
    border-radius: 0;
    z-index: 1;
    padding: 130px 24px 300px 24px;
    top: 0;
    text-align: center;
  }
  header .language .dropdown li:first-of-type {
    display: block;
  }
  .content .top-title {
    padding: 70px 15px 0;
  }
  .input-form {
      margin-top: 70px;
  }
  .content .top-title p {
    line-height: 130%;
  }
  .content .top-title p span {
    margin-top: 20px;
    font-size: 60px;
  }
  .content .input-form form input {
    font-size: 22px;
  }
  .content .bottom-info .about {
    text-align: left;
    margin-bottom: 50px;
  }
  .content .bottom-info .about .caption {
    text-align: left;
  }
  .content .bottom-info .how-to-use .caption {
    text-align: left;
    line-height: 40px;
  }
  .content .bottom-info .how-to-use .row {
    margin-left: 10px;
  }
  .content .bottom-info .how-to-use .row .item {
    width: 100%;
    flex: auto;
  }
  .content .bottom-info .how-to-use .row .item span {
    font-size: 28px;
  }
  .content .bottom-info .how-to-use .row .item p {
    font-size: 20px;
  }
  .content .bottom-info .faq {
    margin: 40px 15px 30px;
  }
  .content .bottom-info .faq .caption {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 40px;
  }
  .content .bottom-info .faq .faq-list {
    margin-top: 20px;
  }
  .content .bottom-info .faq .faq-item {
    margin-bottom: 12px;
  }
  .content .bottom-info .faq .faq-question {
    padding: 15px 35px 15px 0;
  }
  .content .bottom-info .faq .faq-question::after {
    font-size: 20px;
    width: 25px;
    height: 25px;
  }
  .content .bottom-info .faq .faq-answer {
    font-size: 14px;
  }
  .content .bottom-info .faq .faq-item.active .faq-answer {
    padding: 0 0 15px 0;
  }
  footer p {
    font-size: 16px;
    line-height: 24px;
  }
  .media-left {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .media-item {
    flex-direction: column;
  }
}
