/* Hide the first username and email fields (the ones outside the dv-flex-row) */
#registerform > p:first-of-type,
#registerform > p:nth-of-type(2) {
    display: none !important;
}

/* Hide the last register button (the one outside the dv-flex-row structure) */
#registerform > p.submit:last-of-type {
    display: none !important;
}

/* Alternative selectors for better specificity */
/* Modern browsers with :has() support */
#registerform > p:has(label[for="user_login"]):not(.custom-field-container),
#registerform > p:has(label[for="user_email"]):not(.custom-field-container) {
    display: none !important;
}

/* Fallback for browsers without :has() support */
#registerform > p:first-of-type:not(.custom-field-container),
#registerform > p:nth-of-type(2):not(.custom-field-container) {
    display: none !important;
}

/* Hide all p.submit elements that are NOT inside the form */
/* p.submit:not(#registerform p.submit) {
    display: none !important;
} */

/* Hide WordPress default submit buttons inside the form but outside our custom structure */
#registerform > p.submit {
    display: none !important;
}

/* Show only our custom submit button inside the flex structure */
#registerform .dv-flex-row .dv-flex-col p.submit {
    display: block !important;
}

#login {
    width: 90% !important;
    max-width: 650px !important;
}

/* User Type Selection Styles */
.user-type-selection {
    margin-bottom: 30px;
    text-align: center;
}

.user-type-selection h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.user-type-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-type-option {
    position: relative;
    flex: 1;
    min-width: 250px;
    /* max-width: 300px; */
}

.user-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.user-type-label {
    display: flex !important;
    align-items: center;
    padding: 25px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 120px;
}

.user-type-label:hover {
    border-color: #9a17ff;
    box-shadow: 0 4px 20px rgba(154, 23, 255, 0.2);
    transform: translateY(-2px);
}

.user-type-option input[type="radio"]:checked + .user-type-label {
    border-color: #9a17ff;
    background: linear-gradient(135deg, #9a17ff 0%, #b847ff 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(154, 23, 255, 0.3);
    padding: 0 10px !important;
}

.user-type-icon {
    margin-right: 15px;
    font-size: 40px;
    flex-shrink: 0;
}

.user-type-icon i {
    font-size: 40px;
    width: 40px;
    height: 40px;
}



.user-type-option input[type="radio"]:checked + .user-type-label .user-type-icon {
    color: white;
}

.user-type-option input[type="radio"] + label:before {
    display: none !important;
}


.user-type-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-type-text strong {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.user-type-text span {
    font-size: 14px;
    opacity: 0.8;
}

/* Employee Coming Soon Message */
.employee-coming-soon {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
}

.coming-soon-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 40px 30px;
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-message i {
    font-size: 60px;
    color: #6c757d;
    margin-bottom: 20px;
}

.coming-soon-message h4 {
    font-size: 24px;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.coming-soon-message p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Customer Registration Fields */
.customer-registration-fields {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.dv-button-primary {
    margin: 20px 10px;
    padding: 10px 24px;
    color: #fff;
    cursor: pointer;
    background-color: #9a17ff;
    font-family: "Manrope", Sans-serif;
    font-weight: bold;
    border-style: none;
    border-radius: 40px;
  }
  
div#login form label[for="user_login"]:before, 
div#login form label[for="user_pass"]:before, 
div#login form label[for="user_email"]:before,
div#login form label[for="first_name"]:before,
div#login form label[for="last_name"]:before,
div#login form label[for="customer_id_number"]:before,
div#login form label[for="existing_business_email"]:before,
div#login form label[for="company_name"]:before,
div#login form label[for="company_phone"]:before,
div#login form label[for="pass1"]:before,
div#login form label[for="pass2"]:before {
    font-family: "fontello";
    position: absolute;
    top: 100%;
    left: 1.21em;
    margin-top: 1.315em;
    font-size: 19px;
}

div#login form label[for="user_login"]:before {
    content: '\e80a'; /* login icon */
}
div#login form label[for="user_pass"]:before {
    content: '\e82b'; /* lock icon */
}
div#login form label[for="user_email"]:before {
    content: '\e819'; /* mail icon */
}
div#login form label[for="first_name"]:before {
    content: '\e8c3'; /* user icon */
}
div#login form label[for="last_name"]:before {
    content: '\e8c3'; /* user icon */
}
div#login form label[for="pass1"]:before {
    content: '\e84c'; /* key-light icon */
}
div#login form label[for="pass2"]:before {
    content: '\e84c'; /* key-light icon */
}
div#login form label[for="customer_id_number"]:before {
    content: '\e800'; /* vcard icon */
}
div#login form label[for="existing_business_email"]:before {
    content: '\e971'; /* building icon */
}
div#login form label[for="company_name"]:before {
    content: '\e971'; /* building icon */
}
div#login form label[for="company_phone"]:before {  
    content: '\e81a'; /* phone icon */
}

#wfls-prompt-overlay
{
    z-index: 5 !important;
}
div#login form .submit .button {
    box-shadow: none !important;
}

div#login form input[type="checkbox"] {
    /* clip: rect(1px, 1px, 1px, 1px); */
    position: relative !important;
}


.back-to-site {
    text-align: center;
    margin-top: 30px !important;
    padding-top: 30px;
}

.back-to-site a {
    color: #9a17ff;
    text-decoration: none;
    font-weight: 500;
}

.back-to-site a:hover {
    text-decoration: underline;
    color: #9a17ff;

}