/* ==========================================================================
   PREMIUM ENQUIRY FORM - STANDALONE STYLES (v4 - Luxury Polish)
   Prefix: .pe- (Premium Enquiry)
   ========================================================================== */

/* --- FORCE PARENT OVERRIDES --- */
.main-register-holder {
    width: 100% !important;
    max-width: 1050px !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 50 !important;
    /* Ensure holder is above overlay */
    pointer-events: none;
    /* Let clicks pass through holder if needed, but wrapper will catch them */
}

/* Fix Overlay Position */
/* Fix Overlay Position - REMOVED */
/* .main-register-container .body-overlay,
.main-register-container .reg-overlay {
    display: none !important;
} */

/* Ensure Form Wrapper catches events */
.pe-popup-wrapper {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
}

/* --- ANIMATIONS (Premium Feel) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 176, 58, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(252, 176, 58, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(252, 176, 58, 0);
    }
}

.main-register_box {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 20 !important;
}

/* --- Container & Reset --- */
.pe-popup-wrapper {
    width: 100%;
    max-width: 1024px;
    background: #fff;
    border-radius: 16px;
    /* Smooth rounded corners */
    overflow: hidden;
    display: flex;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    /* Deeper luxurious shadow */
    font-family: 'Poppins', sans-serif !important;
    position: relative;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    /* Premium Entrance */
}

/* --- Sidebar (Rich & Dark) --- */
.pe-sidebar {
    width: 50%;
    position: relative;
    background: url('../images/bg/10.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-height: 550px;
}

/* Light transparent black overlay as per user request */
.pe-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Light black transparent overlay */
    z-index: 1;
}

.pe-sidebar-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px;
}

.pe-sidebar h4 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #e0cda8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pe-sidebar h5 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    /* White as per user request */
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.pe-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(252, 176, 58, 0.1);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.pe-dec-1 {
    top: -80px;
    left: -80px;
}

.pe-dec-2 {
    bottom: -80px;
    right: -80px;
}

/* --- Main Form Area --- */
.pe-form-area {
    width: 50%;
    padding: 40px 50px;
    /* More breathing room */
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #fcfcfc);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 75vh;
    /* Responsive fixed height */
    /* Fixed height as per user request */
    overflow-y: auto;
    /* Enable scroll if content overflows */
    scrollbar-width: thin;
    /* Firefox */
}

/* Custom Scrollbar for Webkit */
.pe-form-area::-webkit-scrollbar {
    width: 6px;
}

.pe-form-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pe-form-area::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.pe-form-area::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.pe-header {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    /* Stick to top */
    top: 0;
    background: #fff;
    /* Ensure generic background covers scrolled content */
    background: linear-gradient(to bottom right, #ffffff, #fcfcfc);
    /* Match parent */
    z-index: 20;
    /* Above form fields */
    padding-top: 10px;
    /* Space for aesthetic */
    padding-right: 40px;
    /* Space for close button */
}

.pe-header h3 {
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.pe-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001 !important;
    /* Force on top of everything */
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pe-header p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* --- Segmented Toggle (Gold Pill) --- */
.pe-field-group {
    margin-bottom: 20px;
}

.pe-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.pe-segment-control {
    background: #f7f7f7;
    border-radius: 50px;
    /* Full rounded pill */
    padding: 5px;
    display: flex;
    gap: 5px;
    border: 1px solid #eee;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.pe-segment-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pe-segment-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.pe-segment-btn.active {
    background: #fcb03a;
    /* YellowNest Theme */
    color: #fff;
    box-shadow: 0 4px 15px rgba(252, 176, 58, 0.3);
    transform: scale(1.05);
}

/* --- Grid Buttons (Elegant Outline) --- */
.pe-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pe-grid-btn {
    flex: 1 1 calc(33% - 8px);
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 10px 5px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pe-grid-btn:hover {
    border-color: #fcb03a;
    color: #fcb03a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pe-grid-btn.active {
    background: #fcb03a;
    color: #fff;
    border-color: #fcb03a;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(252, 176, 58, 0.3);
}

/* --- Modern Inputs (Underline with Animation) --- */
.pe-input-wrapper {
    position: relative;
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
    transition: all 0.3s;
    margin-top: 5px;
}

.pe-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fcb03a;
    transition: width 0.4s ease-out;
}

.pe-input-wrapper:focus-within::after {
    width: 100%;
}

.pe-input-wrapper:focus-within {
    transform: translateX(5px);
}

.pe-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    padding: 10px 0;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
}

.pe-input:focus {
    padding-left: 5px;
}

.pe-input::placeholder {
    color: #ccc;
    font-weight: 400;
}

/* --- Row Layout --- */
.pe-row {
    display: flex;
    gap: 20px;
    flex-direction: column;
    /* Force full width stacking */
}

.pe-col {
    flex: 1;
}

/* --- Premium Submit Button --- */
.pe-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    /* Slightly refined radius */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 2px;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pe-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s;
    pointer-events: none;
}

.pe-submit-btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

.pe-submit-btn:hover {
    background: #fcb03a;
    box-shadow: 0 15px 30px rgba(252, 176, 58, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.pe-disclaimer {
    font-size: 10px;
    color: #bbb;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pe-popup-wrapper {
        flex-direction: column;
        max-width: 95%;
        max-height: 85vh;
        overflow-y: auto;
    }

    .pe-sidebar {
        width: 100%;
        padding: 30px 20px;
        min-height: 140px;
    }

    .pe-sidebar h4 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .pe-sidebar h5 {
        font-size: 11px;
        padding-top: 10px;
    }

    .pe-form-area {
        width: 100%;
        padding: 25px;
    }

    .pe-row {
        flex-direction: column;
        gap: 0;
    }
}