/* ============================================
   REGISTRATION PAGES - PREMIUM MINIMALIST
   Sage Green Accent | Modern & Compact
   ============================================ */

:root {
    /* Sage Green Palette */
    --sage-50: #f6f7f6;
    --sage-100: #e8ede8;
    --sage-200: #d1ddd1;
    --sage-300: #a8c5a8;
    --sage-400: #87A96B;
    --sage-500: #6b8e5f;
    --sage-600: #5a7c4f;
    --sage-700: #4a6b3f;
    
    /* Neutrals */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Status */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(135, 169, 107, 0.15);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   REGISTRATION CONTAINER
   ============================================ */

.registration-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--neutral-50) 0%, #ffffff 100%);
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================
   TYPE SELECTION PAGE
   ============================================ */

.reg-type-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reg-type-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.reg-type-header p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    margin: 0;
}

.reg-type-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .reg-type-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.reg-type-card {
    background: #ffffff;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.reg-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sage-400);
    transform: scaleX(0);
    transition: var(--transition);
}

.reg-type-card:hover {
    border-color: var(--sage-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.reg-type-card:hover::before {
    transform: scaleX(1);
}

.reg-type-card.selected {
    border-color: var(--sage-400);
    background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
    box-shadow: var(--shadow-lg);
}

.reg-type-card.selected::before {
    transform: scaleX(1);
}

.reg-type-icon {
    width: 48px;
    height: 48px;
    background: var(--sage-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.reg-type-card.selected .reg-type-icon {
    background: var(--sage-400);
    color: white;
}

.reg-type-icon i {
    font-size: 1.5rem;
    color: var(--sage-400);
    transition: var(--transition);
}

.reg-type-card.selected .reg-type-icon i {
    color: white;
}

.reg-type-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    text-align: center;
}

.reg-type-desc {
    font-size: 0.875rem;
    color: var(--neutral-600);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.reg-type-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
}

.reg-type-features li {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-type-features li i {
    color: var(--sage-400);
    font-size: 0.875rem;
}

/* Continue button removed - cards auto-submit */

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.reg-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.reg-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 80px;
}

.reg-progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--neutral-200);
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.reg-progress-step.active .reg-progress-number {
    background: var(--sage-400);
    color: white;
    box-shadow: 0 0 0 4px var(--sage-100);
}

.reg-progress-step.completed .reg-progress-number {
    background: var(--sage-400);
    color: white;
}

.reg-progress-step.completed .reg-progress-number::after {
    content: '✓';
    position: absolute;
}

.reg-progress-label {
    font-size: 0.75rem;
    color: var(--neutral-600);
    text-align: center;
    font-weight: 500;
}

.reg-progress-step.active .reg-progress-label {
    color: var(--sage-400);
    font-weight: 600;
}

.reg-progress-line {
    flex: 1;
    height: 2px;
    background: var(--neutral-200);
    margin: 0 0.25rem;
    transition: var(--transition);
}

.reg-progress-line.completed {
    background: var(--sage-400);
}

/* ============================================
   REGISTRATION FORM CARD
   ============================================ */

.reg-form-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.reg-form-header {
    background: linear-gradient(135deg, var(--sage-400) 0%, var(--sage-500) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.reg-form-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reg-form-body {
    padding: 2rem;
}

@media (max-width: 640px) {
    .reg-form-body {
        padding: 1.5rem;
    }
}

/* ============================================
   FORM FIELDS
   ============================================ */

.reg-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.reg-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.reg-form-label .required {
    color: var(--error);
    margin-left: 0.25rem;
}

.reg-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--neutral-900);
    transition: var(--transition);
    font-family: inherit;
}

.reg-form-input:focus {
    outline: none;
    border-color: var(--sage-400);
    box-shadow: 0 0 0 3px var(--sage-100);
}

.reg-form-input::placeholder {
    color: var(--neutral-400);
}

.reg-form-help {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.reg-form-help i {
    font-size: 0.875rem;
}

.reg-validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.reg-validation-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.reg-validation-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.reg-form-error {
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: 0.375rem;
}

/* ============================================
   ADDRESS AUTOCOMPLETE
   ============================================ */

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    display: none;
    margin-top: 0.25rem;
}

.address-suggestion-item {
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid var(--neutral-100);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-height: 48px;
}

.address-suggestion-item:hover {
    background: var(--sage-50);
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:active {
    background: var(--sage-100);
}

.address-suggestion-icon {
    color: var(--sage-400);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.address-suggestion-text {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--neutral-700);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.address-suggestion-text strong {
    color: var(--neutral-900);
    font-weight: 600;
}

/* Scrollbar styling for suggestions */
.address-suggestions::-webkit-scrollbar {
    width: 6px;
}

.address-suggestions::-webkit-scrollbar-track {
    background: var(--neutral-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.address-suggestions::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}

.address-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* ============================================
   CAMERA CAPTURE
   ============================================ */

.reg-camera-capture {
    position: relative;
}

.reg-camera-btn {
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: var(--neutral-50);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.reg-camera-btn:hover {
    border-color: var(--sage-400);
    background: var(--sage-50);
}

.reg-camera-icon {
    width: 64px;
    height: 64px;
    background: var(--sage-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-400);
    font-size: 2rem;
    transition: var(--transition);
}

.reg-camera-btn:hover .reg-camera-icon {
    background: var(--sage-400);
    color: white;
    transform: scale(1.1);
}

.reg-camera-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.reg-camera-hint {
    font-size: 0.8125rem;
    color: var(--neutral-500);
}

.reg-camera-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--sage-400);
    margin-top: 1rem;
}

.reg-camera-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: var(--neutral-100);
    display: block;
}

.reg-camera-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
    z-index: 10;
}

.reg-camera-remove:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

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

.reg-file-upload {
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    background: var(--neutral-50);
    transition: var(--transition);
    cursor: pointer;
}

.reg-file-upload:hover {
    border-color: var(--sage-400);
    background: var(--sage-50);
}

.reg-file-upload input[type="file"] {
    display: none;
}

.reg-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.reg-file-upload-icon {
    width: 48px;
    height: 48px;
    background: var(--sage-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-400);
    font-size: 1.5rem;
}

.reg-file-upload-text {
    font-size: 0.875rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.reg-file-upload-hint {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-top: 0.25rem;
}

.reg-file-preview {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.reg-file-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

/* ============================================
   BUTTONS
   ============================================ */

.reg-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.reg-btn-primary {
    background: var(--sage-400);
    color: white;
    box-shadow: var(--shadow-sm);
}

.reg-btn-primary:hover {
    background: var(--sage-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.reg-btn-secondary {
    background: #ffffff;
    color: var(--neutral-700);
    border: 2px solid var(--neutral-200);
}

.reg-btn-secondary:hover {
    border-color: var(--neutral-300);
    background: var(--neutral-50);
}

.reg-btn-success {
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-sm);
}

.reg-btn-success:hover {
    background: #059669;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.reg-btn-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.reg-btn-group .reg-btn {
    flex: 1;
}

/* ============================================
   ALERTS
   ============================================ */

.reg-alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.reg-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.reg-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.reg-alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ============================================
   FOOTER LINK
   ============================================ */

.reg-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

.reg-footer-link {
    font-size: 0.875rem;
    color: var(--neutral-600);
    text-decoration: none;
    transition: var(--transition);
}

.reg-footer-link:hover {
    color: var(--sage-400);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .registration-wrapper {
        padding: 1rem;
    }
    
    .reg-type-header h1 {
        font-size: 1.5rem;
    }
    
    .reg-form-body {
        padding: 1.25rem;
    }
    
    .reg-btn-group {
        flex-direction: column;
    }
    
    .reg-btn-group .reg-btn {
        width: 100%;
    }
}

