/* ============================================================
   popup.css — Vankar Builders Forum registration popup
   Palette matches index.html: #E4E2CC (bg), #C5C08E (panel),
   #AA0000 / #FF0000 (accent text), Arial font family.
   ============================================================ */

#vbf-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    font-family: Arial, Helvetica, sans-serif;
}

#vbf-overlay.vbf-show {
    display: block;
}

/* ---------- Announcement popup ---------- */
#vbf-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    background: #E4E2CC;
    border: 3px solid #C5C08E;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    padding: 0;
    cursor: pointer;
}

#vbf-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    background: #AA0000;
    color: #FFFFFF;
    border: 2px solid #E4E2CC;
    border-radius: 50%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

#vbf-popup-close:hover {
    background: #FF0000;
}

#vbf-popup-inner {
    background: #C5C08E;
    border: 1px solid #C5C08E;
    border-radius: 4px;
    margin: 6px;
    padding: 22px 20px;
}

#vbf-popup-message {
    text-align: center;
    color: #000000;
    font-size: 18px;
    line-height: 1.7;
}

.vbf-highlight {
    background-color: #FFEB3B;
    color: #AA0000;
    font-weight: bold;
    padding: 4px 6px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 3px;
}

#vbf-popup-cta {
    display: block;
    text-align: center;
    margin: 18px auto 4px auto;
    max-width: 280px;
    background-color: #AA0000;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 20px;
    border: 2px solid #7a0000;
    border-radius: 5px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

#vbf-popup-inner:hover #vbf-popup-cta,
#vbf-popup-inner:active #vbf-popup-cta {
    background-color: #FF0000;
}

/* ---------- Registration form modal ---------- */
#vbf-form-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 520px;
    max-height: 88vh;
    max-height: 88dvh; /* accounts for mobile browser toolbars */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #E4E2CC;
    border: 3px solid #C5C08E;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    font-family: Arial, Helvetica, sans-serif;
}

#vbf-form-modal.vbf-show {
    display: block;
}

#vbf-form-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #AA0000;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
}

#vbf-form-close:hover {
    background: #FF0000;
}

.vbf-form-header {
    background: #C5C08E;
    color: #AA0000;
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    padding: 16px 44px;
    border-bottom: 1px solid #AA0000;
}

.vbf-form-body {
    padding: 18px 22px 22px 22px;
}

.vbf-field {
    margin-bottom: 14px;
}

.vbf-field label {
    display: block;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.vbf-field input[type="text"],
.vbf-field input[type="tel"],
.vbf-field input[type="number"],
.vbf-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 12px;
    border: 1px solid #C5C08E;
    border-radius: 5px;
    background: #FFFFFF;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    min-height: 52px; /* comfortable touch target */
}

.vbf-field select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><polygon points='0,0 14,0 7,9' fill='%23AA0000'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

.vbf-field input:focus,
.vbf-field select:focus {
    outline: none;
    border-color: #AA0000;
}

.vbf-hint {
    font-size: 13px;
    color: #666666;
    margin-top: 4px;
}

.vbf-error {
    font-size: 13px;
    color: #FF0000;
    margin-top: 4px;
    display: none;
}

.vbf-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#vbf-captcha-code {
    background: #C5C08E;
    color: #AA0000;
    font-weight: bold;
    letter-spacing: 4px;
    font-size: 20px;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid #AA0000;
    user-select: none;
    text-decoration: line-through;
}

#vbf-captcha-refresh {
    background: none;
    border: 1px solid #C5C08E;
    border-radius: 5px;
    color: #AA0000;
    cursor: pointer;
    padding: 10px 16px;
    font-size: 18px;
    min-height: 52px;
    min-width: 52px;
}

.vbf-submit-btn {
    display: block;
    width: 100%;
    background-color: #AA0000;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 18px 0;
    border: 2px solid #7a0000;
    border-radius: 6px;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 10px;
    min-height: 58px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.vbf-submit-btn:hover {
    background-color: #FF0000;
}

.vbf-submit-btn:disabled {
    background-color: #999999;
    border-color: #777777;
    cursor: not-allowed;
}

#vbf-form-status {
    margin-top: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    display: none;
}

#vbf-form-status.vbf-success {
    color: #006400;
    display: block;
}

#vbf-form-status.vbf-fail {
    color: #FF0000;
    display: block;
}

@media (max-width: 480px) {
    #vbf-popup {
        width: 94%;
    }
    #vbf-popup-inner {
        padding: 20px 16px;
    }
    #vbf-popup-message {
        font-size: 16px;
    }
    #vbf-popup-cta {
        max-width: 100%;
        font-size: 19px;
        padding: 18px 16px;
    }
    #vbf-form-modal {
        width: 96%;
        max-height: 92vh;
        max-height: 92dvh;
    }
    .vbf-form-header {
        font-size: 18px;
        padding: 16px 40px;
    }
    .vbf-form-body {
        padding: 16px 16px 20px 16px;
    }
    .vbf-field label {
        font-size: 15px;
    }
    .vbf-field input[type="text"],
    .vbf-field input[type="tel"],
    .vbf-field input[type="number"],
    .vbf-field select {
        font-size: 17px;
    }
    .vbf-submit-btn {
        font-size: 21px;
        padding: 20px 0;
        min-height: 62px;
    }
    .vbf-captcha-row {
        flex-wrap: wrap;
    }
}

