/**
 * Paulto - Change Edit User Form Style
 * Custom CSS for edit profile form styling
 * Version: 1.0.0
 */

/* ========================================
   AGE LABEL & FORM LABELS STYLING
   ======================================== */

/* Age Label and All Form Labels - Based on Attached Image */
.prfc-custom-register .form-group label,
.wpee-edit-profile label,
.edit-profile-form label,
.profile-edit-form label,
form[class*="edit"] label,
.wpee-profile-content label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #4B5563 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

/* Hover effect for labels */
.prfc-custom-register .form-group label:hover,
.wpee-edit-profile label:hover,
.edit-profile-form label:hover {
    color: #1F2937 !important;
}

/* Specific Age field label */
label[for*="age"],
label[for*="Age"],
label[for*="dob"],
label[for*="birth"] {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #4B5563 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   AVATAR & UPLOAD SECTION - GOOGLE STYLE
   ======================================== */

/* Google-style Avatar Upload Section - Clean & Minimal */
.image-edit-profile {
    background: #ffffff !important;
    border: 1px solid #dadce0 !important;
    border-radius: 8px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
    margin-bottom: 24px !important;
}

/* Form groups inside image-edit-profile */
.image-edit-profile .form-group {
    margin-bottom: 16px !important;
}

/* Photo preview styling - Google style */
.image-edit-profile #photo_preview,
.image-edit-profile .img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    border: 3px solid #e8eaed !important;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3) !important;
    object-fit: cover !important;
    transition: all 0.2s ease !important;
    display: block !important;
    margin: 0 auto !important;
}

.image-edit-profile #photo_preview:hover,
.image-edit-profile .img:hover {
    border-color: #dadce0 !important;
    box-shadow: 0 1px 3px 1px rgba(60,64,67,0.3) !important;
}

/* File input hidden */
.image-edit-profile input[type="file"],
.image-edit-profile #photo_upload {
    display: none !important;
}

/* Google-style upload button */
.image-edit-profile .custom-file-upload {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 24px !important;
    background: #ffffff !important;
    color: #1a73e8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.25px !important;
    border: 1px solid #dadce0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
    font-family: 'Google Sans', Roboto, Arial, sans-serif !important;
}

.image-edit-profile .custom-file-upload:hover {
    background: #f8f9fa !important;
    border-color: #d2d3d4 !important;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15) !important;
}

.image-edit-profile .custom-file-upload:active {
    background: #f1f3f4 !important;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3) !important;
}

.image-edit-profile .custom-file-upload .upload-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* SVG icon inside upload button */
.image-edit-profile .custom-file-upload .upload-icon svg {
    width: 100% !important;
    height: 100% !important;
    fill: currentColor !important;
    display: block !important;
}

/* Google-style upload instructions */
.image-edit-profile .avatar-upload-instructions {
    color: #5f6368 !important;
    font-size: 12px !important;
    margin-top: 8px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

/* File selected state - Google blue */
.image-edit-profile .custom-file-upload.file-selected {
    background: #e8f0fe !important;
    color: #1967d2 !important;
    border-color: #1a73e8 !important;
}

/* Avatar Container Wrapper */
.wpee-edit-profile .avatar-upload-section,
.edit-profile-form .avatar-section,
.profile-avatar-container,
.wpee-profile-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.wpee-edit-profile .avatar-upload-section::before,
.profile-avatar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h60v60H0z" fill="none"/><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Avatar Image Styling */
.wpee-edit-profile .avatar-preview,
.wpee-edit-profile img.avatar,
.edit-profile-form .avatar-image,
.profile-avatar-container img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    border: 5px solid #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    object-fit: cover !important;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin-bottom: 20px;
}

/* Avatar hover effect */
.wpee-edit-profile .avatar-preview:hover,
.wpee-edit-profile img.avatar:hover,
.profile-avatar-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Upload Button Container */
.avatar-upload-controls,
.wpee-edit-profile .upload-button-wrapper,
.profile-avatar-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
    width: 100%;
    max-width: 300px;
}

/* Upload Avatar Button Redesign */
.wpee-edit-profile .upload-avatar-btn,
.wpee-edit-profile input[type="file"],
.edit-profile-form .avatar-upload-btn,
.profile-upload-button,
button[class*="upload"][class*="avatar"],
input[type="file"][accept*="image"] {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: #ffffff !important;
    color: #667eea !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    z-index: 2;
}

/* Upload button hover effect */
.wpee-edit-profile .upload-avatar-btn:hover,
.edit-profile-form .avatar-upload-btn:hover,
.profile-upload-button:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Upload button active effect */
.wpee-edit-profile .upload-avatar-btn:active,
.edit-profile-form .avatar-upload-btn:active {
    transform: translateY(0);
}

/* File input styling */
input[type="file"][accept*="image"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/* Custom file input label */
.custom-file-upload {
    display: inline-block;
    padding: 12px 30px;
    background: #ffffff;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-file-upload:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Upload instruction text */
.avatar-upload-instructions,
.upload-info-text {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    z-index: 2;
    opacity: 0.9;
}

/* ========================================
   ABOUT ME FIELD - OPTIONAL STYLING
   ======================================== */

/* Remove required indicator from About Me */
label[for*="about"] .required,
label[for*="About"] .required,
label[for*="about_me"] .required,
label[for="about_me"] .wpee-mandatory-input,
label[for*="about"] .wpee-mandatory-input,
label[for*="About"] .wpee-mandatory-input,
label[for*="about"] span.required,
label[for*="About"] span.required,
label[for*="about"] span[style*="color"],
label[for*="About"] span[style*="color"] {
    display: none !important;
}

/* Optional badge for About Me */
.optional-badge {
    color: #10B981 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 5px !important;
}

/* Ẩn error message của About Me */
#about_me + .error,
#about_me ~ .error,
textarea[name="about_me"] + .error,
textarea[name="about_me"] ~ .error,
.form-group:has(#about_me) .error,
.form-group:has(textarea[name="about_me"]) .error {
    display: none !important;
}

/* Cân bằng label không có dấu * với pseudo-element */
label[for="cmbCity"]::after,
label[for="cmbState"]::after,
label[for="cmbStateid"]::after,
label[for="zip"]::after {
    content: '\200B' !important; /* Zero-width space */
    display: inline-block !important;
    width: 16px !important;
    height: 1em !important;
    visibility: hidden !important;
}

/* About Me label - make it look optional */
label[for*="about"]::after,
label[for*="About"]::after,
label[for*="about_me"]::after {
    content: ' (Optional)';
    font-weight: 400 !important;
    color: #9CA3AF !important;
    font-size: 11px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* About Me textarea styling */
textarea[name*="about"],
textarea[id*="about"],
textarea[name*="about_me"] {
    border: 1px solid #E5E7EB !important;
        border-radius: 8px !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    
}

/* About Me textarea focus */
textarea[name*="about"]:focus,
textarea[id*="about"]:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

/* ========================================
   GENERAL FORM IMPROVEMENTS
   ======================================== */

/* Form inputs styling */
.wpee-edit-profile input[type="text"],
.wpee-edit-profile input[type="email"],
.wpee-edit-profile input[type="number"],
.wpee-edit-profile input[type="tel"],
.wpee-edit-profile select {
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

/* Form inputs focus */
.wpee-edit-profile input:focus,
.wpee-edit-profile select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

/* Form groups spacing */
.wpee-edit-profile .form-group,
.edit-profile-form .form-group {
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .wpee-edit-profile .avatar-upload-section,
    .profile-avatar-container {
        padding: 20px;
    }

    .wpee-edit-profile .avatar-preview,
    .wpee-edit-profile img.avatar,
    .profile-avatar-container img {
        width: 120px !important;
        height: 120px !important;
    }

    .wpee-edit-profile .upload-avatar-btn,
    .profile-upload-button,
    .custom-file-upload {
        padding: 10px 25px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .wpee-edit-profile .avatar-preview,
    .wpee-edit-profile img.avatar,
    .profile-avatar-container img {
        width: 100px !important;
        height: 100px !important;
    }

    .prfc-custom-register .form-group label,
    .wpee-edit-profile label {
        font-size: 12px !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .wpee-edit-profile .upload-avatar-btn,
    .avatar-upload-controls {
        display: none !important;
    }
}

.form-group label[for="cmbCity"] {
    padding: 7px 0px 0px 0px !important;
}

.form-group textarea[name="my_interest"] {
    border: 1px solid #E5E7EB !important;
}

.form-group textarea[name="my_interest"]:focus {
    box-shadow: none !important;
}

.form-group input[name="submit1"] {
    width: fit-content !important;
    padding: 0px 40px !important;
}