/* קלאסים בסיסיים שבשימוש */
.form-container {
  /* סטיילים לקונטיינר הטופס */
}
#payment-container{
justify-content: center;
    align-items: center;
}

.form-section-title {
  font-family: var(--e-global-typography-de14291-font-family), Sans-serif;
  font-size: var(--e-global-typography-de14291-font-size);
  font-weight: var(--e-global-typography-de14291-font-weight);
  line-height: var(--e-global-typography-de14291-line-height);
  fill: var(--e-global-color-primary);
  color: var(--e-global-color-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;

   text-align: center;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  flex: 1;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.form-group.full-width {
  flex: 100%;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: var(--e-global-typography-accent-font-size);
  font-weight: var(--e-global-typography-accent-font-weight);
  line-height: var(--e-global-typography-accent-line-height);
}

.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group input[type="tel"], 
.form-group input[type="number"], 
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #333;
  outline: none;
}

.input-container {
  position: relative;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #f9f9f9;
  transition: all 0.3s ease;
  min-height: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  max-height: 50px;
}


.input-container.has-error {
  border-color: #f44336;
  background: #ffebee;
}

.card-number-container {
  position: relative;
}

.card-number-container .input-container {
  padding-left: 50px;
}

#card-provider {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #666;
  z-index: 10;
}

.error-message {
  display: none;
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 5px;
  padding: 5px 10px;
  background: #ffebee;
  border-radius: 6px;
  border-right: 3px solid #f44336;
}
/*
.installments-select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #333;
  outline: none;
  cursor: pointer;
  appearance: none;

  background-position: left 15px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-left: 45px;
}
*/
.installments-select:hover {
  background-color: rgba(33, 150, 243, 0.05);
}



/* כפתורי פעולה */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.secondary-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* כפתור שליחה */
.submit-section {
  margin-top: 40px;
  text-align: center;
}


.submit-button:disabled {
    opacity: 0.5;
  cursor: not-allowed;

}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}



/* פופאפ שגיאות */
.error-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.submit-button,
.retry-btn {
  background-color: var(--e-global-color-primary);
  border: 2px solid  var(--e-global-color-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
 
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}
.submit-button:focus,
.submit-button:hover:not(:disabled),
.retry-btn:hover {
  background: transparent;
  color:  var(--e-global-color-primary);
}

/* מסכי עיבוד והצלחה */
.processing-content {
  text-align: center;
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  max-width: 400px;
}

.processing-spinner {
  margin-bottom: 30px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e3f2fd;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.processing-steps {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  padding: 8px 15px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.step.active {
  background: #e8f5e8;
  color: #2e7d32;
  font-weight: 600;
}

#success-screen {
 
  color: var(--e-global-color-text);;

  animation: fadeIn 0.5s ease;
}

.success-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  margin-bottom: 30px;
}

.checkmark {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #4caf50;
  font-weight: bold;
  animation: bounce 0.6s ease;
}

.success-content h1 {

    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    gap: 12px;
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    line-height: var(--e-global-typography-secondary-line-height);
    color: var(--e-global-color-text);
}

.order-details {
    font-family: var(--e-global-typography-de14291-font-family), Sans-serif;
  background: white ;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  text-align: right;
}

.order-details h3 {
     color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-de14291-font-family), Sans-serif;
    font-size: var(--e-global-typography-de14291-font-size);
    font-weight: var(--e-global-typography-de14291-font-weight);
    line-height: var(--e-global-typography-de14291-line-height);
  text-align: center;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
      font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
    color: var(--e-global-color-primary);
}

.detail-row:last-child {
  border-bottom: none;
}


/* אנימציות */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
  40%, 43% { transform: translate3d(0, -30px, 0); }
  70% { transform: translate3d(0, -15px, 0); }
  90% { transform: translate3d(0, -4px, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* תוקף + CVV תמיד שורה אחת גם במובייל */
.form-row.card-expiry-row {
    flex-direction: row !important;
    gap: 20px;
}

@media (max-width: 768px) {
  .form-row.card-expiry-row {
    flex-direction: row !important;
  }
  
  .form-row.card-expiry-row .form-group {
    flex: 1;
  }
}

