/* ==========================================================================
   SCHEDULE A CALL FORM — styled dropdowns (Oct 29 2026)
   The three dropdowns (Investor Category, Ticket Size, Contact Slot) are drawn
   by the site (jQuery Nice Select, set up in component/contact-form.php)
   instead of the browser, so the open list is left-aligned, padded and exactly
   the width of the field in every browser.
   The real <select> stays underneath (invisible) so the form still submits the
   same values and the browser's "please select an item" check still works.
   ========================================================================== */

/* Real select: invisible, covers the field so the required-field message points at it */
html body .nx-input-wrapper > select.nx-form-control.nx-select-native {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    display: block !important;
}

/* Drawn field (inherits size, padding, border and background from .nx-form-control) */
html body .nx-input-wrapper > .nice-select.nx-form-control.nx-select {
    display: flex !important;
    align-items: center;
    float: none;
    clear: none;
    position: relative;
    z-index: 2;
    padding-right: 42px !important;
    cursor: pointer;
    text-align: left !important;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
html body .nx-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    color: #0f172a;
}
html body .nx-select.is-placeholder .current { color: #94a3b8; font-weight: 400; }

/* Chevron */
html body .nx-select::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform .25s ease, margin-top .25s ease, border-color .25s ease;
    pointer-events: none;
}
html body .nx-select.open::after { transform: rotate(-135deg); margin-top: -2px; border-color: #3682ae; }

/* Focus / open */
html body .nx-input-wrapper > .nice-select.nx-select:focus,
html body .nx-input-wrapper > .nice-select.nx-select.open {
    border-color: #3682ae !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(54, 130, 174, 0.15);
    outline: none;
}
/* lift the whole field (icon included) above the fields below while the list is open */
html body .nx-input-wrapper:has(> .nice-select.nx-select.open),
html body .nx-input-wrapper.nx-select-open { z-index: 30; }
html body .nx-input-wrapper:has(.nx-select.open) .nx-input-icon,
html body .nx-input-wrapper:has(.nx-select:focus) .nx-input-icon { color: #3682ae !important; }

/* Not filled in when the form was sent */
html body .nx-input-wrapper > .nice-select.nx-select.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Open list: same width as the field, left-aligned options */
html body .nx-select .list {
    left: 0 !important;
    right: 0 !important;
    width: auto;
    margin-top: 6px;
    padding: 6px;
    max-height: 264px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dfe8ef;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(10, 19, 34, 0.14);
    transform-origin: 50% 0;
    transform: translateY(-6px);
    z-index: 40;
    line-height: 1.4;
    white-space: normal;
}
html body .nx-select.open .list { transform: translateY(0); }
html body .nx-select .option {
    display: block;
    min-height: 0;
    line-height: 1.4;
    padding: 10px 14px;
    margin: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-align: left;
    white-space: normal;
}
html body .nx-select .option:hover,
html body .nx-select .option.focus { background-color: #f0f7fb !important; color: #205373; }
html body .nx-select .option.selected { font-weight: 700; color: #2b6c93; }
html body .nx-select .option.selected::after {
    content: "\2713";
    float: right;
    margin-left: 10px;
    font-weight: 700;
    color: #3682ae;
}
/* the greyed "Select ..." prompt is not a real choice, so it is not listed */
html body .nx-select .option.disabled { display: none; }

@media (max-width: 767px) {
    html body .nx-input-wrapper > .nice-select.nx-form-control.nx-select { padding-right: 36px !important; }
    html body .nx-select::after { right: 15px; }
    html body .nx-select .option { font-size: 13.5px; padding: 9px 12px; }
}
