:root {
    --primary-color: #020B24;
    --secondary-color: #9A9A9A;
    --white: #ffffff;
    --error: #e50606;
    --success: #28a745;
}

.lmdai-wrapper {
    width: 100%;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    background: transparent;
}

.lmdai-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    width: 100%;
}

.lmdai-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--secondary-color);
    z-index: -1;
    transform: translateY(-50%);
}

.lmdai-steps .step {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s ease;
    z-index: 2;
}

.lmdai-steps .line {
    flex-grow: 1;
    height: 2px;
    background: var(--secondary-color);
    margin: 0 10px;
    transition: background 0.3s ease;
}

.lmdai-steps .step.active {
    background: var(--primary-color);
}

.lmdai-steps .line.active {
    background: var(--primary-color);
}

.form-step { display: none; animation: fadeIn 0.5s; }
.form-step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s;
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--primary-color);
}

.input-with-icon {
    padding-left: 50px !important;
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 24px 24px;
}

.icon-user { background-image: url('/wp-content/uploads/2025/11/user.png'); }
.icon-date { background-image: url('http://localhost/admin/img/calendar.png'); }
.icon-phone { background-image: url('/wp-content/uploads/2025/11/call.png'); }
.icon-email { background-image: url('/wp-content/uploads/2025/11/sms.png'); }
.icon-job { background-image: url('/wp-content/uploads/2025/11/briefcase.png'); }

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
    z-index: 10;
}
.toggle-password:hover{
    background-color: var(--primary-color)!important;
}

.password-requirements {
    margin-bottom: 20px;
    font-size: 0.85em;
    color: #666;
}
.req-item { margin: 2px 0; display: block; }

.buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-direction: column-reverse;
}

button {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    padding: 10px!important;
    border-radius: 30px!important;
    border: none!important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
button:focus{
    background-color: var(--primary-color)!important;
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-next, .btn-submit, .btn-save {
    background: var(--primary-color)!important;
    color: var(--white)!important;
    border: 2px solid var(--primary-color)!important;
}

.btn-next:hover, .btn-submit:hover, .btn-save:hover {
    background: #0e1b3d;
}

.btn-prev, .btn-cancel {
    background: transparent;
    border: 2px solid var(--primary-color)!important;
    color: var(--primary-color);
}
.btn-prev:hover, .btn-cancel:hover{
    background: transparent!important;
    color: var(--primary-color)!important;
}

.btn-save, .btn-cancel{
    padding-left: 25px!important;
    padding-right: 25px!important;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.legal-group label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}
.legal-group input { margin-right: 10px; }

.lmdai-error-text {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    min-height: 20px;
    display: none;
}
.lmdai-block{
    display: block!important;
}

.input-error {
    border-color: #ff4d4d !important;
    background-color: #fff0f0 !important;
}

.lmdai-wrapper label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: color 0.3s ease;
}

.lmdai-wrapper label:hover {
    color: var(--primary-color);
}

.lmdai-wrapper input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #9A9A9A;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    outline: none;
}

.lmdai-wrapper input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.lmdai-wrapper input[type="radio"]:checked::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.password-requirements {
    margin-top: 15px;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.req-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 13px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.password-requirements li::before {
    content: '○'; 
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
}

.password-requirements li.valid {
    color: var(--primary-color);
    font-weight: 600;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #28a745;
}

.legal-group label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px!important;
    color: #555!important;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.legal-group label:hover {
    color: var(--primary-color);
}

.lmdai-wrapper input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #9A9A9A;
    border-radius: 4px;
    margin-right: 12px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s ease-in-out;
    margin-top: 1px;
}

.lmdai-wrapper input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.lmdai-wrapper input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.lmdai-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkAnim 0.2s ease-in-out forwards;
}

@keyframes checkAnim {
    from { opacity: 0; transform: rotate(45deg) scale(0.5); }
    to { opacity: 1; transform: rotate(45deg) scale(1); }
}

.lmdai-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lmdai-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.lmdai-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lmdai-modal-overlay.active .lmdai-modal-content {
    transform: scale(1);
}

.lmdai-success-icon {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lmdai-success-icon svg {
    width: 35px;
    height: 35px;
}

.lmdai-modal-content h3 {
    color: var(--primary-color);
    margin: 0 0 10px;
    font-size: 24px;
}

.lmdai-modal-content p {
    color: #666;
    margin-bottom: 25px;
}

.lmdai-redirect-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lmdai-profile-widget {
    position: relative;
    display: inline-block;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.lmdai-profile-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border-radius: 8px;
}

.lmdai-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lmdai-profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 16px;
}

.lmdai-welcome-label {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    font-weight: 300;
}

.lmdai-username {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.lmdai-profile-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.lmdai-profile-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    width: 200px;
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.2s ease;
    color:var(--primary-color);
}

.lmdai-profile-dropdown.show {
    display: block;
}

.lmdai-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--primary-color);
}

.lmdai-menu-item:last-child {
    border-bottom: none;
}

.lmdai-menu-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.lmdai-menu-item.logout:hover {
    background: var(--primary-color);
    color: #fff;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px 25px;
    box-sizing: border-box;
}

.header-content {
    color: white;
    margin-left: 240px; 
    margin-bottom: 10px;
    width: 70%;
}

.profile-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    opacity: 0.8;
}

.header-content h1 {
    font-size: 40px;
    margin: 0;
    font-weight: 400;
}

.edit-action-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    width: auto;
    transition: 0.3s;
}

.edit-action-btn:hover, .edit-action-btn.saving {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.edit-action-btn svg { width: 16px; height: 16px; }
.hidden { display: none; }

.profile-body {
    position: relative;
    padding: 20px 40px 40px 280px;
}

.profile-avatar-large {
    position: absolute;
    top: -100px; 
    left: 40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fields-grid {
    margin-top: 30px;
}

.field-block {
    margin-bottom: 25px;
}

.field-block label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 5px;
}

.editable-input {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    font-size: 16px;
    color: #555;
    padding: 5px 0;
    font-family: inherit;
    transition: 0.3s;
}

.editable-input.big-text {
    font-size: 22px;
    color: #222;
    border: none;
}

.editable-input:not([readonly]) {
    border-bottom: 1px solid var(--primary-color);
    background: #f9f9f9;
    padding-left: 5px;
    color: #000;
}

.editable-input:focus { outline: none; }

.editable-input.disabled { cursor: not-allowed; opacity: 0.7; border: none;}

@media (max-width: 768px) {
    .profile-header-bg { height: 200px; }
    .header-content { margin-left: 0; margin-top: 20px; text-align: center; width: 100%; }
    .header-overlay { flex-direction: column; align-items: center; justify-content: center; }
    .profile-avatar-large { position: relative; top: -50px; left: 0; margin: 0 auto; width: 150px; height: 150px; }
    .profile-body { padding: 0 20px 20px; text-align: center; }
    .edit-action-btn { position: absolute; top: 20px; right: 20px; }
}

.profile-avatar-large {
    cursor: default;
}

.avatar-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 11, 36, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.avatar-edit-overlay span {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
}

.profile-avatar-large.is-editing:hover .avatar-edit-overlay {
    opacity: 1;
}

.avatar-edit-overlay.hidden { display: none; }

select.editable-input:disabled {
    border: none;
    background: transparent;
    color: #555; 
    font-size: 16px;
    font-family: inherit;
    padding: 5px 0;
    width: 100%;
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    opacity: 1; 
    cursor: default;
}

select.editable-input:not(:disabled) {
    border: 1px solid #ccc; 
    border-radius: 4px;
    background: #fff;
    padding: 5px 10px;
    cursor: pointer;
    
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

select.editable-input.big-text {
    font-size: 16px;
    color: #222;
}

#lmdai-otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    width: 250px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.3s;
}

#lmdai-otp-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(2, 11, 36, 0.2);
}
#btn-send-code, #btn-verify-code {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: 1px solid var(--primary-color) !important;
}

.legal-group label a{
    font-size: 14px;
    color: #555;
    text-decoration: underline;
    margin-left: 5px;
}

/* Responsive behavior for Profile Widget */

.lmdai-mobile-user-info {
    display: none;
    padding: 15px 20px;
    border-bottom: 1px solid var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05); /* Optional: slight background distinction */
}

.lmdai-mobile-user-info .lmdai-welcome-label {
    color: var(--primary-color);
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.lmdai-mobile-user-info .lmdai-username {
    color: var(--primary-color);
    display: block;
    font-size: 16px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .lmdai-profile-text {
        display: none !important; /* Hide welcome/username next to avatar */
    }
    
    .lmdai-profile-dropdown {
        width: 200px; /* Keep same width or adjust to 100% if needed */
        right: -10px; /* Adjust if it goes off screen */
    }

    .lmdai-mobile-user-info {
        display: block; /* Show welcome/username in dropdown */
    }
}
