/* Hide unwanted form elements */
.form__tabs,
.form__field-phone,
.form__field-label,
.form__cur-code-block-container,
.form__field-currency,
.form__field-email,
.form__phone-code-list,
.form__checkbox-item,
.form [data-form="phone"],
.form [data-form="email"],
.form__login-row {
  display: none !important;
}

/* Form Base */
.form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 0 0;
  font-family: 'Roboto', sans-serif;
  color: #fff;
}

/* Tabs */
.form__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.form__tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form__tab:first-child {
  border-radius: 8px 0 0 8px;
}

.form__tab:last-child {
  border-radius: 0 8px 8px 0;
}

.form__tab.active {
  background: linear-gradient(180deg, #c9a44a 0%, #a07b2e 100%);
  color: #fff;
  border-color: #c9a44a;
  font-weight: 700;
}

/* Fields Container */
.form__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Field Label */
.form__field-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  margin-top: 8px;
  font-weight: 500;
}

/* Field */
.form__field {
  position: relative;
}

.form__field input[type="text"],
.form__field input[type="tel"],
.form__field input[type="email"],
.form__field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form__field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form__field input:focus {
  border-color: #c9a44a;
}

.form__field input.error {
  border-color: #ff4444;
}

/* Phone Field */
.form__field-phone {
  position: relative;
}

.form__field-phone input[type="tel"] {
  padding-left: 90px;
}

.form__field-phone input[type="tel"].long-code {
  padding-left: 110px;
}

.form__cur-code-block-container {
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  z-index: 2;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px 0 0 8px;
  background: rgba(0, 0, 0, 0.2);
  gap: 6px;
}

.form__cur-code-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form__phone-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.form__cur-code-number {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* Phone Code Dropdown */
.form__phone-code-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 0 8px 8px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.form__phone-code-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s;
}

.form__phone-code-list-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.form__phone-code-list-item img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

/* Email Field */
.form__field-email {
  position: relative;
}

/* Password Toggle */
.form__password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form__password-eye-cover {
  width: 20px;
  height: 20px;
  position: relative;
}

.form__password-eye-inner {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.form__field-email.show .form__password-eye-inner {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21'/%3E%3C/svg%3E");
}

/* Currency Field */
.form__field-currency {
  position: relative;
}

.form__select-currency-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.form__select-currency-button:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.form__select-currency-icon {
  font-size: 18px;
  line-height: 1;
}

.form__select-currency-iso {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.form__select-currency-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: auto;
}

/* Currency Dropdown */
.form__select-currency-list,
.form__currency-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 0 8px 8px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.form__select-currency-list-item,
.form__currency-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s;
}

.form__select-currency-list-item:hover,
.form__currency-list-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Checkboxes */
.form__checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.form__checkmark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
  margin-top: 1px;
}

[data-checked="checked"] .form__checkmark {
  background: #c9a44a;
  border-color: #c9a44a;
}

[data-checked="checked"] .form__checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__checkbox-text {
  line-height: 1.4;
}

.form__checkbox-text a {
  color: #c9a44a;
  text-decoration: underline;
}

/* Progress Bar */
.form__progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.form__progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #c9a44a, #f0d878);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.form__progress-bar-inner.form__progress-bar-full {
  background: linear-gradient(90deg, #4caf50, #66cc66);
}

/* Submit Button */
.form__btn-submit {
  margin-top: 12px;
}

.form-btn-f {
  width: 100%;
  cursor: pointer;
}

.form-btn-f__inner {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(180deg, #c9a44a 0%, #a07b2e 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: var(--form-button-font-size, 20px);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(201, 164, 74, 0.4);
  letter-spacing: 0.5px;
}

.form-btn-f__inner:hover {
  background: linear-gradient(180deg, #d4b05a 0%, #b08c3e 100%);
  box-shadow: 0 6px 20px rgba(201, 164, 74, 0.6);
  transform: translateY(-1px);
}

.form-btn-f__inner:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(201, 164, 74, 0.3);
}

/* Button Variants */
.form-btn-f-v2 .form-btn-f__inner {
  font-size: var(--form-button-font-size, 20px);
  padding: 16px 24px;
  border-radius: 10px;
}

/* Login Row */
.form__login-row {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.form__login-row a {
  color: #c9a44a;
  text-decoration: underline;
  margin-left: 5px;
  cursor: pointer;
}

.form__login-row a:hover {
  color: #f0d878;
}

/* Promocode Field */
.form__field input[name="form_key"] {
  width: 100%;
}

/* Push Notifications */
.push-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.push {
  display: none;
  background: #ff4444;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(100%);
}

.push.show {
  opacity: 1;
  transform: translateX(0);
}

.push.hide {
  opacity: 0;
  transform: translateX(100%);
}

.push-inner {
  display: flex;
  align-items: center;
}

/* Dropdown (language/geo selector) */
.dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown__item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown__item.active {
  background: rgba(201, 164, 74, 0.2);
}

.dropdown__country {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.dropdown__abbreviation {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

/* Scrollbar for dropdowns */
.form__phone-code-list::-webkit-scrollbar,
.form__select-currency-list::-webkit-scrollbar,
.form__currency-list::-webkit-scrollbar {
  width: 6px;
}

.form__phone-code-list::-webkit-scrollbar-track,
.form__select-currency-list::-webkit-scrollbar-track,
.form__currency-list::-webkit-scrollbar-track {
  background: transparent;
}

.form__phone-code-list::-webkit-scrollbar-thumb,
.form__select-currency-list::-webkit-scrollbar-thumb,
.form__currency-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Responsive */
@media screen and (orientation: portrait) and (max-width: 600px) {
  .form {
    max-width: 100%;
    padding: 10px 0 0;
  }

  .form__field input[type="text"],
  .form__field input[type="tel"],
  .form__field input[type="email"],
  .form__field input[type="password"] {
    padding: 11px 12px;
    font-size: 14px;
  }

  .form__field-phone input[type="tel"] {
    padding-left: 85px;
  }

  .form-btn-f__inner {
    font-size: 18px;
    padding: 13px 16px;
  }

  .form__tab {
    padding: 9px 10px;
    font-size: 13px;
  }
}
