/* Gadget enquiry modal — home page "Featured Gadgets" cards.
   Visually matches the pricing quick-quote modal; brand: #2745F2 / #040d43. */

body.gadget-enquiry-modal-open {
    overflow: hidden;
}

.gadget-enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gadget-enquiry-modal.is-open {
    display: flex;
}

.gadget-enquiry-modal [hidden] {
    display: none !important;
}

.gadget-enquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 13, 67, 0.62);
    backdrop-filter: blur(3px);
}

.gadget-enquiry-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 40px 90px rgba(4, 13, 67, 0.32);
}

.gadget-enquiry-modal__head {
    position: relative;
    padding: 28px 30px 22px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #2745f2 0%, #040d43 100%);
    color: #ffffff;
}

.gadget-enquiry-modal__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.78);
}

.gadget-enquiry-modal__head h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: 23px;
    font-weight: 600;
    color: #ffffff;
}

.gadget-enquiry-modal__head p {
    margin: 0;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.gadget-enquiry-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.gadget-enquiry-modal__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.gadget-enquiry-modal__body {
    padding: 26px 30px 30px;
}

.gadget-enquiry-modal__field {
    margin-bottom: 16px;
}

.gadget-enquiry-modal__label {
    display: block;
    margin-bottom: 7px;
    color: #46536b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gadget-enquiry-modal__label span {
    color: #2745f2;
}

.gadget-enquiry-modal__input,
.gadget-enquiry-modal__textarea,
.gadget-enquiry-modal__select {
    display: block;
    width: 100%;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    background: #ffffff;
    color: #040d43;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    padding: 11px 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gadget-enquiry-modal__input:focus,
.gadget-enquiry-modal__textarea:focus,
.gadget-enquiry-modal__select:focus {
    outline: none;
    border-color: #2745f2;
    box-shadow: 0 0 0 3px rgba(39, 69, 242, 0.12);
}

.gadget-enquiry-modal__textarea {
    min-height: 104px;
    resize: vertical;
}

.gadget-enquiry-modal__readonly {
    display: block;
    width: 100%;
    border: 1px dashed #cdd5ea;
    border-radius: 10px;
    background: #f6f8ff;
    color: #040d43;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 13px;
}

.gadget-enquiry-modal__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gadget-enquiry-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 8px;
}

.gadget-enquiry-modal__submit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    border: 1px solid #25d366;
    border-radius: 9px;
    background: #25d366;
    color: #040d43;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gadget-enquiry-modal__submit:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #ffffff;
}

.gadget-enquiry-modal__secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2745f2;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.gadget-enquiry-modal__secondary:hover {
    text-decoration: underline;
}

.gadget-enquiry-modal__status {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 10px;
    background: rgba(37, 211, 102, 0.08);
    color: #0d5a2a;
    font-size: 13px;
    line-height: 1.5;
}

.gadget-enquiry-modal__status a {
    color: #0d5a2a;
    font-weight: 700;
    text-decoration: underline;
}

.gadget-enquiry-modal :focus-visible {
    outline: 2px solid #8fb0ff;
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .gadget-enquiry-modal {
        padding: 12px;
    }

    .gadget-enquiry-modal__dialog {
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .gadget-enquiry-modal__head {
        padding: 24px 22px 20px;
        border-radius: 14px 14px 0 0;
    }

    .gadget-enquiry-modal__body {
        padding: 22px;
    }
}

/* Keep header copy legible against the dark gradient despite theme heading colors. */
body #gadgetEnquiryModal .gadget-enquiry-modal__head h2 {
    color: #ffffff !important;
}

body #gadgetEnquiryModal .gadget-enquiry-modal__head p,
body #gadgetEnquiryModal .gadget-enquiry-modal__eyebrow {
    color: rgba(255, 255, 255, 0.94) !important;
}
