:root {
    --overlay-bg: rgba(0,0,0,0.6);
    --radius: 14px;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity .28s ease, visibility .28s;
    z-index: 999999;
}

.welcome-overlay.active {
    visibility: visible;
    opacity: 1;
}

.welcome-box {
    width: 92%;
    max-width: 900px;
    height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    background: #fff;
    position: relative;
    transform: scale(.8);
    opacity: 0;
    transition: transform .42s cubic-bezier(.2,.9,.3,1), opacity .35s ease;
    box-shadow: 0 18px 50px rgba(2,6,23,.35);
}

.welcome-overlay.active .welcome-box {
     opacity: 1;
}

.welcome-image {
    flex: 1;
    background: url('https://humancarei.com/wp-content/uploads/2025/04/our-story.webp') no-repeat center;
    background-size: cover;
}

.welcome-form {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-form h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #111827;
    font-weight: 600;
}

.welcome-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.welcome-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.welcome-form input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.welcome-form input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
}

.welcome-form button {
    background: #111827;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease;
}

.welcome-form button:hover {
    background: #000;
    color: #fff;
}

.welcome-form button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.welcome-close {
    position: absolute !important;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    display: inline-grid !important
;
    place-items: center;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s 
ease;
}

.welcome-close:hover {
    background: rgba(255,255,255,1);
}

#popupMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

#popupMessage p {
    margin: 0;
}

@media(max-width: 767px){
    .welcome-box {
        flex-direction: column;
        height: auto;
        max-height: max-content;
        overflow-y: auto;
        width: 100%;

    }
    
   
    
    .welcome-form {
        padding: 20px 20px 10px 20px;
    }
}

