/* Register Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, 
      rgba(var(--brand-color-rgb), 0.9) 0%, 
      rgba(139, 0, 0, 0.9) 100%
    ),
    url('/static/image/hero.avif') center/cover;
    overflow: hidden;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="0.3" fill="white" opacity="0.08"/><circle cx="50" cy="10" r="0.4" fill="white" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  .hero-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  /* Register Section */
  .register-section {
    margin-top: -40px;
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
  }
  
  /* Step Indicator */
  .step-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    padding: 0 2rem;
  }
  
  .step-line {
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    z-index: 1;
  }
  
  .step-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .step {
    text-align: center;
    z-index: 2;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-300);
    border: 3px solid var(--gray-300);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .step-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1; /* 추가: 텍스트 높이를 정확히 맞춤 */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .step-icon {
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute; /* 추가: 절대 위치로 정확한 중앙 배치 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* 수정: 중앙 정렬과 스케일 동시 적용 */
    line-height: 1;
  }
  
  .step-label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(var(--brand-color-rgb), 0.1);
  }
  
  .step.active .step-number {
    color: white;
  }
  
  .step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
  }
  
    /* 완료된 단계의 아이콘 표시 */
    .step.completed .step-number {
        opacity: 0;
        transform: scale(0);
    }
  
  .step.completed .step-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* 수정: 중앙 정렬 유지하면서 스케일 적용 */
  }
  
  
  .step.completed .step-label {
    color: var(--success-color);
    font-weight: 600;
  }
  
  /* Register Card */
  .register-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.98);
  }
  
  /* Step Content */
  .step-content {
    display: none;
    padding: 3rem;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .step-content.active {
    display: block;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Step Header */
  .step-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
  }
  
  .step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
  }
  
  /* Terms Container */
  .terms-container {
    margin-bottom: 2rem;
  }
  
  .terms-all {
    background: var(--primary-accent);
    border: 2px solid rgba(var(--brand-color-rgb), 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .terms-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .terms-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .terms-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
  }
  
  .terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--white);
    cursor: pointer;
  }
  
  .terms-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 50%;
  }
  
  .terms-toggle:hover {
    background: var(--gray-100);
    color: var(--primary-color);
  }
  
  .terms-toggle.active {
    transform: rotate(180deg);
    color: var(--primary-color);
  }
  
  .terms-content {
    display: none;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
  }
  
  .terms-content.show {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 500px;
    }
  }
  
  .terms-text {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
  }
  
  .terms-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
  }
  
  .terms-text h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem 0;
  }
  
  .terms-text p {
    margin: 0 0 1rem 0;
  }
  
  .terms-text ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
  }
  
  .terms-text li {
    margin-bottom: 0.5rem;
  }
  
  .terms-note {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
  }
  
  /* Custom Checkbox */
  .terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
  }
  
  .terms-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  
  .checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
  }
  
  .checkbox-mark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .terms-checkbox input:checked + .checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .terms-checkbox input:checked + .checkbox-mark::after {
    transform: rotate(45deg) scale(1);
  }
  
  .checkbox-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
  }
  
  .terms-title {
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .terms-required-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
  }
  
  .terms-optional-badge {
    background: var(--gray-400);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
  }
  
  /* Member Type Selection */
  .member-type-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .member-type-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  .member-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-color-rgb), 0.05), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .member-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
  
  .member-type-card:hover::before {
    left: 100%;
  }
  
  .member-type-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }

  .member-type-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  /* 회원 유형 안내 박스 */
  .member-type-notice {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
  }

  .member-type-notice.corporate {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #60a5fa;
  }

  .member-type-notice i {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #d97706;
  }

  .member-type-notice.corporate i {
    color: #2563eb;
  }

  .member-type-notice small {
    font-size: 0.813rem;
    line-height: 1.4;
    color: #4b5563;
  }

  .member-type-notice strong {
    color: #1f2937;
    font-weight: 600;
  }
  
  .member-type-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
  }
  
  .member-type-description {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    font-weight: 500;
    line-height: 1.5;
  }
  
  .member-type-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
  }
  
  .member-type-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
  }
  
  .member-type-benefits .bi-check-circle-fill {
    color: var(--success-color);
    font-size: 1rem;
  }
  
  .member-type-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 32px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
  }
  
  .member-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6B0000 100%);
  }
  
  /* Step Footer */
  .step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
  }
  
  .btn-prev,
  .btn-next {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 1.5rem;
    border-radius: 32px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
  }
  
  .btn-next {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    margin-left: auto;
  }
  
  .btn-next:disabled {
    background: var(--gray-300);
    border-color: var(--gray-300);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
  }
  
  .btn-prev:hover,
  .btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-prev:hover {
    background: var(--primary-color);
    color: white;
  }
  
  .btn-next:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6B0000 100%);
  }
  
  /* Completion Page */
  .completion-container {
    text-align: center;
    padding: 2rem 0;
  }
  
  .completion-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: bounceIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: scale(0.3);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
    70% {
      transform: scale(0.9);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .completion-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
  }
  
  .completion-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
    font-weight: 500;
  }
  
  .completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    border-radius: 32px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
  }
  
  .btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--border-color);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6B0000 100%);
    color: white;
  }
  
  .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-50);
    color: var(--text-primary);
  }
  
  /* Responsive Design */
  @media (max-width: 991.98px) {
    .step-wrapper {
      max-width: 500px;
      padding: 0 1rem;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
      }
      
      .step-number {
        font-size: 1rem;
      }
      
      .step-icon {
        font-size: 1.25rem;
      }
    
    .member-type-container {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .hero-title {
      font-size: 1.875rem;
    }
  }
  
  @media (max-width: 768px) {
    .register-section {
      margin-top: -20px;
    }
    
    .step-content {
      padding: 2rem 1.5rem;
    }
    
    .hero-section {
      height: 200px;
    }
    
    .hero-title {
      font-size: 1.625rem;
    }
    
    .hero-subtitle {
      font-size: 0.875rem;
    }
    
    .step-wrapper {
      margin-bottom: 2rem;
    }
    
    .step-title {
      font-size: 1.5rem;
    }
    
    .step-description {
      font-size: 0.875rem;
    }
    
    .completion-actions {
      flex-direction: column;
      align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
      width: 100%;
      max-width: 280px;
      justify-content: center;
    }
  }
  
  @media (max-width: 576px) {
    .step-content {
      padding: 1.5rem 1rem;
    }
    
    .step-wrapper {
      padding: 0 0.5rem;
    }
    
    .step-circle {
    width: 45px;
    height: 45px;
    }

    .step-number {
        font-size: 0.9rem;
      }
      
      .step-icon {
        font-size: 1.1rem;
      }


    .step-label {
      font-size: 0.75rem;
    }
    
    .terms-all,
    .terms-header {
      padding: 1rem;
    }
    
    .terms-text {
      padding: 1rem;
      font-size: 0.8rem;
    }
    
    .member-type-card {
      padding: 1.5rem;
    }
    
    .member-type-icon {
      font-size: 2.5rem;
    }
    
    .member-type-title {
      font-size: 1.25rem;
    }
    
    .completion-icon {
      font-size: 3rem;
    }
    
    .completion-title {
      font-size: 1.5rem;
    }
    
    .step-footer {
      flex-direction: column;
      gap: 1rem;
    }
    
    .btn-prev,
    .btn-next {
      width: 100%;
      justify-content: center;
    }
    
    .btn-next {
      margin-left: 0;
    }
  }
  
  /* Loading States */
  .loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
  }
  
  .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
  }
  
  @keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  /* Accessibility */
  .terms-checkbox:focus-within .checkbox-mark,
  .member-type-card:focus-within,
  .btn-prev:focus-visible,
  .btn-next:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Smooth transitions */
  * {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }


  /* Form Styles */
.form-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
  }
  
  .form-section:last-child {
    margin-bottom: 0;
  }
  
  .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-accent);
    position: relative;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group.full-width {
    grid-column: 1 / -1;
  }
  
  .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .required {
    color: var(--error-color);
    font-weight: 700;
  }
  
  .form-control {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--text-primary);
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--brand-color-rgb), 0.1);
  }
  
  .form-control.invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }
  
  .form-control.valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  }
  
  .invalid-feedback {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
  }
  
  .invalid-feedback.show {
    display: block;
  }
  
  .form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.4;
  }
  
  /* Password Strength Indicator */
  .password-strength {
    margin-top: 0.5rem;
    display: none;
  }
  
  .password-strength.show {
    display: block;
  }
  
  .strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
  }
  
  .strength-progress {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .strength-progress.weak {
    width: 33%;
    background: var(--error-color);
  }
  
  .strength-progress.medium {
    width: 66%;
    background: var(--warning-color);
  }
  
  .strength-progress.strong {
    width: 100%;
    background: var(--success-color);
  }
  
  .strength-text {
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .strength-text.weak {
    color: var(--error-color);
  }
  
  .strength-text.medium {
    color: var(--warning-color);
  }
  
  .strength-text.strong {
    color: var(--success-color);
  }
  
  /* Member Type in Step 1 adjustments */
  .member-type-container {
    margin-bottom: 2rem;
  }
  
  /* Responsive Form */
  @media (max-width: 768px) {
    .form-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .form-section {
      padding: 1.5rem;
    }
    
    .section-title {
      font-size: 1.125rem;
    }
  }
  
  @media (max-width: 576px) {
    .form-section {
      padding: 1rem;
    }
    
    .form-control {
      padding: 0.75rem;
      font-size: 0.9rem;
    }
  }


  /* Phone Verification Styles */
.phone-verification-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .phone-input-group,
  .verification-input-group {
    display: flex;
    gap: 0.5rem;
  }
  
  .phone-input-group input,
  .verification-input-group input {
    flex: 1;
  }
  
  .btn-verification,
  .btn-verify,
  .btn-resend {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 100px;
  }
  
  .btn-verification:hover,
  .btn-verify:hover,
  .btn-resend:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  
  .btn-verification:disabled,
  .btn-verify:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
  }
  
  .btn-resend {
    background: var(--gray-500);
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    min-width: auto;
  }
  
  .btn-resend:hover {
    background: var(--gray-600);
  }
  
  .verification-section {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .verification-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
  }
  
  .verification-timer #timer {
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .verification-timer #timer.expired {
    color: var(--error-color);
  }
  
  .verification-status {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    margin-top: 0.5rem;
    display: none;
  }
  
  .verification-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
  }
  
  .verification-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
  }
  
  .verification-status.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: block;
  }
  
  /* Loading state for verification button */
  .btn-verification.loading,
  .btn-verify.loading {
    position: relative;
    color: transparent;
  }
  
  .btn-verification.loading::after,
  .btn-verify.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
  }
  
  @media (max-width: 576px) {
    .phone-input-group,
    .verification-input-group {
      flex-direction: column;
    }
    
    .btn-verification,
    .btn-verify {
      min-width: auto;
    }
  }