/* ============================================
   Moon Form - HTML Injection Style Overrides
   Version: v2.0.0
   Last Updated: 2024-11-23
   Purpose: ALL form content styles for injected HTML
   Loaded from: https://www.withmoon.com/js_forms/WF_CSS_override.css
   ============================================ */

/* ============================================================================
   CRITICAL: Rules WITHOUT .w-embed wrapper for injected HTML
   These duplicate the .w-embed rules below for forms injected directly
   ============================================================================ */

/* Loading Spinner */
.moon-form-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.moon-form-loader .moon-form-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Form Steps */
.mf-step {
  display: none;
}

.mf-step.moon-form-active {
  display: block;
}

/* Typography */
.moon-form-form-content h2 {
  margin-bottom: 8px;
}

.mf-step-description {
  margin-bottom: 24px;
  color: #666;
}

/* Form Groups & Labels */
.mf-group {
  margin-bottom: 20px;
}

.moon-form-form-content label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.mf-req {
  color: #e74c3c;
  margin-left: 2px;
}

/* Inputs & Textareas */
.moon-form-form-content input[type="text"],
.moon-form-form-content input[type="email"],
.moon-form-form-content input[type="tel"],
.moon-form-form-content input[type="url"],
.moon-form-form-content input[type="number"],
.moon-form-form-content textarea,
.moon-form-form-content select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  background-color: #fff;
  transition: border-color 0.2s;
}

.moon-form-form-content input:focus,
.moon-form-form-content textarea:focus,
.moon-form-form-content select:focus {
  outline: none;
  border-color: #3498db;
}

.moon-form-form-content input:disabled,
.moon-form-form-content textarea:disabled,
.moon-form-form-content select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.mf-fill {
  background-color: #f0f8ff !important;
  border-color: #3498db !important;
}

/* Currency Inputs */
.moon-form-form-content input[id*="capital"],
.moon-form-form-content input[id*="budget"],
.moon-form-form-content input[id*="Volume"],
.moon-form-form-content input[id*="Spending"],
.moon-form-form-content input[id*="limit_"],
.moon-form-form-content input[id*="spend"],
.moon-form-form-content input[id*="sof_"],
.moon-form-form-content input[id*="Spend"],
.moon-form-form-content .mf-curr input {
  text-align: right;
}

.moon-form-form-content input::placeholder,
.moon-form-form-content textarea::placeholder,
.moon-form-form-content select::placeholder {
  color: #999;
  opacity: 0.7;
}

.moon-form-form-content select {
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M6 8L0 2 1.41.59 6 5.17 10.59.59 12 2z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.moon-form-form-content textarea {
  min-height: 100px;
}

.mf-help {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Currency Field Wrapper */
.mf-curr {
  position: relative;
  display: block;
}

.mf-curr::before {
  content: "$";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  z-index: 10;
}

.mf-curr input {
  padding-left: 32px !important;
  padding-right: 16px !important;
  text-align: right !important;
}

/* Number Field Wrapper */
.mf-num {
  position: relative;
}

.mf-num input {
  padding-right: 32px !important;
  text-align: left !important;
}

.mf-num input::-webkit-inner-spin-button,
.mf-num input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mf-num input:focus {
  border-color: #3498db;
}

/* Buttons */
.mf-btns {
  margin-top: 32px;
  display: flex;
  gap: 12px;
}

.moon-form-form-content button {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.mf-btn-next,
.mf-btn-continue,
.mf-btn-1,
.mf-btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  flex: 1;
}

.mf-btn-next:hover:not(:disabled),
.mf-btn-continue:hover:not(:disabled),
.mf-btn-1:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.mf-btn-next:disabled,
.mf-btn-continue:disabled,
.mf-btn-1:disabled,
.mf-btn-disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.mf-btn-2 {
  background: #fff;
  color: #667eea;
  border: 2px solid #667eea !important;
}

.mf-btn-2:hover {
  background: #f8f9ff;
  transform: translateY(-2px);
}

/* Checkboxes */
.mf-checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mf-checks label {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mf-checks label:hover {
  background-color: #f5f5f5;
}

.mf-checks input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Source of Funds - Enterprise fields hidden by default */
.sof-enterprise {
  display: none;
}

/* ============================================================================
   FORM CONTENT & STEPS (Original .w-embed prefixed rules)
   ============================================================================ */

/* Loading Spinner */
.w-embed .moon-form-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 364px;
  padding: 40px;
}

.w-embed .moon-form-loader .moon-form-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #0079fb;
  border-radius: 50%;
  animation: moon-form-spin 1s linear infinite;
}

.w-embed .mf-step {
  display: none;
  animation: moon-form-fadeIn 0.4s ease;
}

.w-embed .mf-step.moon-form-active {
  display: block;
}

@keyframes moon-form-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w-embed .moon-form-form-content h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.w-embed .mf-step-description {
  color: #666;
  margin-bottom: 30px;
  font-size: 14px;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

.w-embed .mf-group,
#js-form-imported-html .mf-group {
  margin-bottom: 20px !important;
  position: relative; /* Needed for country autocomplete dropdown positioning */
}

.w-embed .moon-form-form-content label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

/* Style for required field indicator */
.w-embed .mf-req {
  color: #f44336;
}

/* Input field base styles - override Webflow defaults */
.moon-form-form-content input[type="text"],
.moon-form-form-content input[type="email"],
.moon-form-form-content input[type="tel"],
.moon-form-form-content input[type="url"],
.moon-form-form-content textarea,
.moon-form-form-content select {
  padding: 12px 16px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: white !important;
  transition: border-color 0.3s ease !important;
  font-family: inherit !important;
  line-height: normal !important;
  color: inherit !important;
  display: inline-block !important;
  text-align: start !important;
  appearance: auto !important;
  cursor: text !important;
}

/* Input field focus states */
.moon-form-form-content input:focus,
.moon-form-form-content textarea:focus,
.moon-form-form-content select:focus {
  outline: none !important;
  border-color: #667eea !important;
}

.w-embed .moon-form-form-content input:disabled,
.w-embed .moon-form-form-content textarea:disabled,
.w-embed .moon-form-form-content select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.w-embed .mf-fill {
  background-color: #f0f9ff !important;
  border-color: #bae6fd !important;
}

/* Right-align currency input fields */
.w-embed .moon-form-form-content input[id*="capital"],
.w-embed .moon-form-form-content input[id*="budget"],
.w-embed .moon-form-form-content input[id*="Volume"],
.w-embed .moon-form-form-content input[id*="Spending"],
.w-embed .moon-form-form-content input[id*="limit_"],
.w-embed .moon-form-form-content input[id*="spend"],
.w-embed .moon-form-form-content input[id*="sof_"],
.w-embed .moon-form-form-content input[id*="Spend"],
.w-embed .moon-form-form-content .mf-curr input {
  text-align: right !important;
}

/* Lighter placeholder text */
.w-embed .moon-form-form-content input::placeholder,
.w-embed .moon-form-form-content textarea::placeholder,
.w-embed .moon-form-form-content select::placeholder {
  color: #999;
  opacity: 0.4;
}

/* Custom select dropdown styling */
.w-embed .moon-form-form-content select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 20px;
  padding-right: 56px;
  cursor: pointer;
}

.w-embed .moon-form-form-content textarea {
  resize: vertical;
  min-height: 100px;
}

.w-embed .mf-help {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

/* ============================================================================
   CURRENCY FIELD STYLING
   ============================================================================ */

.w-embed .mf-curr {
  position: relative;
  display: block;
  width: 100%;
}

/* USD label on far left */
.w-embed .mf-curr::before {
  content: "USD";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-weight: 500;
  font-size: 13px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.5;
  line-height: 1;
}

.w-embed .mf-curr input {
  padding-left: 60px !important;
  padding-right: 16px !important;
  text-align: right !important;
  width: 100% !important;
  position: relative;
  box-sizing: border-box;
}

/* Number input styling (no currency symbols) */
.w-embed .mf-num {
  position: relative;
}

.w-embed .mf-num input {
  padding-left: 16px;
  padding-right: 16px;
  text-align: right;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.w-embed .mf-num input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* LinkedIn input styling with prefix */
.mf-linkedin {
  position: relative;
  display: block;
  width: 100%;
}

.mf-linkedin::before {
  content: "linkedin.com/in/";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 13px;
  font-weight: 400;
  pointer-events: none;
  z-index: 10;
  opacity: 0.7;
  line-height: 1;
}

.mf-linkedin input {
  padding-left: 140px !important;
  padding-right: 16px !important;
  text-align: left !important;
  width: 100% !important;
}

/* Facebook input styling with prefix */
.mf-facebook {
  position: relative;
  display: block;
  width: 100%;
}

.mf-facebook::before {
  content: "facebook.com/";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 13px;
  font-weight: 400;
  pointer-events: none;
  z-index: 10;
  opacity: 0.7;
  line-height: 1;
}

.mf-facebook input {
  padding-left: 120px !important;
  padding-right: 16px !important;
  text-align: left !important;
  width: 100% !important;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.w-embed .mf-btns {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.w-embed .moon-form-form-content button {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Standard Next/Continue buttons */
.w-embed .mf-btn-next,
.w-embed .mf-btn-continue,
.w-embed .mf-btn-1,
#js-form-imported-html .mf-btn-next,
#js-form-imported-html .mf-btn-continue,
#js-form-imported-html .mf-btn-1,
#js-form-imported-html button[type="submit"] {
  background: #0079fb !important;
  color: white !important;
  padding: 16px 32px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  opacity: 1 !important;
}

.w-embed .mf-btn-next:hover:not(:disabled),
.w-embed .mf-btn-continue:hover:not(:disabled),
.w-embed .mf-btn-1:hover:not(:disabled) {
  opacity: 1 !important;
  transform: translateY(-2px);
}

.w-embed .mf-btn-next:disabled,
.w-embed .mf-btn-continue:disabled,
.w-embed .mf-btn-1:disabled,
.w-embed .mf-btn-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Final Submit button */
.w-embed .mf-btn-submit,
#js-form-imported-html .mf-btn-submit,
#js-form-imported-html button[type="submit"] {
  background: rgb(0, 121, 251) !important;
  color: white !important;
  padding: 16px 32px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  opacity: 1 !important;
}

.w-embed .mf-btn-submit:hover:not(:disabled) {
  opacity: 1 !important;
  transform: translateY(-2px);
}

.w-embed .mf-btn-submit:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.w-embed .mf-btn-2 {
  background: #f5f5f5;
  color: #333;
}

.w-embed .mf-btn-2:hover {
  background: #e0e0e0;
}

/* ============================================================================
   SUBMITTING STATE
   ============================================================================ */

.w-embed .submitting-message {
  text-align: center;
  padding: 60px 20px;
}

.w-embed .moon-form-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  margin: 0 auto 30px;
  animation: moon-form-spin 1s linear infinite;
}

@keyframes moon-form-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.w-embed .submitting-message h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.w-embed .submitting-message p {
  color: #666;
  font-size: 16px;
}

/* ============================================================================
   SUCCESS MESSAGE
   ============================================================================ */

.w-embed .moon-form-success-message,
.w-embed .success-message {
  text-align: center;
  padding: 40px;
}

.w-embed .moon-form-success-icon,
.w-embed .success-icon {
  width: 80px;
  height: 80px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 40px;
}

/* ============================================================================
   EXPANDABLE SECTIONS
   ============================================================================ */

.w-embed .mf-exp {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.w-embed .mf-toggle {
  width: 100%;
  background: #f8f9fa;
  border: none;
  padding: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.w-embed .mf-toggle:hover {
  background: #e9ecef;
}

.w-embed .mf-toggle:focus {
  outline: 2px solid #667eea;
  outline-offset: -2px;
}

.w-embed .mf-icon {
  margin-right: 12px;
  font-size: 12px;
  transition: transform 0.2s ease;
  color: #667eea;
}

.w-embed .mf-exp.moon-form-expanded .mf-icon {
  transform: rotate(90deg);
}

.w-embed .mf-content {
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  animation: moon-form-slideDown 0.3s ease;
}

@keyframes moon-form-slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

.w-embed .mf-checks {
  margin-top: 8px;
}

.w-embed .mf-checks label {
  display: block;
  margin-bottom: 12px;
  font-weight: normal;
  font-size: 15px;
  color: #374151;
  cursor: pointer;
  transition: color 0.2s ease;
}

.w-embed .mf-checks label:hover {
  color: #111827;
}

.w-embed .mf-checks input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* ============================================================================
   COUNTRY AUTOCOMPLETE DROPDOWN
   ============================================================================ */

.w-embed .mf-country,
#js-form-imported-html .mf-country {
  width: 100%;
}

.w-embed .moon-form-country-dropdown,
#js-form-imported-html .moon-form-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.w-embed .moon-form-country-dropdown div,
#js-form-imported-html .moon-form-country-dropdown div {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.w-embed .moon-form-country-dropdown div:hover,
#js-form-imported-html .moon-form-country-dropdown div:hover {
  background-color: #f5f5f5;
}

/* ============================================================================
   PHONE NUMBER INPUT SYSTEM
   ============================================================================ */

.w-embed .mf-phone-container {
  position: relative;
  width: 100%;
}

.w-embed .mf-phone-inputs-wrapper {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
}

.w-embed .mf-phone-code {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  min-width: 100px;
  max-width: 140px;
  font-size: 15px;
  background: white;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  user-select: none;
  text-align: center;
  font-family: inherit;
  flex-shrink: 0;
}

.w-embed .mf-phone-code:hover {
  border-color: #667eea;
  background-color: #f5f7fa;
}

.w-embed .mf-phone-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.w-embed .mf-phone-input:focus {
  outline: none;
  border-color: #667eea;
}

.w-embed .mf-phone-country-dropdown {
  width: 100%;
  background: white;
  border: 2px solid #667eea;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-height: 250px;
  overflow-y: auto;
  display: none !important;
  margin-top: 8px;
}

.w-embed .mf-phone-country-dropdown[style*="display: block"] {
  display: block !important;
}

/* Phone country dropdown options - must override inline styles */
.w-embed .mf-phone-country-dropdown .mf-phone-option {
  padding: 12px 18px !important;
  margin: 3px 0 !important;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f0f0f0;
}

.w-embed .mf-phone-option:hover {
  background-color: #f5f7fa;
}

.w-embed .mf-phone-option:last-child {
  border-bottom: none;
}

/* Error State Styling */
.w-embed .error-message {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.w-embed .error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #dc2626;
  font-weight: bold;
  line-height: 1;
}

.w-embed .error-message h2 {
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.w-embed .error-message p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

/* ============================================================================
   ADDITIONAL SELECTORS FOR #js-form-imported-html (New Architecture)
   ============================================================================ */

#js-form-imported-html .mf-group {
  margin-bottom: 20px !important;
  position: relative !important; /* Needed for country autocomplete dropdown positioning */
}

#js-form-imported-html .mf-step {
  display: none;
}

#js-form-imported-html .mf-step.moon-form-active {
  display: block !important;
}

#js-form-imported-html h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  color: #333 !important;
}

#js-form-imported-html .mf-step-description {
  color: #666 !important;
  margin-bottom: 24px !important;
  font-size: 15px !important;
}

#js-form-imported-html label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #333 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

#js-form-imported-html .mf-req {
  color: #f44336 !important;
}

#js-form-imported-html input[type="text"],
#js-form-imported-html input[type="email"],
#js-form-imported-html input[type="tel"],
#js-form-imported-html input[type="url"],
#js-form-imported-html textarea,
#js-form-imported-html select {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  transition: border-color 0.3s ease !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  background: white !important;
  margin: 0 !important;
}

#js-form-imported-html input:focus,
#js-form-imported-html textarea:focus,
#js-form-imported-html select:focus {
  outline: none !important;
  border-color: #667eea !important;
}

#js-form-imported-html .mf-help {
  font-size: 12px !important;
  color: #666 !important;
  margin-bottom: 8px !important;
}

#js-form-imported-html .mf-section-header h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #f0f0f0 !important;
}

#js-form-imported-html .mf-btns {
  margin-top: 32px !important;
  display: flex !important;
  gap: 12px !important;
}

#js-form-imported-html button {
  background: #0079fb !important;
  color: white !important;
  padding: 16px 32px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  opacity: 1 !important;
}

#js-form-imported-html .mf-btn-2,
#js-form-imported-html button.mf-btn-2 {
  background: #f5f5f5 !important;
  color: #333 !important;
}

#js-form-imported-html .mf-btn-2:hover,
#js-form-imported-html button.mf-btn-2:hover {
  background: #e0e0e0 !important;
}

#js-form-imported-html button:disabled,
#js-form-imported-html button.mf-btn-disabled,
#js-form-imported-html .mf-btn-next:disabled,
#js-form-imported-html .mf-btn-continue:disabled,
#js-form-imported-html .mf-btn-1:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
  background: #0079fb !important;
  color: white !important;
}

#js-form-imported-html button:hover:not(:disabled) {
  opacity: 1 !important;
  transform: translateY(-2px) !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 640px) {
  .w-embed .moon-form-form-content h2 {
    font-size: 24px;
  }

  .w-embed .mf-btns {
    flex-direction: column;
  }

  .w-embed .mf-toggle {
    padding: 14px;
    font-size: 15px;
  }

  .w-embed .mf-phone-inputs-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .w-embed .mf-phone-code {
    width: 100%;
    min-width: auto;
  }
}

/* ============================================================================
   COUNTRY AUTOCOMPLETE DROPDOWN
   ============================================================================ */

.moon-form-autocomplete-items {
  position: absolute;
  border: 2px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: -2px;
}

.moon-form-autocomplete-items div {
  padding: 12px 16px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
  color: #1f2937;
  transition: background-color 0.15s ease;
}

.moon-form-autocomplete-items div:hover,
.moon-form-autocomplete-items div.moon-form-autocomplete-active {
  background-color: #f3f4f6;
}

.moon-form-autocomplete-items div:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.moon-form-autocomplete-items strong {
  color: #0079fb;
  font-weight: 600;
}

/* Ensure parent has position relative for dropdown positioning */
.w-embed .mf-group {
  position: relative;
}

#js-form-imported-html .mf-group {
  position: relative;
}
