* {
  /* border: 1px solid red !important; */
}

body {
  font-family: "Cairo", sans-serif;
}

/* International Telephone Input Styles for RTL */
.iti {
  width: 100%;
  direction: rtl;
}

.iti__flag-container {
  left: auto;
  right: 0;
}

.iti__selected-flag {
  padding: 0 8px 0 6px;
}

.iti__arrow {
  margin-right: 6px;
  margin-left: 0;
}

.iti__country-list {
  text-align: right;
  direction: rtl;
}

.iti__dial-code {
  padding-left: 6px;
  padding-right: 0;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type="text"],
.iti--allow-dropdown input[type="tel"],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type="text"],
.iti--separate-dial-code input[type="tel"] {
  padding-right: 100px !important;
  padding-left: 16px !important;
  direction: ltr;
  text-align: left;
}

.iti__selected-dial-code {
  font-family: "Cairo", sans-serif;
}

.iti__country-name {
  font-family: "Cairo", sans-serif;
  margin-right: 6px;
  margin-left: 6px;
}

/* Make sure the dropdown appears correctly */
.iti__country-list {
  z-index: 100;
  max-height: 200px;
  overflow-y: scroll;
}

/* Form Validation Styles */
.error-message {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #dc2626;
}

input.error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

input.error:focus {
  ring-color: #dc2626 !important;
}

input.success {
  border-color: #16a34a !important;
}

.decorative-image {
  position: absolute;
  left: 0;
  bottom: -15%;
  width: clamp(250px, 30vw, 425px);
  height: auto;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .decorative-image {
    left: -10%;
    bottom: 5%;
    width: clamp(180px, 35vw, 300px);
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .decorative-image {
    left: -15%;
    bottom: 2%;
    width: clamp(150px, 40vw, 250px);
    opacity: 0.6;
  }
}

.footer-section {
  background: #daece2;
  padding: 90px 36px;
  font-family: "IBM Plex Sans", "Noto Sans Arabic", -apple-system, Roboto,
    Helvetica, sans-serif;
}

.footer-container {
  max-width: 1368px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-logo-wrapper {
  flex-shrink: 0;
}

.footer-logo {
  width: 103px;
  height: 122px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.footer-heading {
  color: #1c1c1c;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 26.5px;
}

/* About Us Column */
.about-column {
  width: auto;
  max-width: 316.5px;
}

.about-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 27px;
  width: 100%;
}

.about-text {
  color: #1c1c1c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  width: 100%;
  margin: 0;
}

.social-media-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 184px;
}

.social-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Links Column */
.links-column {
  width: 264px;
}

.links-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 35.25px;
}

.links-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-link {
  color: #2e2e2e;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-link:hover {
  color: #1c1c1c;
}

/* Payment Methods Column */
.payment-methods-column {
  width: 363px;
}

.payment-logos-grid {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7.5px;
  width: 100%;
}

.payment-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 7.5px;
  height: 24px;
}

.payment-logo-wrapper.stc-pay {
  background: #e4ffe5;
  padding: 4.5px 17.25px 3.75px 17.25px;
  width: 95.25px;
}

.payment-logo-wrapper.vodafone {
  background: #fff;
  padding: 3px 12px 2.25px 11.25px;
  width: 95.25px;
}

.payment-logo-wrapper.tabby,
.payment-logo-wrapper.tamara {
  width: 75px;
}

.payment-logo-wrapper.tabby img {
  border-radius: 6.75px;
}

.payment-logo-wrapper.mastercard {
  background: #00579f;
  padding: 3px 33px 3px 32.25px;
  width: 95.25px;
}

.payment-logo-wrapper.visa {
  background: #f8efdf;
  padding: 4.5px 25.5px 4.5px 24.75px;
  width: 95.25px;
}

.payment-logo-wrapper.fawry {
  background: #fff;
  padding: 4.5px 18px 4.5px 17.25px;
  width: 95.25px;
}

.payment-logo {
  width: auto;
  height: auto;
  max-height: 19px;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .footer-container {
    gap: 48px;
  }

  .payment-methods-column,
  .links-column,
  .about-column {
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 60px 24px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .footer-logo-wrapper {
    order: -1;
  }

  .footer-column {
    width: 100%;
    max-width: 400px;
  }

  .payment-logos-grid {
    justify-content: center;
  }

  .links-wrapper {
    justify-content: flex-start;
    width: 100%;
  }

  .about-text-wrapper {
    align-items: center;
    text-align: center;
  }

  .social-media-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-section {
    padding: 40px 16px;
  }

  .footer-container {
    gap: 32px;
  }

  .footer-heading {
    font-size: 16px;
    text-align: center;
  }

  .payment-logos-grid {
    gap: 6px;
  }

  .payment-logo-wrapper {
    transform: scale(0.9);
  }

  .about-text {
    font-size: 14px;
  }

  .footer-logo {
    width: 80px;
    height: auto;
  }
}

/* CTA Section Styles */
.cta-section {
  background: url("/assets/cta-background.png") center / cover no-repeat;
  padding: 93px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 374px;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 731px;
  width: 100%;
}

.cta-title {
  color: #fff;
  text-align: center;
  font-family: Cairo, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.cta-subtitle {
  color: #fff;
  text-align: center;
  font-family: Cairo, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.cta-button {
  width: 278px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00b34f 0%, #00d95f 100%);
  color: #fff;
  text-align: center;
  font-family: Cairo, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 13px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: linear-gradient(135deg, #00d95f 0%, #00b34f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 179, 79, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 24px;
    min-height: 300px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-subtitle {
    font-size: 16px;
  }

  .cta-button {
    width: 100%;
    max-width: 278px;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 40px 16px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-subtitle {
    font-size: 14px;
  }
}

/* List Square Style */
.list-square {
  list-style-type: square;
}

/* FAQ Section Styles */
.faq-item {
  border-radius: 16px;
  transition: all 0.3s ease;
}

.faq-item.active {
  background: rgba(232, 236, 244, 0.4);
}

.faq-question-button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
  flex-shrink: 0;
}

.faq-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.faq-question-title {
  color: #111;
  text-align: right;
  font-family: Cairo, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

.faq-answer {
  padding: 0 32px 32px 32px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: 32px;
}

.faq-answer-text {
  color: #7b7b7b;
  text-align: right;
  font-family: Cairo, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .faq-question-button {
    padding: 24px 16px;
    gap: 16px;
  }

  .faq-question-title {
    font-size: 16px;
    line-height: 26px;
  }

  .faq-answer {
    padding: 0 16px 24px 16px;
    padding-right: 56px;
  }

  .faq-answer-text {
    font-size: 14px;
    line-height: 24px;
  }
}
