/* Popup 18Digital Frontend Design */
.popup-18d-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.popup-18d-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-18d-container {
    position: relative;
    width: 90%;
    max-width: 750px;
    background-color: transparent;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border-radius: 20px; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    /* padding: 24px; */
    box-sizing: border-box;
    transform: scale(0.9);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 750px;
}

.popup-18d-overlay.active .popup-18d-container {
    transform: scale(1);
}

.popup-18d-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.popup-18d-close:hover {
    background: #e74c3c;
    color: #fff;
}

.popup-18d-glass {
    padding: 14px 10px;
    text-align: center;
    margin-bottom: 10%;
}

.popup-18d-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    width: 50%;
}

.popup-18d-input {
    width: 100%;
    padding: 8px 16px;
    border-radius: 30px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    background: #fff;
    color: #111;
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.popup-18d-input::placeholder {
    color: #2e5541;
}

.popup-18d-input:focus {
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(25, 113, 75, 0.5);
}

.popup-18d-input.error {
    border: 1px solid #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

.popup-18d-submit {

    background: linear-gradient(180deg, #1f7b53 0%, #0e4e34 100%);
    color: #ffd86b;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #135c3c;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-18d-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(18, 85, 56, 0.4);
    filter: brightness(1.1);
}

.popup-18d-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.popup-18d-message {
    margin-top: 15px;
    font-size: 15px;
    font-weight: bold;
    color: #0e4e34;
    display: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
}

.popup-18d-message.error {
    color: #e74c3c;
}

/* Countdown Timer */
.popup-18d-countdown {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0;
}

.popup-18d-cd-item {
    background: #135c3c;
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    min-width: 40px;
}

.popup-18d-cd-item span {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #ffd86b;
    line-height: 1;
    margin-bottom: 3px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.popup-18d-cd-item small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .popup-18d-container {
        background-image: var(--bg-mobile, var(--bg-desktop));
        max-width: 90vw;

        padding: 20px;
    }

    .popup-18d-form {
        width: 75%;
    }

    .popup-18d-glass {
        padding: 15px 10px;
        margin-bottom: 15%;
    }
}

@media (max-width: 480px) {
    .popup-18d-container {

        padding: 15px;
        width: 95vw;
        min-height: 650px;
    }

    .popup-18d-form {
        width: 90%;
        gap: 8px;
    }

    .popup-18d-input {
        padding: 8px 14px;
        font-size: 13px;
    }

    .popup-18d-submit {
        font-size: 14px;
        padding: 10px 20px;
        margin-top: -4px;
    }

    .popup-18d-countdown {
        gap: 4px;
        margin-bottom: 12px;
    }

    .popup-18d-cd-item {
        padding: 5px 10px;
        min-width: 35px;
    }

    .popup-18d-cd-item span {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .popup-18d-cd-item small {
        font-size: 8px;
    }

    .popup-18d-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}