* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6F3BF0;
  --primary-dark: #5a2fc7;
  --secondary-color: #667eea;
  --success-color: #10b981;
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --background: #f9fafb;
  --white: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

/* Logo */
.logo-container {
  padding: 30px 0 20px;
  text-align: center;
  background: var(--white);
}

.logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.form-container {
  width: 100%;
  max-width: 650px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Steps */
.steps-container {
  position: relative;
  min-height: 500px;
}

.step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding: 60px 50px;
}

.step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  position: relative;
}

.step.exiting {
  opacity: 0;
  transform: translateX(-50px);
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Icons */
.icon-wrapper {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
}

.icon-wrapper.small {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.icon-wrapper.success {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: scale-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-wrapper i {
  font-size: 40px;
  color: var(--white);
}

.icon-wrapper.small i {
  font-size: 30px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scale-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Typography */
.step-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.2;
}

.step-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 500px;
}

/* Input Fields */
.input-field {
  width: 100%;
  max-width: 450px;
  padding: 18px 22px;
  font-size: 17px;
  border: 3px solid #e5e7eb;
  border-radius: 14px;
  transition: all 0.3s ease;
  outline: none;
  background: #f9fafb;
  color: var(--text-color);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-weight: 500;
}

.input-field:hover {
  border-color: #d1d5db;
  background: var(--white);
}

.input-field:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(111, 59, 240, 0.1), 0 4px 12px rgba(111, 59, 240, 0.1);
  transform: translateY(-2px);
}

.input-field::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.textarea-field {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

select.input-field {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236F3BF0'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E") no-repeat right 18px center;
  background-size: 20px 20px;
  padding-right: 50px;
}

select.input-field:hover {
  border-color: var(--primary-color);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236F3BF0'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E") no-repeat right 18px center;
  background-size: 20px 20px;
}

select.input-field:focus {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236F3BF0'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E") no-repeat right 18px center;
  background-size: 20px 20px;
}

/* Preview Image */
.preview-image {
  width: 100%;
  max-width: 450px;
  height: 200px;
  border-radius: 12px;
  background: #f3f4f6;
  margin-bottom: 20px;
  display: none;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.preview-image.show {
  display: block;
  animation: fade-in 0.3s ease;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Buttons */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  width: 100%;
  max-width: 450px;
}

.btn-primary,
.btn-secondary,
.btn-submit {
  flex: 1;
  padding: 18px 36px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(111, 59, 240, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(111, 59, 240, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(111, 59, 240, 0.35);
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text-color);
  border: 2px solid #e5e7eb;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-submit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit:disabled:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Review Box */
.review-box {
  width: 100%;
  max-width: 450px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
  border: 2px solid #e5e7eb;
}

.review-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.review-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.review-value {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
  word-break: break-word;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* Error State */
.input-field.error {
  border-color: #ef4444;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: -20px;
  margin-bottom: 20px;
  text-align: center;
}

/* Radio buttons */
.radio-group {
  width: 100%;
  max-width: 450px;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radio-option {
  display: block;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 3px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.radio-option::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-radius: 50%;
  background: white;
  transition: all 0.3s ease;
}

.radio-option::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-option:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(111, 59, 240, 0.15);
}

.radio-option:hover::before {
  border-color: var(--primary-color);
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: var(--primary-color);
  font-weight: 700;
}

.radio-option:has(input:checked) {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(111, 59, 240, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  box-shadow: 0 8px 24px rgba(111, 59, 240, 0.2), 0 0 0 4px rgba(111, 59, 240, 0.1);
  transform: translateY(-2px);
}

.radio-option:has(input:checked)::before {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.radio-option:has(input:checked)::after {
  transform: translateY(-50%) scale(1);
  background: white;
}

.radio-label {
  display: block;
  font-size: 17px;
  color: var(--text-color);
  user-select: none;
  padding-right: 40px;
  line-height: 1.4;
}

/* Checkbox */
.checkbox-option {
  text-align: left;
  width: 100%;
  max-width: 450px;
  margin-bottom: 30px;
}

.checkbox-option label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-color);
  padding: 16px 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.checkbox-option label:hover {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(111, 59, 240, 0.1);
}

.checkbox-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--primary-color);
  transform: scale(1.1);
}

.checkbox-option label:has(input:checked) {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(111, 59, 240, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  box-shadow: 0 4px 12px rgba(111, 59, 240, 0.15);
  color: var(--primary-color);
  font-weight: 600;
}

/* Field label */
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
  max-width: 450px;
}

/* Upload button */
.upload-container {
  width: 100%;
  max-width: 450px;
  margin-bottom: 30px;
}

.btn-upload {
  padding: 24px 32px;
  font-size: 17px;
  font-weight: 600;
  border: 3px dashed var(--primary-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(111, 59, 240, 0.03) 0%, rgba(102, 126, 234, 0.03) 100%);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(111, 59, 240, 0.1);
}

.btn-upload:hover {
  background: linear-gradient(135deg, rgba(111, 59, 240, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(111, 59, 240, 0.25);
  border-style: solid;
}

.btn-upload i {
  font-size: 20px;
}

.file-info {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
  font-weight: 500;
}

.file-info.success {
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .form-container {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .step {
    padding: 40px 30px;
  }

  .step-title {
    font-size: 26px;
  }

  .step-description {
    font-size: 15px;
  }

  .input-field {
    font-size: 16px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-submit {
    width: 100%;
  }
}

/* Success Confetti Effect */
@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  animation: confetti-fall 3s linear;
  z-index: 9999;
}

/* WhatsApp Help Bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  max-width: 320px;
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-bubble:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-bubble i {
  font-size: 28px;
  flex-shrink: 0;
}

.whatsapp-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.2);
  }
}

/* Mobile responsiveness for WhatsApp bubble */
@media (max-width: 768px) {
  .whatsapp-bubble {
    bottom: 20px;
    right: 20px;
    padding: 14px 18px;
  }

  .whatsapp-bubble i {
    font-size: 24px;
  }

  .whatsapp-text {
    font-size: 12px;
    max-width: 180px;
  }
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  border-radius: 16px !important;
  padding: 2rem !important;
}

.swal2-title {
  color: #333 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

.swal2-html-container {
  color: #555 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.swal2-icon.swal2-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, #6F3BF0, #667EEA) !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  box-shadow: 0 4px 12px rgba(111, 59, 240, 0.3) !important;
  transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(111, 59, 240, 0.4) !important;
}

/* Toast styles */
.swal2-toast {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  padding: 16px 20px !important;
}

.swal2-toast .swal2-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.swal2-toast .swal2-html-container {
  font-size: 14px !important;
  margin: 4px 0 0 0 !important;
}

.swal2-toast .swal2-icon {
  width: 32px !important;
  height: 32px !important;
  margin: 0 12px 0 0 !important;
}

.swal2-timer-progress-bar {
  background: rgba(111, 59, 240, 0.8) !important;
}

/* Colored toast for errors */
.colored-toast.swal2-icon-error {
  background-color: #fee2e2 !important;
  border-left: 4px solid #ef4444 !important;
}

.colored-toast.swal2-icon-success {
  background-color: #d1fae5 !important;
  border-left: 4px solid #10b981 !important;
}

.colored-toast.swal2-icon-warning {
  background-color: #fef3c7 !important;
  border-left: 4px solid #f59e0b !important;
}

.colored-toast.swal2-icon-info {
  background-color: #dbeafe !important;
  border-left: 4px solid #3b82f6 !important;
}
