/* public/assets/css/public.css - نسخه حرفه‌ای با ایران‌یکان */

/* ========== فونت ایران‌یکان ========== */


/* ========== متغیرهای طراحی ========== */
:root {
  /* رنگ‌های اصلی */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #eef2ff;
  --secondary: #7209b7;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* رنگ‌های متن */
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  
  /* رنگ‌های پس‌زمینه */
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;
  
  /* رنگ‌های حاشیه */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;
  
  /* سایه‌ها */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* انیمیشن */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* شعاع گوشه‌ها */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* ========== ریست و پایه ========== */
.wfd-otp-unified-form-container *,
.wfd-otp-unified-form-container *::before,
.wfd-otp-unified-form-container *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.wfd-otp-unified-form-container {
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "ss03", "ss04", "ss05", "ss06";
  direction: rtl;
}

/* ========== کانتینر اصلی فرم ========== */
.wfd-otp-unified-form-container {
  max-width: 480px;
  margin: 2rem auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  padding-top: 40px;
}

/* ========== هدر با لوگو ========== */
.wfd-otp-form-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  
}



.wfd-otp-logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.wfd-otp-site-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-base);
}

.wfd-otp-site-logo:hover {
  transform: scale(1.05);
}

.wfd-otp-form-title {
  color: white;
  font-family: 'iranyekanwebboldfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wfd-otp-form-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1rem;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

/* ========== بدنه فرم ========== */
.wfd-otp-form-body {
  padding: 0.5rem 2rem;
}

/* ========== Progress Steps ========== */
.wfd-otp-progress-container {
  margin-bottom: 2.5rem;
  position: relative;
}
#wfd-otp-phone {
	padding: 15px;
}
.wfd-otp-progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

.wfd-otp-progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 2rem;
  left: 2rem;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 1;
}

.wfd-otp-progress-bar {
  position: absolute;
  top: 50%;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateY(-50%);
  z-index: 2;
  transition: width var(--transition-base);
  width: 0%;
}

.wfd-otp-step-item {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
}

.wfd-otp-step-circle {
  width: 44px;
  height: 44px;
      background: #ffffff;
  border: 3px solid #001a4b;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: #000000;
  font-family: 'iranyekanwebboldfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1.125rem;
  font-weight: 700;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.wfd-otp-step-circle::before {
  content: attr(data-step);
}

.wfd-otp-step-item.active .wfd-otp-step-circle {
  border-color: #f3a301;
    background: #ffab00;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.wfd-otp-step-item.completed .wfd-otp-step-circle {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.wfd-otp-step-item.completed .wfd-otp-step-circle::before {
  content: '✓';
  font-size: 1.25rem;
}

.wfd-otp-step-label {
  font-family: 'iranyekanwebmediumfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.wfd-otp-step-item.active .wfd-otp-step-label {
  color: #6b6b6b;
  font-weight: 700;
}

.wfd-otp-step-item.completed .wfd-otp-step-label {
  color: var(--success);
}

/* ========== مراحل فرم ========== */
.wfd-otp-step {
  display: none;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wfd-otp-step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== گروه‌های فرم ========== */
.wfd-otp-form-group {
  margin-bottom: 1.5rem;
}

.wfd-otp-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-family: 'iranyekanwebmediumfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 0.9375rem;
  font-weight: 500;
}

.wfd-otp-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  outline: none;
}

.wfd-otp-input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.wfd-otp-input::placeholder {
  color: var(--text-muted);
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
}

.wfd-otp-input.error-field {
  border-color: var(--error) !important;
  background-color: rgba(239, 68, 68, 0.05) !important;
}

/* ========== select استایل‌های ========== */
.wfd-otp-input[type="select"],
select.wfd-otp-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' 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: left 1rem center;
  background-size: 1rem;
  padding-left: 3rem;
}

/* ========== نمایش شماره تلفن ========== */
.wfd-otp-user-phone-display {
  background: var(--primary-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 2px solid rgba(67, 97, 238, 0.2);
  text-align: center;
}

.wfd-otp-user-phone-display p {
  color: var(--text-medium);
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  margin: 0;
  font-size: 0.9375rem;
}

.wfd-otp-user-phone-display strong {
  color: var(--primary-dark);
  font-family: 'iranyekanwebboldfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1.125rem;
  direction: ltr;
  display: inline-block;
  margin-right: 0.5rem;
}

/* ========== تایمر ========== */
.wfd-otp-timer {
  background: var(--bg-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  text-align: center;
  border: 2px solid var(--border);
}

.wfd-otp-timer span {
  color: var(--text-medium);
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 0.9375rem;
}

.wfd-otp-timer #countdown {
  color: var(--warning);
  font-family: 'iranyekanwebboldfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-weight: 700;
  font-size: 1.125rem;
  direction: ltr;
}

/* ========== دکمه‌ها ========== */
.wfd-otp-form-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wfd-otp-submit-btn {
  background: linear-gradient(135deg, #ffab00 0%, #ffab00 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-family: 'iranyekanwebboldfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.wfd-otp-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.wfd-otp-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.wfd-otp-submit-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.wfd-otp-secondary-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-family: 'iranyekanwebmediumfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
}

.wfd-otp-secondary-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.wfd-otp-secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

/* ========== اسپینر ========== */
.spinner {
  width: 1.375rem;
  height: 1.375rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  border-top-color: white;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== پیام خطا ========== */
.wfd-otp-error {
  color: var(--error);
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 500;
}

.wfd-otp-error.show {
  display: block;
}

/* ========== پیام موفقیت ========== */
.wfd-otp-step-4 {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--success) 0%, #0da271 100%);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  animation: bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

.wfd-otp-success-message h3 {
  color: var(--text-dark);
  font-family: 'iranyekanwebboldfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.wfd-otp-success-message p {
  color: var(--text-medium);
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.wfd-otp-success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ========== پیام هدایت ========== */
.redirect-message {
  background: #001a4b;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  border-right: 4px solid #ffab00;
  color: var(--text-medium);
  font-family: 'iranyekanwebregularfanum', 'IRANYekan', 'Yekan', sans-serif !important;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.5;
}

/* ========== استایل‌های ریسپانسیو ========== */
@media (max-width: 640px) {
  .wfd-otp-unified-form-container {
    margin: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .wfd-otp-form-header {
    padding: 2rem 1.5rem;
  }
  
  .wfd-otp-form-body {
    padding: 2rem 1.5rem;
  }
  
  .wfd-otp-form-title {
    font-size: 1.5rem;
  }
  
  .wfd-otp-step-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .wfd-otp-step-label {
    font-size: 0.75rem;
  }
  
  .wfd-otp-input {
    padding: 0.875rem 1rem;
  }
  
  .wfd-otp-submit-btn,
  .wfd-otp-secondary-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .wfd-otp-progress-steps {
    padding: 0 0.5rem;
  }
  
  .wfd-otp-progress-steps::before {
    right: 1.5rem;
    left: 1.5rem;
  }
  
  .wfd-otp-step-circle {
    width: 36px;
    height: 36px;
  }
  
  .wfd-otp-site-logo {
    max-width: 100px;
  }
}

/* ========== حالت تاریک ========== */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f9fafb;
    --text-medium: #d1d5db;
    --text-light: #9ca3af;
    --text-muted: #6b7280;
    --bg-white: #1f2937;
    --bg-light: #111827;
    --bg-lighter: #374151;
    --border: #4b5563;
    --border-light: #374151;
    --border-dark: #6b7280;
  }
 
  .wfd-otp-unified-form-container {
    background: #fefeff;
        border-color: #ffffff;
  }
  
  .wfd-otp-input {
    background: #ededed;
    color: var(--text-medium);
    border-color: var(--border);
  }
  
  .wfd-otp-input:focus {
    background: var(--bg-lighter);
  }
  
  .wfd-otp-user-phone-display {
    background: rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.3);
  }
  
  .wfd-otp-timer {
    background: var(--bg-lighter);
    border-color: var(--border);
  }
  
  .wfd-otp-success-message h3 {
    color: var(--text-dark);
  }
  
  .wfd-otp-success-message p {
    color: var(--text-medium);
  }
}