/* Habit Building Challenges - Join Now Button */
.hbc-join-btn {
    background: linear-gradient(135deg, #00A9A4 0%, #008a85 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 169, 164, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    min-width: 140px;
    white-space: nowrap;
}

.hbc-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 169, 164, 0.5);
    background: linear-gradient(135deg, #008a85 0%, #00A9A4 100%);
}

.hbc-join-btn:active {
    transform: translateY(-1px);
}

/* HBC Popup Overlay */
.hbc-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.hbc-popup.active {
    display: flex;
}

/* HBC Popup Content */
.hbc-popup-content {
    position: relative;
    background: #ffffff;
    padding: 45px 40px 40px 40px;
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    margin: 20px;
    box-sizing: border-box;
    /* Hide scrollbar completely but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hbc-popup-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HBC Popup Title */
.hbc-popup-title {
    font-size: 26px;
    font-weight: 700;
    color: #00A9A4;
    margin: 0 0 28px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #00A9A4;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* HBC Close Button */
.hbc-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #999;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.hbc-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* HBC Form Styles */
.hbc-form-group {
    margin-bottom: 22px;
}

.hbc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

.hbc-form-group input,
.hbc-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.hbc-form-group input:focus,
.hbc-form-group textarea:focus {
    outline: none;
    border-color: #00A9A4;
    box-shadow: 0 0 0 3px rgba(0, 169, 164, 0.1);
}

.hbc-form-group input {
    height: 48px;
    line-height: 1.5;
}

.hbc-form-group textarea {
    resize: vertical;
    min-height: 85px;
    max-height: 120px;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

/* HBC Submit Button */
.hbc-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00A9A4 0%, #008a85 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(0, 169, 164, 0.3);
    height: 50px;
}

.hbc-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 164, 0.4);
    background: linear-gradient(135deg, #008a85 0%, #00A9A4 100%);
}

.hbc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* HBC Status Message */
.hbc-status {
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.hbc-status .hbc-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hbc-status .hbc-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hbc-popup-content {
        padding: 40px 25px 35px 25px;
        margin: 15px;
        max-width: 95%;
        max-height: 90vh;
    }
    
    .hbc-popup-title {
        font-size: 22px;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .hbc-join-btn {
        padding: 14px 32px;
        font-size: 15px;
        min-width: 120px;
    }
    
    .hbc-close {
        top: 12px;
        right: 18px;
        width: 32px;
        height: 32px;
        font-size: 26px;
    }
    
    .hbc-form-group {
        margin-bottom: 20px;
    }
    
    .hbc-form-group input {
        height: 46px;
        padding: 12px 15px;
    }
    
    .hbc-submit-btn {
        padding: 14px 25px;
        font-size: 15px;
        height: 48px;
    }
}
