/* Shared: phone row + OTP suffix icon + modal (contact-us, register, become-a-sponsor) */
.phone-with-prefix {
  display: flex;
  align-items: stretch;
  gap: 0px;
  flex-wrap: nowrap;
  height: 55px;
}

.phone-prefix {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5em;
  padding: 0 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px 0px 0px 8px;
  font-size: 0.95rem;
  color: #333;
  box-sizing: border-box;
}

.phone-input-suffix-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 0px 4px 4px 0px;
  overflow: hidden;
  background: #fff;
}

.phone-input-suffix-wrap:focus-within {
  border-color: #b0b0b0;
}

.phone-input-suffix-wrap input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 12px;
}

.otp-suffix-btn {
  flex-shrink: 0;
  width: 46px;
  border: 0;
  border-left: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  color: #c62828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.otp-suffix-btn:hover:not(:disabled) {
  background: #ececec;
}

.otp-suffix-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.otp-suffix-btn.verified {
  background: #e8f5e9;
  color: #0a7a33;
  pointer-events: none;
}

.otp-suffix-btn.is-loading {
  cursor: wait;
}

.otp-suffix-icon {
  line-height: 1;
}

.otp-status-message {
  display: none;
  font-size: 0.95rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.otp-status-message.otp-status-fading {
  opacity: 0;
}

.otp-status-inline {
  margin-top: 6px;
}

.otp-status-message.success {
  color: #0a7a33;
}

.otp-status-message.error {
  color: #c62828;
}

.otp-status-message.info {
  color: #666;
}

.otp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.otp-modal.is-open {
  display: flex;
}

.otp-modal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  position: relative;
}

.otp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #777;
  cursor: pointer;
}

.otp-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #111;
}

.otp-modal-card p {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.5;
}

.otp-modal-phone {
  font-weight: 600;
  color: #111;
  word-break: break-word;
}

.otp-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.otp-resend-slot {
  display: inline-flex;
  align-items: center;
  min-height: 2.5em;
}

.otp-resend-countdown {
  color: #c62828;
  font-size: 0.95rem;
  line-height: 1.4;
  user-select: none;
}

.otp-modal-actions .btn {
  min-width: 140px;
}

.otp-resend-link {
  background: transparent;
  border: 0;
  color: #c62828;
  padding: 0;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .otp-modal-card {
    padding: 20px;
  }

  .otp-modal-actions .btn {
    width: 100%;
  }
}