/* Overlay */
.retehive-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.retehive-popup-overlay.retehive-show {
    opacity: 1;
}

/* Container */
.retehive-popup-container {
    background: #f9f9f9;
    width: 800px;
    max-width: 90%;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
    overflow: hidden; /* For border radius */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.retehive-popup-overlay.retehive-show .retehive-popup-container {
    transform: translateY(0);
}

/* Close Button */
.retehive-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Layout */
.retehive-popup-content {
    display: flex;
    flex-direction: row;
    min-height: 500px;
}
.retehive-popup-left {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.retehive-popup-right {
    width: 50%;
}
.retehive-popup-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Typography & Form Elements */
.retehive-popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #3b0f0b;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
}
.retehive-popup-desc {
    font-size: 13px;
    color: #555;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}
.retehive-popup-input-group {
    margin-bottom: 15px;
}
.retehive-popup-input-group input[type="text"],
.retehive-popup-input-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 25px;
    border: 1px solid #3b0f0b;
    background-color: #3b0f0b;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}
.retehive-popup-input-group input::placeholder {
    color: #dddddd;
}

/* Checkboxes */
.retehive-popup-interests p {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}
.retehive-popup-checkbox {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.retehive-popup-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.retehive-checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #3b0f0b;
    border-radius: 2px;
}
.retehive-popup-checkbox input:checked ~ .retehive-checkmark {
    /* Color handled via inline dynamic CSS */
}

/* Create the checkmark/indicator (hidden when not checked) */
.retehive-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.retehive-popup-checkbox input:checked ~ .retehive-checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.retehive-popup-checkbox .retehive-checkmark:after {
    left: 4px;
    top: 0px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit Button */
.retehive-popup-submit {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 25px;
    border: none;
    background-color: #3b0f0b;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.retehive-popup-submit:hover {
    background-color: #2a0b08;
}

/* Responsive */
@media (max-width: 768px) {
    .retehive-popup-content {
        flex-direction: column-reverse;
    }
    .retehive-popup-left {
        width: 100%;
        padding: 30px 20px;
    }
    .retehive-popup-right {
        width: 100%;
        height: 200px;
    }
}

/* Status Message */
.retehive-popup-message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}
