/* ============================================
   COMPLETE PROFILE FORM - CLEAN LAYOUT
   File: complete-profile-form.css
   Khusus untuk halaman Complete Profile (Google users)
   ============================================ */

/* ============================================
   PAGE VISIBILITY FIX
   ============================================ */
#completeProfilePage {
    display: none !important;
}

#completeProfilePage.active {
    display: block !important;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
#completeProfilePage {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#completeProfilePage .card-auth,
#completeProfilePage .auth-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ============================================
   PROGRESS STEPS - Already handled by responsive CSS
   ============================================ */

/* ============================================
   FORM CONTAINER
   ============================================ */
#completeProfilePage .form-container,
#completeProfilePage #completeProfileForm {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   FORM SECTIONS
   ============================================ */
#completeProfilePage .form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#completeProfilePage .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   FORM GROUPS - Single Column
   ============================================ */
#completeProfilePage .form-group {
    margin-bottom: 1rem;
    width: 100%;
}

#completeProfilePage .form-group:last-child {
    margin-bottom: 0;
}

#completeProfilePage .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

#completeProfilePage .form-group .required {
    color: #ef4444;
}

/* ============================================
   ALL INPUTS
   ============================================ */
#completeProfilePage input[type="text"],
#completeProfilePage input[type="email"],
#completeProfilePage input[type="password"],
#completeProfilePage input[type="number"],
#completeProfilePage input[type="tel"],
#completeProfilePage input[type="date"],
#completeProfilePage select,
#completeProfilePage .form-group input,
#completeProfilePage .form-group select {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    color: #1e293b !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

#completeProfilePage input:focus,
#completeProfilePage select:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

#completeProfilePage input::placeholder {
    color: #9ca3af;
}

/* ============================================
   FORM ROWS - Two Columns
   ============================================ */
#completeProfilePage .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.875rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
}

#completeProfilePage .form-row .form-group {
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* ============================================
   GENDER RADIO BUTTONS - VERTICAL LAYOUT
   ============================================ */
#completeProfilePage .radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
    width: 100% !important;
}

#completeProfilePage .radio-option {
    width: 100% !important;
}

#completeProfilePage .radio-option input[type="radio"] {
    display: none !important;
}

#completeProfilePage .radio-option label,
#completeProfilePage .radio-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.875rem 1.25rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#completeProfilePage .radio-option label:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

#completeProfilePage .radio-icon {
    font-size: 1.25rem !important;
}

/* Selected gender - purple background, white text */
#completeProfilePage .radio-option input[type="radio"]:checked + label,
#completeProfilePage .radio-option input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: #ffffff !important;
}

/* NOT selected - keep default styling */
#completeProfilePage .radio-option input[type="radio"]:not(:checked) + label,
#completeProfilePage .radio-option input[type="radio"]:not(:checked) + .radio-label {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* ============================================
   INPUT WITH UNIT (kg, cm)
   ============================================ */
#completeProfilePage .input-with-unit {
    position: relative !important;
    width: 100% !important;
}

#completeProfilePage .input-with-unit input {
    padding-right: 3rem !important;
}

#completeProfilePage .input-with-unit .unit {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    pointer-events: none !important;
}

/* ============================================
   GOAL CARDS - RESPONSIVE LAYOUT
   Mobile: Vertical (1 column)
   Tablet/Desktop: Horizontal (3 columns)
   ============================================ */
#completeProfilePage .goal-options {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 1rem !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

#completeProfilePage .goal-card {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 200px !important;
    cursor: pointer !important;
}

#completeProfilePage .goal-card input[type="radio"] {
    display: none !important;
}

#completeProfilePage .goal-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    min-height: 140px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#completeProfilePage .goal-content:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

#completeProfilePage .goal-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.75rem !important;
}

#completeProfilePage .goal-title {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    margin-bottom: 0.375rem !important;
}

#completeProfilePage .goal-desc {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}

/* Selected goal */
#completeProfilePage .goal-card input[type="radio"]:checked + .goal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3) !important;
}

#completeProfilePage .goal-card input[type="radio"]:checked + .goal-content .goal-title,
#completeProfilePage .goal-card input[type="radio"]:checked + .goal-content .goal-desc {
    color: #ffffff !important;
}

/* ============================================
   MOBILE ONLY - Vertical Layout
   ============================================ */
@media screen and (max-width: 600px) {
    #completeProfilePage .goal-options {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    #completeProfilePage .goal-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #completeProfilePage .goal-content {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 1rem 1.25rem !important;
        min-height: auto !important;
        gap: 1rem !important;
    }
    
    #completeProfilePage .goal-icon {
        font-size: 2rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    #completeProfilePage .goal-info {
        display: flex !important;
        flex-direction: column !important;
    }
    
    #completeProfilePage .goal-title {
        font-size: 0.9375rem !important;
    }
    
    #completeProfilePage .goal-desc {
        font-size: 0.75rem !important;
    }
}

/* ============================================
   TARGET WEIGHT GROUP
   ============================================ */
#completeProfilePage #targetWeightGroup {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* ============================================
   PASSWORD VALIDATION
   ============================================ */
#completeProfilePage .password-hint,
#completeProfilePage .validation-hint {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    margin-top: 0.25rem !important;
}

#completeProfilePage .password-hint.valid,
#completeProfilePage .validation-hint.valid {
    color: #10b981 !important;
}

#completeProfilePage .password-hint.invalid,
#completeProfilePage .validation-hint.invalid {
    color: #ef4444 !important;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
#completeProfilePage .btn-primary,
#completeProfilePage button[type="submit"] {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 1rem !important;
}

#completeProfilePage .btn-primary:hover,
#completeProfilePage button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35) !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media screen and (max-width: 480px) {
    #completeProfilePage .card-auth,
    #completeProfilePage .auth-card {
        padding: 1.25rem;
        border-radius: 16px;
        margin: 0.5rem;
    }
    
    #completeProfilePage .form-section {
        padding: 1rem 1.25rem;
    }
    
    #completeProfilePage .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Goal cards - tetap vertikal, sedikit lebih kecil */
    #completeProfilePage .goal-options {
        gap: 0.625rem !important;
    }
    
    #completeProfilePage .goal-content {
        padding: 1rem 0.875rem !important;
    }
    
    #completeProfilePage .goal-icon {
        font-size: 2rem !important;
    }
    
    #completeProfilePage .goal-title {
        font-size: 0.9375rem !important;
    }
    
    #completeProfilePage .goal-desc {
        font-size: 0.75rem !important;
    }
}

@media screen and (max-width: 375px) {
    #completeProfilePage .card-auth,
    #completeProfilePage .auth-card {
        padding: 1rem;
    }
    
    #completeProfilePage .form-section {
        padding: 0.875rem 1rem;
    }
    
    #completeProfilePage .section-title {
        font-size: 0.9375rem;
    }
    
    #completeProfilePage input,
    #completeProfilePage select {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.875rem !important;
    }
    
    #completeProfilePage .radio-option label {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
#completeProfilePage .form-container::-webkit-scrollbar {
    width: 6px;
}

#completeProfilePage .form-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#completeProfilePage .form-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#completeProfilePage .form-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}