/* eTollfree Payment Form Styles - Modern Clean Design */
:root {
  --etf-brand: #970300;
  --etf-text: #333333;
  --etf-bg: #ffffff;
  --etf-muted: #f6f6f6;
  --etf-border: #e5e7eb;
  --etf-radius: 16px;
  --etf-shadow: 0 6px 20px rgba(0,0,0,.08);
  --etf-success: #10b981;
  --etf-error: #ef4444;
  --etf-warning: #f59e0b;
}

/* Container and Layout */
.etf-payment-form-container {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--etf-text);
 /* background: #f1f3f5;*/
  padding: 20px 0;
 /* min-height: 100vh;*/
  box-sizing: border-box;
}

.etf-payment-form-container *,
.etf-payment-form-container *::before,
.etf-payment-form-container *::after {
  box-sizing: border-box;
}

.etf-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px;
}

.etf-card {
  background: var(--etf-bg);
  border-radius: var(--etf-radius);
  box-shadow: var(--etf-shadow);
  padding: 24px;
  position: relative;
}

/* Back Button */
.etf-back-btn {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--etf-brand);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.etf-back-btn:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Typography */
.etf-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.2em 0 0.6em;
  color: var(--etf-text);
}

.etf-subtitle {
  color: #666;
  margin-top: -4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.etf-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.2em 0 1.2em;
  color: var(--etf-text);
}

/* Progress Indicator */
.etf-progress {
  display: flex;
  gap: 10px;
  margin: 14px 0 24px;
}

.etf-step {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.etf-step.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--etf-brand);
  animation: fillProgress 0.5s ease-out;
}

@keyframes fillProgress {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Form Sections */
.etf-form-section {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Elements */
.etf-form {
  margin: 0;
}

.etf-form-row {
  margin-bottom: 20px;
}

.etf-form-row-split {
  display: flex;
  gap: 12px;
}

.etf-form-row-split .etf-form-group {
  flex: 1;
}

.etf-form-group {
  margin: 0;
}

.etf-label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--etf-text);
  font-size: 0.9rem;
}

.etf-input,
.etf-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--etf-border);
  border-radius: 10px;
  background: var(--etf-bg);
  font-size: 16px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.etf-input:focus,
.etf-select:focus {
  outline: 2px solid #e1e1e1;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(151, 3, 0, 0.1);
}

.etf-input[readonly] {
  background: #f8f9fa;
  color: #555;
}

.etf-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.etf-input-prefix {
  position: absolute;
  left: 14px;
  color: #666;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.etf-input-group .etf-input {
  padding-left: 28px;
}

.etf-form-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}

/* Honeypot */
.etf-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Error Messages */
.etf-error {
  color: var(--etf-error);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.etf-error.show {
  display: block;
}

/* Summary Boxes */
.etf-summary {
  background: var(--etf-muted);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

.etf-summary-header {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--etf-text);
}

.etf-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 6px 0;
  font-size: 0.9rem;
}

.etf-line-total {
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--etf-border);
  margin-top: 12px;
}

/* Buttons */
.etf-form-actions {
  margin-top: 20px;
}

.etf-btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  text-align: center;
  position: relative;
  font-family: inherit;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.etf-btn-primary {
  background: var(--etf-brand);
  color: #fff;
  width: 100%;
  margin-bottom: 10px;
}

.etf-btn-primary:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(151, 3, 0, 0.3);
}

.etf-btn-secondary {
  background: #fff;
  color: var(--etf-brand);
  border: 2px solid var(--etf-brand);
  width: 100%;
}

.etf-btn-secondary:hover:not(:disabled) {
  background: var(--etf-brand);
  color: #fff;
}

.etf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.etf-btn-text {
  transition: opacity 0.15s;
}

.etf-btn.loading .etf-btn-text {
  opacity: 0;
}

.etf-btn.loading .etf-spinner {
  opacity: 1;
}

/* Spinner */
.etf-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  opacity: 0;
  transition: opacity 0.15s;
}

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

/* Alerts */
.etf-alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease-out;
}

.etf-alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.etf-alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.etf-alert-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

/* Security Note */
.etf-security-note {
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.etf-lock-icon {
  width: 14px;
  height: 14px;
  border: 2px solid var(--etf-success);
  border-radius: 3px;
  position: relative;
  display: inline-block;
}

.etf-lock-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 8px;
  height: 7px;
  border: 2px solid var(--etf-success);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .etf-wrap {
    padding: 10px;
  }
  
  .etf-card {
    padding: 20px 16px;
  }
  
  .etf-title {
    font-size: 1.5rem;
  }
  
  .etf-form-row-split {
    flex-direction: column;
    gap: 0;
  }
  
  .etf-form-row-split .etf-form-group {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .etf-payment-form-container {
    padding: 10px 0;
  }
  
  .etf-wrap {
    padding: 5px;
  }
  
  .etf-card {
    border-radius: 12px;
    padding: 16px 12px;
  }
}
