/* Premium Enquiry Pop-up Styles for The Marq */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --marq-navy-blue: #0A192F;
    --marq-navy-blue-hover: #112B52;
    --marq-light-grey: #E2E8F0;
    --marq-text-dark: #1E293B;
    --marq-white: #FFFFFF;
    --marq-error: #EF4444;
}

/* Scroll Lock */
body.marq-premium-locked {
    overflow: hidden !important;
}

/* Overlay */
.marq-premium-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(10, 25, 47, 0.8) !important;
    backdrop-filter: blur(4px);
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.marq-premium-overlay.marq-show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container (Desktop defaults) */
.marq-premium-modal {
    background-color: var(--marq-white);
    width: 500px;
    max-width: calc(100vw - 32px);
    max-height: 94vh;
    padding: 18px 24px 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* No internal scrollbars per instruction */
}

/* Close Icon */
.marq-premium-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 2;
    padding: 0;
}

.marq-premium-close:hover {
    color: var(--marq-navy-blue);
    background-color: var(--marq-light-grey);
}

/* Header Section */
.marq-premium-header {
    text-align: center;
    width: 100%;
}

.marq-premium-logo {
    width: 220px;
    max-width: 100%;
    max-height: 70px;
    margin: 0 auto 10px auto;
    display: block;
    object-fit: contain;
}

.marq-premium-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--marq-navy-blue);
    margin: 6px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.marq-premium-subtitle {
    font-size: 14.5px;
    color: var(--marq-text-dark);
    margin: 0 0 14px 0;
    line-height: 1.35;
    text-align: center;
}

/* Form Section */
.marq-premium-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 100%;
}

.marq-form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.marq-form-group label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--marq-navy-blue);
    margin: 0 0 4px 0;
    display: block;
}

.marq-form-group label .required {
    color: var(--marq-error);
}

.marq-form-group input,
.marq-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--marq-light-grey);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--marq-text-dark);
    background-color: var(--marq-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.marq-form-group input {
    height: 43px;
}

.marq-form-group textarea {
    height: 60px;
    min-height: 56px;
    max-height: 64px;
    padding: 10px 12px;
    resize: none;
}

.marq-form-group input:focus,
.marq-form-group textarea:focus {
    outline: none;
    border-color: var(--marq-navy-blue);
    box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.1);
}

.marq-form-group.has-error input {
    border-color: var(--marq-error);
}

.marq-error-msg {
    color: var(--marq-error);
    font-size: 11px;
    margin-top: 2px;
    display: none;
    line-height: 1;
}

.marq-form-group.has-error .marq-error-msg {
    display: block;
}

/* Submit Button */
.marq-premium-submit {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    background-color: var(--marq-navy-blue);
    color: var(--marq-white);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.marq-premium-submit:hover {
    background-color: var(--marq-navy-blue-hover);
}

.marq-premium-submit:active {
    transform: scale(0.98);
}

/* Mobile Responsiveness (< 576px wide) */
@media (max-width: 575px) {
    .marq-premium-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 14px 16px 16px;
        border-radius: 10px;
    }
    
    .marq-premium-logo {
        width: 180px;
        max-height: 52px;
        margin-bottom: 8px;
    }

    .marq-premium-title {
        font-size: 19px;
        white-space: normal;
    }

    .marq-premium-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .marq-premium-form {
        gap: 8px;
    }

    .marq-form-group input {
        height: 40px;
    }

    .marq-form-group textarea {
        height: 52px;
        min-height: 52px;
    }
    
    .marq-premium-submit {
        height: 42px;
        margin-top: 8px;
    }
}

/* Short Laptops (< 750px tall) */
@media (max-height: 749px) and (min-width: 576px) {
    .marq-premium-modal {
        padding: 14px 22px;
    }

    .marq-premium-logo {
        max-height: 54px;
    }

    .marq-premium-title {
        font-size: 19px;
    }

    .marq-premium-subtitle {
        margin-bottom: 10px;
    }

    .marq-premium-form {
        gap: 7px;
    }

    .marq-form-group input {
        height: 39px;
    }

    .marq-form-group textarea {
        height: 48px;
        min-height: 48px;
    }

    .marq-premium-submit {
        height: 40px;
        margin-top: 8px;
    }
}

/* Very Short Screens (< 650px tall) */
@media (max-height: 649px) and (min-width: 576px) {
    .marq-premium-modal {
        padding: 10px 18px;
    }

    .marq-premium-logo {
        max-height: 44px;
        margin-bottom: 6px;
    }

    .marq-premium-title {
        margin: 4px 0;
    }

    .marq-premium-subtitle {
        margin-bottom: 8px;
    }

    .marq-form-group input {
        height: 37px;
    }

    .marq-form-group textarea {
        height: 44px;
        min-height: 44px;
    }

    .marq-premium-submit {
        height: 39px;
        margin-top: 6px;
    }
}
