.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-header h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-weight: 700;
}

.pricing-header h2 {
  margin: 0;
  font-weight: 500;
  font-size: 20px
}

.pricing-header .muted {
  font-size: 20px;
  margin: 0;
}

button {
  color: #fff;
  background: #3da05e;
}

button:hover {
  background: #3d3d3d;
}

/* intl-tel-input wrapper is effectively around the phone input, not in series or parallel
   with it in any electrical sense; visually it needs to inherit the same full-width behavior. */
.iti {
  width: 100%;
}

.iti input,
.iti__tel-input {
  width: 100%;
}

/* Make the plugin's control match your input theme */
.iti__tel-input {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 14px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
}

.iti__tel-input:hover {
  border-color: var(--input-border-hover);
}

.iti__tel-input:focus {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.16);
  background: #151b25;
}

/* Country selector styling */
.iti__selected-country {
  color: var(--text);
}

.iti__country-container .iti__selected-country {
  background: transparent;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.iti__dropdown-content {
  background: #121720;
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.iti__country {
  color: var(--text);
}

.iti__country:hover,
.iti__country.iti__highlight {
  background: rgba(255, 255, 255, 0.06);
}

.iti__search-input {
  background: #151b25;
  color: var(--text);
  border: 1px solid var(--input-border);
}

fieldset {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  background: var(--panel);
}

legend {
  padding: 0 8px;
  font-size: 13px;
  color: #c5cdd8;
}

.error {
  margin-top: 12px;
  color: var(--error-text);
  font-size: 14px;
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  border-radius: 12px;
  padding: 12px 14px;
}

.fineprint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.fineprint-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fineprint-link:hover {
  color: var(--text);
}

.register-pay-section {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 0 16px 16px 16px;
  margin-top: 10px;
  margin-bottom: 0;
  background: var(--panel);
}

.register-pay-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #d7dde6;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.register-pay-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.register-payment-element {
  width: 100%;
}

.sms-consent {
  margin-top: 12px;
}

.sms-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.sms-consent__label input[type='checkbox'] {
  width: auto;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.payment-loading {
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.payment-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(243, 245, 247, 0.35);
  border-top-color: transparent;
  border-radius: 50%;
  animation: payment-loading-spin 0.8s linear infinite;
}

@keyframes payment-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

#registerForm #submitBtn {
  margin-top: 12px;
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(11, 13, 16, 0.35);
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .wrap {
    margin: 40px auto;
    padding: 0 14px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .pricing-header h1 {
    font-size: 26px;
  }

  fieldset {
    padding: 14px;
    border-radius: 14px;
  }

  .register-pay-section {
    padding: 14px;
    border-radius: 14px;
    margin-top: 8px;
  }

  #registerForm #submitBtn {
    margin-top: 10px;
  }
}
