/* =====================================================================
   Shree Umiya Structure — homepage inquiry popup   v1.0.0
   Markup: inquiry-popup.php (homepage only) · Script: js/suspl-inquiry.js
   Scoped to .sip — no clamp / calc / var.
   Stacking: above the header (10001), brochure (10045) and video modal (10050);
   below the DWSS plugin's email-OTP modal (99999) so the code box always shows on top.
   ===================================================================== */

html.sip-lock {
    overflow: hidden;
}

.sip {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: "Inter", "Poppins", Arial, sans-serif;
    color: #0d1f3c;
    -webkit-font-smoothing: antialiased;
}

.sip[hidden] {
    display: none;
}

.sip *,
.sip *::before,
.sip *::after {
    box-sizing: border-box;
}

.sip__overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 16, 38, 0.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sip__dialog {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1000px;
    max-height: 92vh;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 40px 90px rgba(4, 16, 38, 0.38), 0 0 0 1px rgba(13, 31, 60, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(32px) scale(0.985);
    transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.sip.is-open .sip__overlay {
    opacity: 1;
}

.sip.is-open .sip__dialog {
    opacity: 1;
    transform: none;
}

.sip__scroll {
    display: flex;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ---------------------------------------------------------------- close */
.sip .sip__x {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4f8;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.25s ease;
}

.sip__x svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #0d1f3c;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.sip .sip__x:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.sip .sip__x:focus-visible {
    outline: 3px solid #f4b400;
    outline-offset: 3px;
}

.sip .sip__x.is-nudge {
    animation: sip-nudge 0.5s ease;
}

@keyframes sip-nudge {

    0%,
    100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.18);
    }

    70% {
        transform: scale(0.94);
    }
}

/* ---------------------------------------------------------------- left brand panel */
.sip__brand {
    position: relative;
    display: flex;
    flex: 0 0 42%;
    flex-direction: column;
    min-width: 0;
    padding: 42px 38px 0;
    overflow: hidden;
    color: #ffffff;
    background: #0b2550;
    background: linear-gradient(160deg, #0d2c5c 0%, #0a2147 48%, #061733 100%);
}

.sip__brand::before {
    /* yellow accent */
    content: "";
    position: absolute;
    left: 38px;
    top: 0;
    width: 64px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: #f4b400;
}

.sip__grid {
    /* faint blueprint grid */
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.sip__brand>* {
    position: relative;
}

.sip .sip__logo {
    display: block;
    width: 232px;
    max-width: none;
    height: 110px;
    margin: 0 0 24px;
    object-fit: contain;
    position: relative;
    top: -43px;
}

.sip p.sip__eyebrow {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 0px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f4b400;
    text-align: left;
}

.sip h2.sip__title {
    margin: 0;
    font-family: "Inter", "Poppins", Arial, sans-serif;
    font-size: 30px;
    line-height: 37px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #ffffff;
    text-align: left;
}

.sip h2.sip__title em {
    display: block;
    font-style: normal;
    color: #f4b400;
}

.sip p.sip__lead {
    margin: 0px 0 0;
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
}

.sip ul.sip__points {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.sip ul.sip__points li {
    position: relative;
    margin: 0 0 11px;
    padding: 0 0 0 30px;
    font-size: 14.5px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.92);
}

.sip ul.sip__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(244, 180, 0, 0.16);
    box-shadow: inset 0 0 0 1.5px rgba(244, 180, 0, 0.7);
}

.sip ul.sip__points li::after {
    /* check mark */
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    width: 6px;
    height: 10px;
    border: solid #f4b400;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sip a.sip__call {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 8px 0 0;
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sip a.sip__call b {
    font-weight: 700;
    color: #ffffff;
}

.sip a.sip__call svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-right: 9px;
    fill: none;
    stroke: #f4b400;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.sip a.sip__call:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(244, 180, 0, 0.6);
    color: #ffffff;
}

.sip a.sip__call:focus-visible {
    outline: 3px solid #f4b400;
    outline-offset: 3px;
}

/* email pill — sits directly below the phone pill */
.sip a.sip__call--mail {
    margin-top: 8px;
    max-width: 100%;
}

.sip a.sip__call--mail span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sip__render {
    display: block;
    width: 116%;
    max-width: none;
    height: auto;
    margin: auto 0 -6px -8%;
    padding-top: 18px;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

/* tiger mascot standing in front of the structure (smaller than the building) — v1.1.0 */
.sip .sip__mascot {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 12px;
    display: block;
    width: auto;
    max-width: none;
    height: 168px;
    pointer-events: none;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.45));
}

/* ---------------------------------------------------------------- right form */
.sip__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 44px 44px 32px;
}

.sip p.sip__formtitle {
    margin: 0;
    padding-right: 50px;
    font-size: 22px;
    line-height: 28px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #0d1f3c;
    text-align: left;
}

.sip p.sip__hint {
    margin: 6px 0 22px;
    font-size: 13px;
    line-height: 18px;
    color: #6a7587;
    text-align: left;
}

.sip p.sip__hint span[aria-hidden],
.sip label span[aria-hidden] {
    color: #c58a00;
}

.sip__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sip__form {
    position: relative;
    margin: 0;
}

.sip__row {
    display: flex;
}

.sip__row>.sip__field {
    flex: 1 1 0;
    min-width: 0;
}

.sip__row>.sip__field+.sip__field {
    margin-left: 16px;
}

.sip__field {
    margin: 0 0 16px;
}

.sip .sip__field label {
    display: block;
    margin: 0 0 7px;
    font-size: 13.5px;
    line-height: 18px;
    font-weight: 600;
    color: #1f2d4b;
    text-align: left;
}

.sip .sip__opt {
    font-weight: 400;
    color: #7d889b;
}

.sip__control {
    position: relative;
    display: block;
}

.sip__control>svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    fill: none;
    stroke: #8a96a8;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s ease;
}

.sip__control--area>svg {
    top: 15px;
    margin-top: 0;
}

.sip .sip__control input,
.sip .sip__control select,
.sip .sip__control textarea {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px 0 42px;
    border: 1.5px solid #dbe2ec;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 15px;
    line-height: 20px;
    color: #0d1f3c;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.sip .sip__control textarea {
    height: auto;
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.sip .sip__control select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1f3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    cursor: pointer;
}

.sip .sip__control select:invalid {
    color: #8a96a8;
}

.sip .sip__control select option {
    color: #0d1f3c;
}

.sip .sip__control input::placeholder,
.sip .sip__control textarea::placeholder {
    color: #9aa5b5;
    opacity: 1;
}

.sip .sip__control input:hover,
.sip .sip__control select:hover,
.sip .sip__control textarea:hover {
    border-color: #c3cddb;
}

.sip .sip__control input:focus,
.sip .sip__control select:focus,
.sip .sip__control textarea:focus {
    border-color: #0d2c5c;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.24);
    outline: none;
}

.sip .sip__control:focus-within>svg {
    stroke: #0d2c5c;
}

/* validation (same classes the DWSS plugin uses for server-side errors) */
.sip .sip__control .dwss-error,
.sip .sip__control .dwss-error:focus {
    border-color: #d93025 !important;
    background-color: #fff7f6 !important;
    box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.12) !important;
}

.sip .dwss-field-error {
    display: flex;
    align-items: flex-start;
    margin: 7px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 12.5px;
    line-height: 17px;
    font-weight: 500;
    color: #c5221f;
    animation: none;
}

.sip .dwss-field-error::before {
    content: "!";
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin: 1px 7px 0 0;
    border-radius: 50%;
    background: #d93025;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
}

.sip .dwss-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
}

.sip .dwss-message:empty {
    display: none;
}

/* submit */
.sip__actions {
    margin-top: 6px;
}

.sip .sip__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: #f4b400;
    background: linear-gradient(135deg, #f4b400 0%, #ffc62e 100%);
    box-shadow: 0 12px 24px rgba(244, 180, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #0d1f3c;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sip .sip__submit svg {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.sip .sip__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(244, 180, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    filter: saturate(1.08);
}

.sip .sip__submit:hover svg {
    transform: translateX(3px);
}

.sip .sip__submit:focus-visible {
    outline: 3px solid #0d2c5c;
    outline-offset: 3px;
}

.sip .sip__submit[disabled] {
    cursor: progress;
    opacity: 0.8;
    transform: none;
}

.sip p.sip__privacy {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 17px;
    color: #7d889b;
    text-align: center;
}

/* ---------------------------------------------------------------- short laptop screens */
@media (min-width: 768px) and (max-height: 760px) {
    .sip__brand {
        padding-top: 32px;
    }

    .sip .sip__logo {
        width: 132px;
        height: 81px;
        margin-bottom: 0px;
        position: relative;
        top: -29px;
    }

    .sip ul.sip__points {
        display: none;
    }

    .sip .sip__mascot {
        height: 150px;
    }

    .sip__body {
        padding-top: 34px;
        padding-bottom: 24px;
    }

    .sip p.sip__hint {
        margin-bottom: 16px;
    }

    .sip__field {
        margin-bottom: 12px;
    }

    .sip .sip__control textarea {
        min-height: 76px;
    }
}

/* ---------------------------------------------------------------- tablets 768–1024 */
@media (max-width: 1024px) {
    .sip {
        padding: 20px;
    }

    .sip__dialog {
        max-width: 880px;
    }

    .sip__brand {
        flex-basis: 40%;
        padding: 36px 30px 0;
    }

    .sip__brand::before {
        left: 30px;
    }

    .sip .sip__mascot {
        right: 14px;
        height: 140px;
    }

    .sip h2.sip__title {
        font-size: 26px;
        line-height: 32px;
    }

    .sip__body {
        padding: 38px 32px 28px;
    }
}

@media (max-width: 991px) {
    .sip__row {
        display: block;
    }

    .sip__row>.sip__field+.sip__field {
        margin-left: 0;
    }
}

/* ---------------------------------------------------------------- mobile ≤767: single column, form first */
@media (max-width: 767px) {
    .sip {
        align-items: center;
        padding: 12px;
    }

    .sip__dialog {
        max-height: 94vh;
        border-radius: 22px;
    }

    .sip__scroll {
        display: block;
        max-height: 94vh;
    }

    .sip__brand {
        display: block;
        padding: 26px 66px 22px 22px;
    }

    .sip__brand::before {
        left: 22px;
    }

    .sip__grid {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .sip .sip__logo,
    .sip ul.sip__points,
    .sip a.sip__call,
    .sip__render,
    .sip .sip__mascot {
        display: none;
    }

    .sip p.sip__eyebrow {
        margin-bottom: 6px;
        font-size: 11.5px;
    }

    .sip h2.sip__title {
        font-size: 22px;
        line-height: 28px;
        letter-spacing: -0.3px;
    }

    .sip h2.sip__title em {
        display: inline;
    }

    .sip p.sip__lead {
        margin-top: 8px;
        font-size: 14px;
        line-height: 21px;
    }

    .sip .sip__x {
        right: 12px;
        top: 12px;
        background: rgba(255, 255, 255, 0.14);
    }

    .sip__x svg {
        stroke: #ffffff;
    }

    .sip .sip__x:hover {
        background: rgba(255, 255, 255, 0.24);
    }

    .sip__body {
        padding: 20px 20px 0;
    }

    .sip p.sip__formtitle {
        padding-right: 0;
        font-size: 18px;
        line-height: 24px;
    }

    .sip p.sip__hint {
        margin-bottom: 16px;
    }

    .sip__field {
        margin-bottom: 14px;
    }

    /* 16px stops iOS from zooming into the field */
    .sip .sip__control input,
    .sip .sip__control select,
    .sip .sip__control textarea {
        height: 50px;
        font-size: 16px;
    }

    .sip .sip__control textarea {
        height: auto;
        min-height: 88px;
    }

    /* keep the submit button in reach while scrolling the form */
    .sip__actions {
        position: -webkit-sticky;
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 4px -20px 0;
        padding: 12px 20px 12px;
        background: #ffffff;
        box-shadow: 0 -10px 18px -12px rgba(13, 31, 60, 0.25);
    }

    .sip .sip__submit {
        height: 52px;
    }

    .sip p.sip__privacy {
        margin: 2px 0 0;
        padding-bottom: 16px;
        font-size: 11.5px;
        line-height: 16px;
    }
}

@media (max-width: 380px) {
    .sip {
        padding: 8px;
    }

    .sip__brand {
        padding: 22px 60px 18px 18px;
    }

    .sip__brand::before {
        left: 18px;
    }

    .sip h2.sip__title {
        font-size: 20px;
        line-height: 26px;
    }

    .sip p.sip__lead {
        font-size: 13.5px;
        line-height: 20px;
    }

    .sip__body {
        padding: 18px 16px 0;
    }

    .sip__actions {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* landscape phones (short and wide) */
@media (max-height: 520px) and (max-width: 1024px) {
    .sip {
        padding: 8px;
    }

    .sip__dialog,
    .sip__scroll {
        max-height: 96vh;
    }

    .sip__render,
    .sip .sip__mascot,
    .sip ul.sip__points,
    .sip .sip__logo {
        display: none;
    }

    .sip__actions {
        position: -webkit-sticky;
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 4px -32px 0;
        padding: 10px 32px 12px;
        background: #ffffff;
        box-shadow: 0 -10px 18px -12px rgba(13, 31, 60, 0.25);
    }

    .sip p.sip__privacy {
        padding-bottom: 12px;
    }
}

/* small phones with short screens: give the form more room */
@media (max-width: 767px) and (max-height: 700px) {
    .sip__brand {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    .sip p.sip__lead {
        display: none;
    }

    .sip p.sip__hint {
        display: none;
    }

    .sip p.sip__formtitle {
        margin-bottom: 12px;
    }
}

/* ---------------------------------------------------------------- large monitors (scaled as a whole; max-height compensates the zoom) */
@media (min-width: 1921px) {
    .sip__dialog {
        max-width: 1040px;
    }
}

@media (min-width: 2560px) {
    .sip__dialog {
        zoom: 1.3;
    }

    .sip__dialog,
    .sip__scroll {
        max-height: 70vh;
    }
}

@media (min-width: 3840px) {
    .sip__dialog {
        zoom: 1.9;
    }

    .sip__dialog,
    .sip__scroll {
        max-height: 48vh;
    }
}

@media (min-width: 5120px) {
    .sip__dialog {
        zoom: 2.5;
    }

    .sip__dialog,
    .sip__scroll {
        max-height: 36vh;
    }
}

@media (min-width: 7680px) {
    .sip__dialog {
        zoom: 3.8;
    }

    .sip__dialog,
    .sip__scroll {
        max-height: 24vh;
    }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {

    .sip__overlay,
    .sip__dialog {
        transition: opacity 0.2s ease;
    }

    .sip__dialog {
        transform: none;
    }

    .sip .sip__x,
    .sip .sip__x.is-nudge,
    .sip .sip__submit,
    .sip .sip__submit svg {
        transition: none;
        animation: none;
    }

    .sip .sip__x:hover {
        transform: none;
    }
}