/* แก้ไขปัญหาการแสดงผลแบบฟอร์ม - รองรับ Vue.js v-show */
.step-section {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease-in-out;
}

.step-section.active {
  opacity: 1;
  transform: translateX(0);
  animation: fadeIn 0.5s ease-in-out;
}

/* สำหรับ Vue.js v-show - เมื่อ Vue แสดง element */
.step-section[style*="display: block"],
.step-section[style*="display: inline-block"],
.step-section:not([style*="display: none"]) {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
    
    .step-indicator {
      transition: all 0.3s ease;
      text-align: center;
    }
    
    .image-preview {
      position: relative;
      display: inline-block;
      max-width: 200px;
      max-height: 200px;
    }
    
    .image-preview img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      border: 2px solid #e5e7eb;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .remove-image {
      position: absolute;
      top: -8px;
      right: -8px;
      background: #ef4444;
      color: white;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
      border: 2px solid white;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      transition: all 0.2s ease;
      z-index: 10;
    }
    
    .remove-image:hover {
      background: #dc2626;
      transform: scale(1.1);
    }
    
    .progress-step {
      transition: all 0.3s ease;
    }
    
    @media (max-width: 768px) {
      .step-indicator {
        margin-bottom: 1rem;
      }
      
      .step-indicator span {
        font-size: 0.75rem;
      }
      
      .step-line {
        display: none;
      }
      
      .image-preview img {
        height: 150px;
      }
    }
    
    .form-section {
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      border: 1px solid #e2e8f0;
    }
    
    .input-with-icon {
      position: relative;
    }
    
    .input-with-icon input, 
    .input-with-icon select, 
    .input-with-icon textarea {
      transition: all 0.3s ease;
    }
    
    .input-with-icon input:focus, 
    .input-with-icon select:focus, 
    .input-with-icon textarea:focus {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    }
    
    .upload-area {
      border: 2px dashed #cbd5e0;
      border-radius: 12px;
      padding: 2rem;
      text-align: center;
      transition: all 0.3s ease;
      cursor: pointer;
    }
    
    .upload-area:hover {
      border-color: #3b82f6;
      background-color: #eff6ff;
    }
    
    .btn-step {
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    .btn-step:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    
    .btn-step:active {
      transform: translateY(0);
    }
    
/* ปรับแต่งการแสดงผลสำหรับหน้าสมัครสมาชิก */

.mobile-nav-safe {
    padding-top: 120px;
}

@media (max-width: 768px) {
    .mobile-nav-safe {
        padding-top: 140px;
    }
}

/* Style สำหรับ progress bar */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.step-indicator.active {
    transform: scale(1.05);
}

/* Custom file upload style */
.file-upload-area {
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #3B82F6;
    background-color: #F8FAFC;
}

/* Loading animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Form validation styles */
.form-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-success {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .step-indicator {
        transform: scale(0.9);
    }
    
    .step-indicator span {
        font-size: 0.75rem;
    }
    
    .w-16 {
        width: 2rem;
    }
}

/* Custom checkbox style */
input[type="checkbox"]:checked {
    background-color: #3B82F6;
    border-color: #3B82F6;
}

/* Image preview styles */
.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #EF4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.remove-image-btn:hover {
    background-color: #DC2626;
}

/* Smooth transitions for all interactive elements */
input, select, textarea, button {
    transition: all 0.2s ease;
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

/* Disabled button styles */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success and error message animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message, .error-message {
    animation: slideInFromTop 0.3s ease;
}

/* แก้ปัญหา navbar ทับเนื้อหา */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.navbar-container {
  height: auto;
  min-height: 120px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .navbar-container {
    min-height: 140px;
  }
}

.mobile-nav-safe {
  padding-top: 180px !important;
  min-height: calc(100vh - 180px);
}

@media (max-width: 768px) {
  .mobile-nav-safe {
    padding-top: 200px !important;
    min-height: calc(100vh - 200px);
  }
}

/* เพิ่ม margin สำหรับ form container */
.form-container {
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}
