@keyframes rf-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.header-mobile {
  padding-bottom: 48px;
}

.rf-form {
  --rf-input-text-color: #0f172a;
  --rf-input-border-color: #e5e7eb;
  --rf-input-background-color: #fff;
  --rf-input-focus-ring-color: #3b82f6;
  --rf-input-font-size: 14px;
  --rf-input-radius: 6px;
  --rf-field-error-color: #ef4444;
  --rf-alert-success-text-color: #fff;
  --rf-alert-success-background-color: #22c55e;
  --rf-alert-error-text-color: #fff;
  --rf-alert-error-background-color: #ef4444;
  --rf-loader-text-color: #fff;
  --rf-loader-background-color: rgb(43 44 51 / 75%);

  width: 100%;
  max-width: 328px;
}

@media screen and (max-width: 475px) {
  .rf-form,
  .payment-methods {
    max-width: 80%;
  }
}

.rf-form__content {
  position: relative;
  box-sizing: border-box;
  border-radius: inherit;
}

.rf-form__content > * + * {
  margin-top: 16px;
}

.rf-form__content > :last-child {
  margin-top: 20px;
}

.rf-form__loader {
  position: absolute;
  z-index: 1;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--rf-loader-text-color);
  background: var(--rf-loader-background-color);
  border-radius: 8px;
}

.rf-form__loader::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  border-width: 5px;
  border-style: solid;
  border-color: currentColor transparent currentColor transparent;
  animation: rf-spin 1.2s linear infinite;
}

.rf-form-field {
  width: 100%;
}

.rf-form-field__error {
  line-height: 1.25;
  display: none;
  width: 100%;
  margin-top: 8px;
  color: var(--rf-field-error-color);
}

.rf-form-input {
  font-size: var(--rf-input-font-size);
  line-height: 24px;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  color: var(--rf-input-text-color);
  background-color: var(--rf-input-background-color);
  border: 0 solid var(--rf-input-border-color);
  border-radius: var(--rf-input-radius);
  appearance: none;
}

.rf-form-input:focus {
  border-color: var(--rf-input-focus-ring-color);
  box-shadow: 0 0 0 2px var(--rf-input-focus-ring-color);
}

.rf-alert {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 6px;
}

.rf-alert_error {
  color: var(--rf-alert-error-text-color);
  background: var(--rf-alert-error-background-color);
}

.rf-alert_success {
  color: var(--rf-alert-success-text-color);
  background: var(--rf-alert-success-background-color);
}

.rf-alert__icon {
  flex-shrink: 0;
  width: auto;
}

.rf-alert__content {
  font-size: 14px;
  line-height: 1.25;
  padding-left: 12px;
}

.rf-alert__content > * {
  margin: 0;
  padding: 0;
}

.rf-alert__content > * + * {
  margin-top: 0.5em;
}

.rf-alert__content > h1,
.rf-alert__content > h2,
.rf-alert__content > h3,
.rf-alert__content > h4,
.rf-alert__content > h5,
.rf-alert__content > h6 {
  font-size: inherit;
  font-weight: 600;
}

.rf-alert__content > ul,
.rf-alert__content > ol {
  padding-left: 1.5em;
}

.iti {
  --iti-path-flags-1x: url("../images/flags.png");
  --iti-path-flags-2x: url("../images/flags@2x.png");
  --iti-path-globe-1x: url("../images/globe.png");
  --iti-path-globe-2x: url("../images/globe@2x.png");
}

.rf-form-field .iti {
  width: 100%;
}

.rf-form-field .iti__flag-container {
  padding: 0;
}

.rf-form-field .iti__selected-dial-code {
  font-size: var(--rf-input-font-size);
}

/* "Beltvan Vornix nedir?" background section (ported from ref bg-text, adapted to land tokens) */
.vornix-about {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 0 0 330px 0;
}

.vornix-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background-image: url("../images/bgv2-1-desk.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: -1;
}

.vornix-about__container {
  position: relative;
  z-index: 2;
  top: 330px;
  width: 100%;
  max-width: 84rem;
  margin: 0 auto;
  padding: 40px 16px;
  background: linear-gradient(to bottom, rgba(42, 44, 52, 0) 0%, #2a2c34 10%, #2a2c34 100%);
}

.vornix-about__text {
  color: #e5e3df;
  font-size: 16px;
  line-height: 24px;
}

.vornix-about__text p {
  margin: 0;
}

.vornix-about__text p + p {
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .vornix-about {
    padding: 0;
    background-image: url("../images/bgv2-1-desk.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .vornix-about::before {
    display: none;
  }

  .vornix-about::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 43%;
    width: 57%;
    height: 100%;
    background: linear-gradient(90deg, rgba(42, 44, 52, 0) 0.17%, #2a2c34 15.25%);
  }

  .vornix-about__container {
    top: 0;
    display: flex;
    justify-content: flex-end;
    padding: 80px 60px;
    background: linear-gradient(90deg, rgba(42, 44, 52, 0) 41.17%, #2a2c34 47.25%);
  }

  .vornix-about__panel {
    position: relative;
    z-index: 2;
    max-width: 45%;
  }

  .vornix-about__text {
    font-size: 18px;
    line-height: 26px;
  }
}

/* SSS / FAQ accordion (ported from ref faq-section, Alpine-driven) */
.faq-section {
  background: #fff;
}

.faq-title {
  margin: 0;
  color: #0d1210;
  font-family: "Encode Sans Expanded", sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 32px;
}

.faq-item {
  margin: 0 0 6px 0;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-question > img {
  flex-shrink: 0;
}

.faq-text {
  flex: 1;
  font-size: 16px;
  font-weight: 900;
  line-height: 28px;
  color: #546880;
}

.faq-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  display: inline-flex;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 24px 20px;
  font-size: 14px;
  line-height: 28px;
  color: #4a5568;
}

@media (min-width: 1024px) {
  .faq-title {
    font-size: 28px;
    line-height: 36px;
  }

  .faq-question {
    padding: 20px 32px;
  }

  .faq-text {
    font-size: 18px;
  }

  .faq-answer p {
    padding: 0 32px 28px 32px;
    font-size: 16px;
  }
}
