/**
 * User Profile Page Styles (Modern & Attractive)
 * Brand: medicalcounseling.in
 */

/* ===================================
   Profile Header Card
   =================================== */
.profile-header-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    position: relative;
}

.profile-header-bg {
    height: 150px;
    background: linear-gradient(135deg, #0F3D64 0%, #1a5280 50%, #2E8B57 100%);
    position: relative;
}

.profile-header-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.profile-header-content {
    padding: 0 40px 32px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.profile-avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    position: relative;
    cursor: pointer;
    border: 6px solid var(--pure-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar-wrapper:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-overlay i {
    font-size: 32px;
    color: var(--pure-white);
    margin-bottom: 8px;
}

.profile-avatar-overlay span {
    color: var(--pure-white);
    font-size: 14px;
    font-weight: 600;
}

.profile-header-info {
    flex: 1;
    padding-bottom: 8px;
}

.profile-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--medical-navy);
    margin-bottom: 8px;
}

.profile-email,
.profile-phone {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-email i,
.profile-phone i {
    color: var(--medical-green);
    font-size: 14px;
}

/* ===================================
   Profile Form Card
   =================================== */
.profile-form-card {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.profile-form-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(46, 139, 87, 0.1);
}

.profile-form-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--medical-navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-form-header h3 i {
    color: var(--medical-green);
}

.profile-form-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   Form Sections
   =================================== */
.form-section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(46, 139, 87, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--medical-green);
    font-size: 18px;
}

/* ===================================
   Modern Form Groups
   =================================== */
.form-group-modern {
    margin-bottom: 0;
}

.form-group-modern label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 10px;
}

.form-group-modern label i {
    color: var(--medical-green);
    font-size: 14px;
}

.form-group-modern input,
.form-group-modern select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 15px;
    color: var(--medical-navy);
    transition: all 0.3s ease;
    background: var(--pure-white);
}

.form-group-modern input:focus,
.form-group-modern select:focus {
    outline: none;
    border-color: var(--medical-green);
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1);
}

.form-group-modern input::placeholder {
    color: #9CA3AF;
}

.error-message {
    display: block;
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

/* ===================================
   Form Actions
   =================================== */
.form-actions {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid rgba(46, 139, 87, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-update-profile {
    padding: 16px 48px;
    background: linear-gradient(135deg, #2E8B57 0%, #1a7a4a 100%);
    color: var(--pure-white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-update-profile:hover {
    background: linear-gradient(135deg, #1a7a4a 0%, #2E8B57 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 139, 87, 0.4);
}

.btn-update-profile i {
    font-size: 18px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    .profile-header-content {
        padding: 0 28px 28px;
    }

    .profile-form-card {
        padding: 28px;
    }

    .profile-name {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 24px;
        margin-top: -70px;
    }

    .profile-avatar-wrapper {
        width: 120px;
        height: 120px;
    }

    .profile-header-info {
        padding-bottom: 0;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-email,
    .profile-phone {
        justify-content: center;
    }

    .profile-form-card {
        padding: 24px 20px;
    }

    .profile-form-header h3 {
        font-size: 24px;
    }

    .form-actions {
        justify-content: center;
    }

    .btn-update-profile {
        width: 100%;
        justify-content: center;
    }
}