/* =========================================
   NKP POPUP STYLES - FINAL VERSION (FIXED)
   ========================================= */

/* 1. LOWER SIDEBAR Z-INDEX */
.nkp-floating-contact {
    z-index: 900 !important;
}

/* 2. POPUP CONTAINER */
#nkp-booking-popup {
    background: #fff;
    /* Responsive Width */
    width: 95vw !important;
    /* Slightly wider on mobile for safezone */
    max-width: 400px !important;
    /* Desktop Max Width */

    /* Centering Fix */
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    /* Let Magnific Popup handle vertical centering */
    position: relative !important;

    /* Design Specs */
    padding: 20px 20px 25px;
    /* Reduced bottom padding to fix whitespace */
    border-radius: 20px;
    border: 3px solid #fbb03b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    font-family: inherit;
    height: 570px;
}

/* Specific Mobile Centering Override */
@media (max-width: 600px) {
    #nkp-booking-popup {
        width: 90vw !important;
        /* Slightly smaller width */
        margin: 0 auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        /* Force center via transform */
        max-width: 380px !important;
    }
}

/* 3. LIGHTBOX WRAPPER */
.mfp-bg,
.mfp-wrap {
    z-index: 2000 !important;
}

/* Fix mobile vertical alignment if needed */
.mfp-container {
    padding: 10px !important;
    /* Reduce default padding */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mfp-content {
    vertical-align: middle !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* 4. SELECT2 Z-INDEX */
.select2-container,
.select2-container--open,
.select2-dropdown,
.select2-drop,
.select2-container--default .select2-dropdown {
    z-index: 2147483647 !important;
}

/* Close button */
#nkp-booking-popup .mfp-close {
    color: #333;
    right: 5px;
    top: 5px;
}

/* Header */
.nkp-popup-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 15px;
    /* Reduced margin */
    flex-wrap: nowrap !important;
    gap: 8px;
}

.nkp-popup-logo {
    max-height: 40px;
    width: auto !important;
    max-width: 140px;
    display: block;
    flex-shrink: 0;
    margin: 0;
}

.nkp-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 !important;
    flex-grow: 1;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
}

/* Form Layout */
.nkp-form-row {
    margin-bottom: 10px;
    /* Reduced gap */
}

.nkp-two-col {
    display: flex;
    gap: 10px;
}

.nkp-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

.nkp-form-group label {
    font-weight: 700;
    margin-bottom: 0;
    color: #333;
    font-size: 14px;
}

/* Inputs */
.nkp-form-group input[type="text"],
.nkp-form-group input[type="tel"],
.nkp-form-group input[type="email"],
.nkp-form-group input[type="date"],
.nkp-form-group select,
.nkp-form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    font-size: 13px;
    color: #555;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    height: 40px;
    line-height: normal;
}

/* Select Styling */
.nkp-form-group select {
    font-size: 12px;
    padding-right: 20px;
    text-overflow: ellipsis;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

/* Submit Button */
.nkp-form-submit {
    margin-top: 15px;
    /* Reduced top margin */
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.nkp-form-submit button.wpcf7-submit {
    background-color: #003399;
    color: #fff;
    font-weight: 700;
    padding: 0 25px;
    height: 45px;
    border-radius: 99px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    width: auto !important;
}

.nkp-form-submit button.wpcf7-submit i {
    font-size: 14px;
    color: #fbb03b;
}

.nkp-form-submit button.wpcf7-submit:hover {
    background-color: #002266;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 153, 0.2);
}

/* Validation Errors */
.wpcf7-not-valid-tip {
    font-size: 11px;
    margin-top: 2px;
    color: #dc3232;
    font-weight: normal;
}

.wpcf7-response-output {
    margin: 10px 0 0 !important;
    padding: 5px !important;
    font-size: 12px !important;
    border-radius: 5px;
    text-align: center;
}