/* ============================================
   BEWERBUNGSFORMULAR - PROFESSIONAL UX
   Festival Manager Suite
   ============================================ */

/* CSS Custom Properties for easy theming */
:root {
  --tf-primary: #ff7a21;
  --tf-primary-hover: #ff9a4d;
  --tf-primary-light: #fff8f4;
  --tf-success: #10b981;
  --tf-success-light: #d1fae5;
  --tf-warning: #f59e0b;
  --tf-warning-light: #fef3c7;
  --tf-error: #e74c3c;
  --tf-error-light: #fef5f5;
  --tf-text: #111827;
  --tf-text-muted: #6b7280;
  --tf-border: #e5e7eb;
  --tf-bg: #ffffff;
  --tf-bg-subtle: #f9fafb;
  --tf-radius: 12px;
  --tf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tf-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
  --tf-transition: 0.2s ease;
}

/* Base Form Container */
.tf-multistep-form {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  background: var(--tf-bg);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow);
  padding: 40px 32px 32px 32px;
  color: var(--tf-text);
  box-sizing: border-box;
}

.tf-multistep-form,
.tf-multistep-form * {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  box-sizing: border-box;
}

/* Fieldset with animated entry */
.tf-multistep-form fieldset {
  border: none;
  margin-bottom: 32px;
  padding: 0;
  animation: tf-fadeIn 0.3s ease-out;
}

@keyframes tf-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Title with badge */
.tf-multistep-form legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--tf-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
/* Labels with visual hierarchy */
.tf-multistep-form label {
  font-size: 0.95em;
  color: var(--tf-text);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

/* Inputs with micro-interactions */
.tf-multistep-form input,
.tf-multistep-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-top: 4px;
  margin-bottom: 20px;
  border: 2px solid var(--tf-border);
  border-radius: 10px;
  font-size: 1em;
  background: var(--tf-bg);
  color: var(--tf-text);
  box-sizing: border-box;
  transition: all var(--tf-transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tf-multistep-form input:hover,
.tf-multistep-form textarea:hover {
  border-color: #ffc9a8;
  background: var(--tf-primary-light);
}

.tf-multistep-form input:focus,
.tf-multistep-form textarea:focus {
  border-color: var(--tf-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.12);
  background: var(--tf-bg);
}

.tf-multistep-form input::placeholder,
.tf-multistep-form textarea::placeholder {
  color: #9ca3af;
}

/* Animated info boxes */
.tf-multistep-form .tf-form-info {
  background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
  border-left: 4px solid var(--tf-primary);
  padding: 18px 20px;
  margin: 20px 0 28px 0;
  font-size: 0.95em;
  color: var(--tf-text);
  line-height: 1.7;
  border-radius: 0 10px 10px 0;
  position: relative;
}

.tf-multistep-form .tf-form-info::before {
  content: "💡";
  position: absolute;
  left: -2px;
  top: -12px;
  font-size: 1.2em;
  background: var(--tf-bg);
  padding: 4px;
  border-radius: 50%;
}

.tf-multistep-form .tf-form-info strong {
  color: var(--tf-text);
}

.tf-multistep-form .tf-form-info a {
  color: var(--tf-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color var(--tf-transition);
}

.tf-multistep-form .tf-form-info a:hover {
  border-bottom-color: var(--tf-primary);
}
/* Progressbar Styles */
.tf-progressbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 0;
  width: 100%;
}
.tf-progress-step {
  flex: 1 1 0;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.tf-progress-step-label {
  display: block;
  padding: 10px 0 8px 0;
  font-size: 1em;
  color: #888;
  font-weight: 600;
  background: none;
  border-radius: 0;
  transition: color 0.2s;
  border-bottom: 3px solid #e3e7ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  height: 40px;
  display: flex;
  align-items: flex-end;
}
.tf-progress-step.active .tf-progress-step-label {
  color: #ff7a21;
  border-bottom: 3px solid #ff7a21;
}
.tf-progress-step.done .tf-progress-step-label {
  color: #27ae60;
  border-bottom: 3px solid #27ae60;
}
.tf-progress-step:not(.active):not(.done):not(:disabled):hover .tf-progress-step-label {
  color: #ff9a4d;
}
.tf-progress-step:disabled {
  opacity: 0.5;
}
/* ============================================
   NAVIGATION BUTTONS - Prominent CTAs
   ============================================ */

.tf-multistep-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--tf-border);
}

.tf-multistep-form .tf-admin-btn {
  background: var(--tf-primary);
  color: var(--tf-bg);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(255, 122, 33, 0.35);
  transition: all var(--tf-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tf-multistep-form .tf-admin-btn:hover {
  background: var(--tf-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 33, 0.4);
}

.tf-multistep-form .tf-admin-btn:active {
  transform: translateY(0);
}

.tf-multistep-form .tf-admin-btn-primary {
  background: var(--tf-primary);
}

/* Back button - subtle style */
.tf-multistep-form .tf-admin-btn:first-child:not(:last-child) {
  background: transparent;
  color: var(--tf-text-muted);
  box-shadow: none;
  border: 2px solid var(--tf-border);
}

.tf-multistep-form .tf-admin-btn:first-child:not(:last-child):hover {
  background: var(--tf-bg-subtle);
  color: var(--tf-text);
  border-color: var(--tf-text-muted);
  transform: none;
  box-shadow: none;
}

.tf-multistep-form .tf-admin-btn-success {
  background: linear-gradient(135deg, var(--tf-success) 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: default;
}

.tf-multistep-form .tf-admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FANCY CUSTOM SELECT DROPDOWN
   ============================================ */
.tf-select {
  position: relative;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 1em;
}

.tf-select:focus {
  outline: none;
}

.tf-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e3e7ee;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tf-select-trigger:hover {
  border-color: #ffc9a8;
  background: #fffaf7;
}

.tf-select-open .tf-select-trigger {
  border-color: #ff7a21;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.15);
  border-radius: 10px 10px 0 0;
}

.tf-select-error .tf-select-trigger {
  border-color: #e74c3c;
  background: #fef5f5;
}

.tf-select-value {
  flex: 1;
  color: #1a1a2e;
  font-weight: 450;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.tf-select-placeholder {
  color: #999;
  font-weight: 400;
}

.tf-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ff7a21;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-select-arrow-up {
  transform: rotate(180deg);
}

.tf-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #ff7a21;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  animation: tfSelectSlideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@keyframes tfSelectSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tf-select-options {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tf-select-options::-webkit-scrollbar {
  width: 8px;
}

.tf-select-options::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.tf-select-options::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.tf-select-options::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

.tf-select-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 12px;
}

.tf-select-option:hover,
.tf-select-option-highlighted {
  background: linear-gradient(90deg, #fff5ef 0%, #fff 100%);
}

.tf-select-option-selected {
  background: #fff5ef;
  font-weight: 500;
}

.tf-select-option-selected .tf-select-option-text {
  color: #ff7a21;
}

.tf-select-option-text {
  flex: 1;
  color: #1a1a2e;
  line-height: 1.4;
}

.tf-select-option-price {
  font-size: 0.85em;
  font-weight: 600;
  color: #666;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.tf-select-option-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #ff7a21;
}

.tf-select-no-results {
  padding: 16px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* ============================================
   PHONE INPUT - TWO SEPARATE FIELDS
   ============================================ */
.tf-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.tf-phone-country-wrapper {
  position: relative;
  flex-shrink: 0;
}

.tf-phone-country-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e3e7ee;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.tf-phone-country-btn:hover {
  border-color: #ffc9a8;
  background: #fffaf7;
}

.tf-phone-country-btn:focus {
  border-color: #ff7a21;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.15);
  background: #fff;
}

.tf-phone-flag {
  font-size: 1.1em;
  line-height: 1;
}

.tf-phone-code {
  font-weight: 500;
  color: #1a1a2e;
}

.tf-phone-arrow {
  color: #999;
  transition: transform 0.2s;
  margin-left: 2px;
}

.tf-phone-arrow-up {
  transform: rotate(180deg);
}

.tf-phone-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  background: #fff;
  border: 2px solid #ff7a21;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: tfDropdownFade 0.15s ease;
  overflow: hidden;
}

@keyframes tfDropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tf-phone-search {
  padding: 8px;
  border-bottom: 1px solid #e3e7ee;
}

.tf-phone-search-input {
  width: 100%;
  padding: 10px 12px;
  margin: 0 !important;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  font-size: 0.95em;
  background: #f8f9fc;
  box-sizing: border-box;
}

.tf-phone-search-input:focus {
  outline: none;
  border-color: #ff7a21;
  background: #fff;
}

.tf-phone-search-input::placeholder {
  color: #999;
}

.tf-phone-options {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 280px;
  overflow-y: auto;
}

.tf-phone-options::-webkit-scrollbar {
  width: 6px;
}

.tf-phone-options::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.tf-phone-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
}

.tf-phone-option:hover,
.tf-phone-option-highlighted {
  background: #fff5ef;
}

.tf-phone-option-selected {
  background: #fff5ef;
}

.tf-phone-option-selected .tf-phone-option-name {
  color: #ff7a21;
  font-weight: 500;
}

.tf-phone-option-flag {
  font-size: 1.2em;
}

.tf-phone-option-name {
  flex: 1;
  color: #1a1a2e;
  font-size: 0.95em;
}

.tf-phone-option-code {
  color: #888;
  font-size: 0.9em;
}

.tf-phone-no-results {
  padding: 16px;
  text-align: center;
  color: #888;
  font-size: 0.95em;
}

.tf-phone-number-input {
  flex: 1;
  padding: 14px 16px;
  margin: 0 !important;
  background: #fff;
  border: 2px solid #e3e7ee;
  border-radius: 8px;
  font-size: 1em;
  color: #1a1a2e;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.tf-phone-number-input:hover {
  border-color: #ffc9a8;
  background: #fffaf7;
}

.tf-phone-number-input:focus {
  border-color: #ff7a21;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.15);
  background: #fff;
}

.tf-phone-number-input::placeholder {
  color: #aaa;
}

/* Error states use existing .tf-field-error and .tf-input-error */

/* ============================================
   PROGRESS BAR - Modern Design
   ============================================ */

.tf-progress-header {
  margin-bottom: 32px;
}

.tf-progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--tf-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tf-primary), var(--tf-primary-hover));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  position: relative;
}

.tf-progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.tf-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  color: var(--tf-text-muted);
}

/* Step counter badge */
.tf-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tf-primary);
  color: white;
  font-size: 0.75em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ============================================
   FIELD STYLES - Enhanced UX
   ============================================ */

.tf-field {
  margin-bottom: 24px;
  position: relative;
}

.tf-field label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.tf-required {
  color: var(--tf-error);
  font-weight: 700;
  margin-left: 2px;
}

.tf-field-desc {
  font-size: 0.875em;
  color: var(--tf-text-muted);
  margin: 0 0 10px 0;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tf-field-desc::before {
  content: "ℹ️";
  font-size: 0.9em;
  flex-shrink: 0;
}

/* Price badges - modern pill style */
.tf-option-price {
  margin-left: auto;
  font-size: 0.8em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  color: white;
  background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-hover) 100%);
}

.tf-field-price {
  margin-left: 8px;
  font-size: 0.8em;
  font-weight: 700;
  color: white;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-hover) 100%);
  border-radius: 20px;
}

/* Validation Error Styles */
.tf-field-error input,
.tf-field-error select,
.tf-field-error textarea,
.tf-input-error {
  border-color: #e74c3c !important;
  background: #fef5f5 !important;
}
.tf-field-error input:focus,
.tf-field-error select:focus,
.tf-field-error textarea:focus {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}
.tf-error-text {
  display: block;
  color: #e74c3c;
  font-size: 0.85em;
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================
   CHECKBOX & RADIO - Card Style
   ============================================ */

.tf-checkbox-group,
.tf-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.tf-checkbox-label,
.tf-radio-label {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-weight: normal !important;
  padding: 16px 18px;
  background: var(--tf-bg);
  border: 2px solid var(--tf-border);
  border-radius: 12px;
  transition: all var(--tf-transition);
  position: relative;
}

.tf-checkbox-label:hover,
.tf-radio-label:hover {
  border-color: var(--tf-primary);
  background: var(--tf-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 33, 0.15);
}

/* Custom checkbox/radio styling */
.tf-checkbox-label input[type="checkbox"],
.tf-radio-label input[type="radio"] {
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--tf-primary);
  cursor: pointer;
}

.tf-checkbox-label span,
.tf-radio-label span {
  flex: 1;
  line-height: 1.5;
  color: var(--tf-text);
}

/* Selected state - highlighted card */
.tf-radio-label:has(input:checked),
.tf-checkbox-label:has(input:checked) {
  border-color: var(--tf-primary);
  background: var(--tf-primary-light);
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.1);
}

.tf-radio-label:has(input:checked)::after,
.tf-checkbox-label:has(input:checked)::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--tf-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: 700;
}

/* Summary section in review */
.tf-summary {
  background: #fff;
  border: 1px solid #e3e7ee;
  padding: 16px 20px;
  margin: 16px 0;
}
.tf-summary h4 {
  color: #ff7a21;
  font-size: 1em;
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e3e7ee;
}
.tf-summary h4:not(:first-child) {
  margin-top: 16px;
}
.tf-summary p {
  margin: 0 0 8px 0;
  line-height: 1.6;
}

/* ============================================
   REVIEW & SUMMARY - Clear Overview
   ============================================ */

.tf-review-summary {
  margin-bottom: 28px;
}

.tf-review-section {
  background: var(--tf-bg);
  border: 2px solid var(--tf-border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--tf-transition);
}

.tf-review-section:hover {
  border-color: var(--tf-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tf-review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--tf-bg-subtle), var(--tf-bg));
  padding: 16px 20px;
  border-bottom: 1px solid var(--tf-border);
}

.tf-review-section-header h4 {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  color: var(--tf-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tf-review-section-header h4::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--tf-success);
  color: white;
  border-radius: 50%;
  font-size: 0.7em;
}

.tf-edit-link {
  background: var(--tf-primary-light);
  border: none;
  color: var(--tf-primary);
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  transition: all var(--tf-transition);
  border-radius: 8px;
}

.tf-edit-link:hover {
  color: white;
  background: var(--tf-primary);
}

.tf-review-fields {
  padding: 16px 20px;
  margin: 0;
}

.tf-review-field {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--tf-border);
  gap: 16px;
}

.tf-review-field:last-child {
  border-bottom: none;
}

.tf-review-field dt {
  flex: 0 0 40%;
  font-weight: 600;
  color: var(--tf-text-muted);
  font-size: 0.9em;
}

.tf-review-field dd {
  flex: 1;
  margin: 0;
  color: var(--tf-text);
  font-weight: 500;
}

/* ============================================
   MESSAGE ALERTS - Visual Feedback
   ============================================ */

.tf-success-msg {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--tf-success-light) 0%, #a7f3d0 100%);
  border: 2px solid var(--tf-success);
  color: #065f46;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: tf-slideIn 0.3s ease-out;
}

.tf-success-msg::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--tf-success);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.tf-error-msg {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--tf-error-light);
  border: 2px solid var(--tf-error);
  color: #991b1b;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: tf-shake 0.5s ease-out;
}

.tf-error-msg::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--tf-error);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.tf-info-msg {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--tf-warning-light);
  border: 2px solid var(--tf-warning);
  color: #92400e;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

@keyframes tf-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* ========================================
   COST PANEL - Professional Design
   ======================================== */

/* Layout Wrapper */
.tf-form-wrapper {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 120px 24px;
  position: relative;
}

.tf-form-wrapper .tf-multistep-form {
  width: 100%;
  max-width: none;
}

/* Cost Panel - Fixed Right */
.tf-cost-panel {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

/* Panel Header */
.tf-cost-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.tf-cost-panel-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.tf-cost-panel-currency {
  font-size: 0.7rem;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.05em;
}

/* Panel Body */
.tf-cost-panel-body {
  max-height: 60vh;
  overflow-y: auto;
}

/* Cost Items */
.tf-cost-items {
  padding: 0;
}

.tf-cost-group {
  border-bottom: 1px solid #f0f0f0;
}

.tf-cost-group:last-child {
  border-bottom: none;
}

.tf-cost-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  padding: 12px 20px 6px;
  background: #fafafa;
}

.tf-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 20px;
  gap: 16px;
}

.tf-cost-item:hover {
  background: #fafafa;
}

.tf-cost-item-label {
  flex: 1;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
}

.tf-cost-item-price {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  text-align: right;
  min-width: 70px;
}

.tf-cost-item-price.negative {
  color: #c0392b;
}

/* Subtotal */
.tf-cost-subtotal {
  padding: 12px 20px;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
}

.tf-cost-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #666;
}

.tf-cost-subtotal-row span:last-child {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Total */
.tf-cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px;
  background: #111;
  color: #fff;
}

.tf-cost-total-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tf-cost-total-amount {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Disclaimer */
.tf-cost-disclaimer {
  margin: 0;
  padding: 12px 20px;
  font-size: 0.7rem;
  color: #999;
  line-height: 1.5;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
}

/* Empty State */
.tf-cost-empty {
  padding: 32px 20px;
  text-align: center;
}

.tf-cost-empty p {
  margin: 0;
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
}

/* Mobile Toggle - Hidden on Desktop */
.tf-cost-mobile-toggle {
  display: none;
}

/* ========================================
   RESPONSIVE: Cost Panel
   ======================================== */

/* Desktop Large (1280px+) */
@media (min-width: 1280px) {
  .tf-form-wrapper {
    max-width: 800px;
  }
  
  .tf-cost-panel {
    right: calc((100vw - 800px) / 2 - 340px);
    width: 320px;
  }
}

/* Desktop Medium (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .tf-cost-panel {
    right: 16px;
    width: 280px;
  }
}

/* Tablet and below - Mobile Bottom Panel */
@media (max-width: 1023px) {
  .tf-form-wrapper {
    padding: 0 16px 0 16px;
  }
  
  .tf-form-wrapper .tf-multistep-form {
    padding-bottom: 80px;
  }
  
  .tf-cost-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    width: 100%;
    max-height: 45vh;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    border: none;
    border-top: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .tf-cost-panel.collapsed {
    transform: translateY(calc(100% - 60px));
  }
  
  .tf-cost-panel-header {
    padding: 14px 20px;
  }
  
  .tf-cost-panel-body {
    max-height: calc(45vh - 120px);
    overflow-y: auto;
  }
  
  /* Mobile Toggle - Visible */
  .tf-cost-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .tf-cost-mobile-toggle:hover {
    background: #222;
  }
  
  .tf-cost-mobile-toggle .tf-toggle-icon {
    transition: transform 0.3s ease;
  }
  
  .tf-cost-panel.collapsed .tf-cost-mobile-toggle .tf-toggle-icon {
    transform: rotate(180deg);
  }
  
  .tf-cost-mobile-toggle .tf-toggle-total {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 600;
  }
}

/* ========================================
   COMPREHENSIVE RESPONSIVE STYLES
   ======================================== */

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  /* Form Container */
  .tf-multistep-form {
    padding: 20px 16px;
  }
  
  .tf-multistep-form legend {
    font-size: 1.2em;
    margin-bottom: 14px;
  }
  
  /* Form Fields */
  .tf-multistep-form input,
  .tf-multistep-form select,
  .tf-multistep-form textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    margin-bottom: 14px;
  }
  
  .tf-multistep-form select {
    height: 48px;
  }
  
  /* Checkbox/Radio Groups */
  .tf-checkbox-label,
  .tf-radio-label {
    padding: 12px 14px;
  }
  
  .tf-checkbox-label span,
  .tf-radio-label span {
    font-size: 0.95em;
  }
  
  /* Option Prices */
  .tf-option-price {
    font-size: 0.8em;
    padding: 3px 6px;
  }
  
  /* Navigation Buttons */
  .tf-multistep-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .tf-multistep-form .tf-admin-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1em;
    text-align: center;
  }
  
  /* Review Summary */
  .tf-review-field {
    flex-direction: column;
    gap: 4px;
  }
  
  .tf-review-field dt {
    flex: none;
    font-size: 0.85em;
  }
  
  .tf-review-field dd {
    font-size: 1em;
  }
  
  .tf-review-section-header {
    padding: 10px 14px;
  }
  
  .tf-review-fields {
    padding: 10px 14px;
  }
  
  /* Info Boxes */
  .tf-form-info {
    padding: 12px 14px;
    font-size: 0.95em;
    margin: 14px 0 18px 0;
  }
  
  /* Messages */
  .tf-success-msg,
  .tf-error-msg,
  .tf-info-msg {
    padding: 12px 14px;
    font-size: 0.9em;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .tf-multistep-form {
    padding: 16px 12px;
  }
  
  .tf-multistep-form legend {
    font-size: 1.1em;
  }
  
  .tf-multistep-form label {
    font-size: 0.95em;
  }
  
  .tf-field-desc {
    font-size: 0.85em;
  }
  
  /* Checkbox/Radio more compact */
  .tf-checkbox-group,
  .tf-radio-group {
    gap: 8px;
  }
  
  .tf-checkbox-label,
  .tf-radio-label {
    padding: 10px 12px;
  }
  
  /* Cost Panel Mobile */
  .tf-cost-panel-header {
    padding: 10px 16px;
  }
  
  .tf-cost-item {
    padding: 8px 16px;
  }
  
  .tf-cost-total {
    padding: 12px 16px;
  }
  
  .tf-cost-total-amount {
    font-size: 1.1rem;
  }
  
  /* Review Section more compact */
  .tf-review-section-header h4 {
    font-size: 0.95em;
  }
  
  .tf-edit-link {
    font-size: 0.85em;
    padding: 3px 6px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .tf-multistep-form .tf-admin-btn {
    min-height: 48px;
  }
  
  .tf-checkbox-label,
  .tf-radio-label {
    min-height: 48px;
  }
  
  .tf-checkbox-label input[type="checkbox"],
  .tf-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
  
  .tf-edit-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  
  .tf-cost-mobile-toggle {
    min-height: 52px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .tf-cost-panel-body {
    max-height: 50vh;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .tf-multistep-form input,
  .tf-multistep-form select,
  .tf-multistep-form textarea {
    border-width: 1px;
  }
}

/* Print Styles */
@media print {
  .tf-form-wrapper {
    display: block;
  }
  
  .tf-cost-panel {
    position: static;
    margin-top: 24px;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .tf-cost-mobile-toggle {
    display: none;
  }
  
  .tf-multistep-nav {
    display: none;
  }
  
  .tf-progress-header {
    display: none;
  }
}

/* ========================================
   FILE UPLOAD STYLES
   ======================================== */

/* Dropzone Container */
.tf-file-dropzone {
  position: relative;
  border: 2px dashed #d4d9e2;
  border-radius: 12px;
  background: #fafbfc;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 16px;
}

.tf-file-dropzone:hover {
  border-color: #ff7a21;
  background: #fff8f5;
}

.tf-file-dropzone.tf-file-dragover {
  border-color: #ff7a21;
  background: #fff3eb;
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.1);
}

/* Hidden file input */
.tf-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.tf-file-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  pointer-events: none;
}

.tf-file-dropzone-icon {
  font-size: 2.5em;
  opacity: 0.7;
}

.tf-file-dropzone-text {
  font-size: 1em;
  font-weight: 600;
  color: #333;
}

.tf-file-dropzone-hint {
  font-size: 0.85em;
  color: #888;
}

/* Uploading State */
.tf-file-uploading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9fa;
  border: 2px solid #e3e7ee;
  border-radius: 12px;
  margin-top: 6px;
  margin-bottom: 16px;
  color: #555;
  font-size: 0.95em;
}

.tf-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #e3e7ee;
  border-top-color: #ff7a21;
  border-radius: 50%;
  animation: fm-spin 0.8s linear infinite;
}

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

/* File Preview */
.tf-file-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #d4d9e2;
  border-radius: 12px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.tf-file-preview-image {
  max-width: 120px;
  max-height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e3e7ee;
}

.tf-file-preview-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.tf-file-icon {
  font-size: 1.8em;
}

.tf-file-name {
  font-size: 0.95em;
  color: #333;
  word-break: break-word;
}

.tf-file-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: #888;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: all 0.15s ease;
}

.tf-file-remove:hover {
  background: #ff4444;
  color: #fff;
  transform: scale(1.1);
}

/* Error State */
.tf-field-error .tf-file-dropzone,
.tf-field-error .tf-file-preview {
  border-color: #e74c3c;
  background: #fdf2f2;
}

/* ============================================
   FM CLASS ALIASES (for React component)
   Maps .fm- classes to .tf- styles
   ============================================ */

/* Form Container */
.fm-form {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  background: var(--tf-bg);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow);
  padding: 40px 32px 32px 32px;
  color: var(--tf-text);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.fm-form--loading,
.fm-form--success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}

.fm-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--tf-border);
  border-top-color: var(--tf-primary);
  border-radius: 50%;
  animation: fm-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.fm-success-icon {
  width: 72px;
  height: 72px;
  background: var(--tf-success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.fm-form--success h2 {
  color: var(--tf-success);
  font-size: 1.5em;
  margin-bottom: 12px;
}

/* ============================================
   PROFESSIONAL STEPPER COMPONENT
   ============================================ */

.fm-stepper {
  margin-bottom: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  padding: 8px 0 16px;
}

.fm-stepper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.fm-stepper__track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: max-content;
  padding: 0 4px;
}

.fm-stepper__step-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.fm-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
  min-width: 80px;
}

.fm-stepper__step:disabled {
  cursor: default;
}

.fm-stepper__step:not(:disabled):hover .fm-stepper__circle {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 122, 33, 0.3);
}

.fm-stepper__circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.fm-stepper__number {
  font-size: 1em;
  font-weight: 700;
  color: var(--tf-text-muted);
  transition: all 0.2s ease;
}

.fm-stepper__check {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.fm-stepper__label {
  margin-top: 10px;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--tf-text-muted);
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Connector Line */
.fm-stepper__connector {
  width: 40px;
  height: 3px;
  background: var(--tf-border);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.fm-stepper__connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--tf-primary), var(--tf-primary-hover));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fm-stepper__connector--completed::after {
  width: 100%;
}

/* Active State */
.fm-stepper__step--active .fm-stepper__circle {
  border-color: var(--tf-primary);
  background: var(--tf-primary-light);
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.15), 0 4px 12px rgba(255, 122, 33, 0.2);
  animation: fm-pulse 2s infinite;
}

.fm-stepper__step--active .fm-stepper__number {
  color: var(--tf-primary);
}

.fm-stepper__step--active .fm-stepper__label {
  color: var(--tf-primary);
}

@keyframes fm-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.15), 0 4px 12px rgba(255, 122, 33, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 122, 33, 0.08), 0 4px 12px rgba(255, 122, 33, 0.2);
  }
}

/* Completed State */
.fm-stepper__step--completed .fm-stepper__circle {
  border-color: var(--tf-primary);
  background: var(--tf-primary);
  box-shadow: 0 4px 12px rgba(255, 122, 33, 0.25);
}

.fm-stepper__step--completed .fm-stepper__label {
  color: var(--tf-primary);
}

/* Future/Disabled State */
.fm-stepper__step:disabled:not(.fm-stepper__step--completed):not(.fm-stepper__step--active) .fm-stepper__circle {
  background: var(--tf-bg-subtle);
  opacity: 0.7;
}

/* Responsive Stepper - kleiner auf Mobile */
@media (max-width: 480px) {
  .fm-stepper__circle {
    width: 36px;
    height: 36px;
  }
  
  .fm-stepper__number {
    font-size: 0.9em;
  }
  
  .fm-stepper__check {
    width: 16px;
    height: 16px;
  }
  
  .fm-stepper__label {
    font-size: 0.7em;
    max-width: 60px;
  }
  
  .fm-stepper__connector {
    width: 24px;
    margin-top: 16px;
  }
  
  .fm-stepper__step {
    min-width: 60px;
    padding: 0 4px;
  }
}

/* Step Content */
.fm-step {
  animation: tf-fadeIn 0.3s ease-out;
}

.fm-step__header {
  margin-bottom: 28px;
}

.fm-step__title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--tf-text);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.fm-step__description {
  font-size: 1em;
  color: var(--tf-text-muted);
  margin: 0;
  line-height: 1.6;
}

.fm-step__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Field Wrapper */
.fm-field {
  margin-bottom: 0;
}

.fm-field--error .fm-input,
.fm-field--error .fm-textarea,
.fm-field--error .fm-select {
  border-color: var(--tf-error) !important;
  background: var(--tf-error-light) !important;
}

.fm-field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--tf-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.fm-field__required {
  color: var(--tf-error);
}

.fm-field__description {
  font-size: 0.9em;
  color: var(--tf-text-muted);
  margin: -4px 0 10px;
  line-height: 1.5;
}

.fm-field__error {
  display: block;
  color: var(--tf-error);
  font-size: 0.85em;
  margin-top: 8px;
  font-weight: 500;
}

/* Input Fields */
.fm-input,
.fm-textarea,
.fm-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--tf-border);
  border-radius: 10px;
  font-size: 1em;
  background: var(--tf-bg);
  color: var(--tf-text);
  box-sizing: border-box;
  transition: all var(--tf-transition);
  font-family: inherit;
}

.fm-input:hover,
.fm-textarea:hover,
.fm-select:hover {
  border-color: #ffc9a8;
  background: var(--tf-primary-light);
}

.fm-input:focus,
.fm-textarea:focus,
.fm-select:focus {
  border-color: var(--tf-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.12);
  background: var(--tf-bg);
}

.fm-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox & Radio */
.fm-checkbox-group,
.fm-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fm-checkbox-label,
.fm-radio-label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400 !important;
  padding: 14px 16px;
  background: var(--tf-bg-subtle);
  border: 2px solid var(--tf-border);
  border-radius: 10px;
  transition: all var(--tf-transition);
}

.fm-checkbox-label:hover,
.fm-radio-label:hover {
  border-color: var(--tf-primary);
  background: var(--tf-primary-light);
}

.fm-checkbox-label:has(input:checked),
.fm-radio-label:has(input:checked) {
  border-color: var(--tf-primary);
  background: var(--tf-primary-light);
}

.fm-checkbox,
.fm-radio {
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  accent-color: var(--tf-primary);
}

.fm-checkbox-single {
  display: flex;
  align-items: center;
}

/* Price Display for Options */
.fm-option-price {
  margin-left: auto;
  padding: 3px 10px;
  background: var(--tf-primary-light);
  color: var(--tf-primary);
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.fm-radio-label:has(input:checked) .fm-option-price,
.fm-checkbox-label:has(input:checked) .fm-option-price {
  background: var(--tf-primary);
  color: white;
}

/* Price Display for Single Fields (number, etc.) */
.fm-field-price {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--tf-primary-light);
  color: var(--tf-primary);
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

/* Headings & Info */
.fm-heading {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--tf-text);
  margin: 8px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tf-border);
}

.fm-info-text {
  background: var(--tf-primary-light);
  border-left: 4px solid var(--tf-primary);
  padding: 16px 18px;
  font-size: 0.95em;
  color: var(--tf-text);
  line-height: 1.6;
  border-radius: 0 10px 10px 0;
}

.fm-divider {
  border: none;
  border-top: 2px solid var(--tf-border);
  margin: 20px 0;
}

/* Price Display */
.fm-price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: var(--tf-primary-light);
  border: 2px solid var(--tf-primary);
  border-radius: var(--tf-radius);
  margin: 28px 0;
}

.fm-price-display__label {
  font-weight: 600;
  color: var(--tf-text);
  font-size: 1.05em;
}

.fm-price-display__value {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--tf-primary);
}

/* Error Message */
.fm-error-message {
  padding: 16px 18px;
  background: var(--tf-error-light);
  border: 2px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--tf-radius);
  margin-bottom: 20px;
  font-weight: 500;
}

/* Form Actions */
.fm-form__actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--tf-border);
}

/* Buttons */
.fm-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tf-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fm-btn--primary {
  background: var(--tf-primary);
  color: #fff;
}

.fm-btn--primary:hover {
  background: var(--tf-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 33, 0.3);
}

.fm-btn--secondary {
  background: var(--tf-bg-subtle);
  color: var(--tf-text);
  border: 2px solid var(--tf-border);
}

.fm-btn--secondary:hover {
  background: #fff;
  border-color: var(--tf-primary);
}

.fm-btn--submit {
  min-width: 200px;
  justify-content: center;
}

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

/* File Input */
.fm-file-input {
  width: 100%;
  padding: 16px 18px;
  border: 2px dashed var(--tf-border);
  border-radius: var(--tf-radius);
  background: var(--tf-bg-subtle);
  cursor: pointer;
  transition: all var(--tf-transition);
}

.fm-file-input:hover {
  border-color: var(--tf-primary);
  background: var(--tf-primary-light);
}

/* Cards Field */
.fm-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.fm-card {
  background: var(--tf-bg);
  border: 2px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--tf-transition);
  cursor: default;
}

.fm-card:hover {
  border-color: #ffc9a8;
  box-shadow: var(--tf-shadow);
}

.fm-card--selected {
  border-color: var(--tf-primary);
  background: var(--tf-primary-light);
  box-shadow: 0 4px 16px rgba(255, 122, 33, 0.15);
}

.fm-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.fm-card__icon {
  font-size: 2.8em;
  line-height: 1;
}

.fm-card__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.fm-card__title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--tf-text);
}

.fm-card__description {
  font-size: 0.85em;
  color: var(--tf-text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.fm-card__price {
  display: inline-block;
  padding: 4px 12px;
  background: var(--tf-primary-light);
  color: var(--tf-primary);
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 14px;
  white-space: nowrap;
}

.fm-card--selected .fm-card__price {
  background: var(--tf-primary);
  color: white;
}

.fm-card__stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.fm-card__stepper-btn {
  width: 38px;
  height: 38px;
  border: 2px solid var(--tf-border);
  background: var(--tf-bg);
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--tf-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tf-transition);
  user-select: none;
}

.fm-card__stepper-btn:hover:not(:disabled) {
  border-color: var(--tf-primary);
  color: var(--tf-primary);
  background: var(--tf-primary-light);
}

.fm-card__stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fm-card__stepper-input {
  width: 50px !important;
  height: 38px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  border: 2px solid var(--tf-border);
  border-radius: 10px;
  padding: 0 !important;
  margin: 0 !important;
}

.fm-card__subtotal {
  display: inline-block;
  padding: 4px 12px;
  background: var(--tf-primary);
  color: white;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
  .fm-form {
    padding: 24px 20px;
    border-radius: 0;
    box-shadow: none;
  }
  
  .fm-step-nav {
    display: none;
  }
  
  .fm-form__actions {
    flex-direction: column-reverse;
  }
  
  .fm-btn {
    width: 100%;
    justify-content: center;
  }
  
  .fm-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .fm-step__title {
    font-size: 1.3em;
  }
}

/* ============================================
   PHONE FIELD WITH COUNTRY CODE
   ============================================ */

.fm-phone-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.fm-phone-country-wrapper {
  position: relative;
  flex-shrink: 0;
}

.fm-phone-country-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--tf-bg);
  border: 2px solid var(--tf-border);
  border-radius: 10px;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--tf-transition);
  height: 100%;
  box-sizing: border-box;
}

.fm-phone-country-btn:hover {
  border-color: #ffc9a8;
  background: var(--tf-primary-light);
}

.fm-phone-country-btn:focus {
  border-color: var(--tf-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.12);
}

.fm-phone-flag {
  font-size: 1.3em;
  line-height: 1;
}

.fm-phone-code {
  font-weight: 400;
  color: var(--tf-text);
}

.fm-phone-arrow {
  color: var(--tf-text-muted);
  font-size: 0.7em;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.fm-phone-arrow-up {
  transform: rotate(180deg);
}

.fm-phone-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  background: var(--tf-bg);
  border: 2px solid var(--tf-primary);
  border-radius: 12px;
  box-shadow: var(--tf-shadow-lg);
  z-index: 1000;
  animation: fm-dropdown-fade 0.15s ease;
  overflow: hidden;
}

@keyframes fm-dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fm-phone-search {
  padding: 12px;
  border-bottom: 1px solid var(--tf-border);
}

.fm-phone-search-input {
  width: 100%;
  padding: 10px 14px;
  margin: 0 !important;
  border: 2px solid var(--tf-border);
  border-radius: 8px;
  font-size: 0.95em;
  background: var(--tf-bg-subtle);
  box-sizing: border-box;
}

.fm-phone-search-input:focus {
  outline: none;
  border-color: var(--tf-primary);
  background: var(--tf-bg);
}

.fm-phone-options {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 280px;
  overflow-y: auto;
}

.fm-phone-options::-webkit-scrollbar {
  width: 6px;
}

.fm-phone-options::-webkit-scrollbar-thumb {
  background: var(--tf-border);
  border-radius: 3px;
}

.fm-phone-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.fm-phone-option:hover {
  background: var(--tf-primary-light);
}

.fm-phone-option-selected {
  background: var(--tf-primary-light);
}

.fm-phone-option-selected .fm-phone-option-name {
  color: var(--tf-primary);
  font-weight: 600;
}

.fm-phone-option-flag {
  font-size: 1.3em;
  line-height: 1;
}

.fm-phone-option-name {
  flex: 1;
  color: var(--tf-text);
  font-size: 0.95em;
}

.fm-phone-option-code {
  color: var(--tf-text-muted);
  font-size: 0.9em;
  font-weight: 400;
}

.fm-phone-no-results {
  padding: 20px 16px;
  text-align: center;
  color: var(--tf-text-muted);
  font-size: 0.95em;
}

.fm-phone-number-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--tf-bg);
  border: 2px solid var(--tf-border);
  border-radius: 10px;
  font-size: 1em;
  color: var(--tf-text);
  transition: all var(--tf-transition);
  box-sizing: border-box;
}

.fm-phone-number-input:hover {
  border-color: #ffc9a8;
  background: var(--tf-primary-light);
}

.fm-phone-number-input:focus {
  border-color: var(--tf-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.12);
  background: var(--tf-bg);
}

@media (max-width: 480px) {
  .fm-phone-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .fm-phone-country-btn {
    width: 100%;
    justify-content: flex-start;
  }
  
  .fm-phone-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* ============================================
   URL FIELD STYLES
   ============================================ */

.fm-url-field {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--tf-bg);
  border: 2px solid var(--tf-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--tf-transition);
}

.fm-url-field:hover {
  border-color: #ffc9a8;
}

.fm-url-field:focus-within {
  border-color: var(--tf-primary);
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.1);
}

.fm-url-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 14px 16px;
  font-size: 1.2em;
  background: var(--tf-bg-secondary);
  border-right: 1px solid var(--tf-border);
  color: var(--tf-text-muted);
}

.fm-url-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-size: 1em;
  color: var(--tf-text);
  outline: none;
}

.fm-url-input::placeholder {
  color: var(--tf-text-muted);
  opacity: 0.7;
}

/* ============================================
   SUMMARY FIELD STYLES
   ============================================ */

.fm-summary {
  background: var(--tf-bg-secondary);
  border: 2px solid var(--tf-border);
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
}

.fm-summary__title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--tf-text);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tf-border);
}

.fm-summary__empty {
  color: var(--tf-text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.fm-summary__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fm-summary__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  background: var(--tf-bg);
  border-radius: 8px;
  border: 1px solid var(--tf-border);
}

.fm-summary__label {
  font-weight: 500;
  color: var(--tf-text-muted);
  flex-shrink: 0;
  max-width: 40%;
}

.fm-summary__value {
  color: var(--tf-text);
  text-align: right;
  word-break: break-word;
  flex: 1;
}

/* Summary Image Preview */
.fm-summary__file {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.fm-summary__image-preview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--tf-border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fm-summary__filename {
  font-size: 0.85em;
  color: var(--tf-text-muted);
}

@media (max-width: 600px) {
  .fm-summary__item {
    flex-direction: column;
    gap: 4px;
  }
  
  .fm-summary__label {
    max-width: 100%;
  }
  
  .fm-summary__value {
    text-align: left;
  }
}

/* ============================================
   FILE UPLOAD STYLES
   ============================================ */

.fm-file-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fm-file-input {
  padding: 14px 16px;
  background: var(--tf-bg);
  border: 2px dashed var(--tf-border);
  border-radius: 10px;
  font-size: 1em;
  color: var(--tf-text);
  cursor: pointer;
  transition: all var(--tf-transition);
}

.fm-file-input:hover {
  border-color: var(--tf-primary);
  background: rgba(255, 122, 33, 0.05);
}

.fm-file-input:focus {
  outline: none;
  border-color: var(--tf-primary);
  box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.1);
}

.fm-file-input::file-selector-button {
  padding: 8px 16px;
  margin-right: 12px;
  background: var(--tf-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tf-transition);
}

.fm-file-input::file-selector-button:hover {
  background: var(--tf-primary-hover);
}

.fm-file-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--tf-bg-secondary);
  border: 1px solid var(--tf-border);
  border-radius: 8px;
}

.fm-file-icon {
  font-size: 1.5em;
}

.fm-file-name {
  flex: 1;
  font-weight: 500;
  color: var(--tf-text);
  word-break: break-all;
}

.fm-file-size {
  color: var(--tf-text-muted);
  font-size: 0.9em;
}

.fm-file-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1em;
  transition: all var(--tf-transition);
}

.fm-file-remove:hover {
  background: #dc2626;
  color: white;
}

.fm-file-hint {
  font-size: 0.85em;
  color: var(--tf-text-muted);
  margin: 0;
}

/* ============================================
   SUCCESS PAGE STYLES
   ============================================ */

.fm-form--success {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 16px;
  border: 2px solid #86efac;
}

.fm-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #22c55e;
  color: white;
  font-size: 3em;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
  animation: fm-success-bounce 0.6s ease;
}

@keyframes fm-success-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.fm-form--success h2 {
  font-size: 1.8em;
  color: #166534;
  margin: 0 0 16px 0;
}

.fm-form--success p {
  font-size: 1.1em;
  color: #15803d;
  margin: 8px 0;
  line-height: 1.6;
}

.fm-success-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border-left: 4px solid var(--tf-primary);
}

.fm-success-note p {
  color: var(--tf-text);
  font-size: 0.95em;
  margin: 0;
}

.fm-success-note strong {
  color: var(--tf-primary);
}

/* Submit Button Styling */
.fm-btn--submit {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  font-size: 1.1em;
  padding: 16px 32px !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.fm-btn--submit:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}
