/*
 * ELDOM Povpraševanje – odzivni slog usklajen z ELDOM podstranmi.
 * Primarna modra: #1d88ed, temno besedilo: #172b3a, svetla ozadja in mehke modre sence.
 */
.eldom-inquiry-wrap,
.eldom-inquiry-wrap * {
    box-sizing: border-box;
}

.eldom-inquiry-wrap {
    --eldom-blue: #1d88ed;
    --eldom-blue-dark: #0f6fca;
    --eldom-text: #172b3a;
    --eldom-muted: #536271;
    --eldom-border: #dceaf6;
    --eldom-bg-soft: #f5faff;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--eldom-text);
}

.eldom-inquiry-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(29, 136, 237, .14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 136, 237, .10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 24px 70px rgba(29, 136, 237, .12);
}

.eldom-inquiry-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.eldom-eyebrow {
    margin-bottom: 11px;
    color: var(--eldom-blue);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .22em;
}

.eldom-inquiry-head h2 {
    margin: 0 0 13px;
    color: var(--eldom-text);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.025em;
}

.eldom-inquiry-head p {
    max-width: 700px;
    margin: 0;
    color: var(--eldom-muted);
    font-size: 16px;
    line-height: 1.75;
}

.eldom-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

.eldom-field-full {
    grid-column: 1 / -1;
}

.eldom-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--eldom-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.eldom-field label span,
.eldom-consent strong {
    color: var(--eldom-blue);
}

.eldom-inquiry-form input[type="text"],
.eldom-inquiry-form input[type="email"],
.eldom-inquiry-form input[type="tel"],
.eldom-inquiry-form select,
.eldom-inquiry-form textarea {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--eldom-border);
    border-radius: 13px;
    outline: none;
    background: #fff;
    box-shadow: 0 5px 18px rgba(29, 136, 237, .035);
    color: var(--eldom-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.eldom-inquiry-form textarea {
    min-height: 150px;
    resize: vertical;
}

.eldom-inquiry-form input::placeholder,
.eldom-inquiry-form textarea::placeholder {
    color: #8b9aaa;
    opacity: 1;
}

.eldom-inquiry-form input:focus,
.eldom-inquiry-form select:focus,
.eldom-inquiry-form textarea:focus {
    border-color: rgba(29, 136, 237, .72);
    box-shadow: 0 0 0 4px rgba(29, 136, 237, .10), 0 8px 22px rgba(29, 136, 237, .08);
}

.eldom-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 22px 0 0;
    cursor: pointer;
    color: var(--eldom-muted);
    font-size: 13px;
    line-height: 1.55;
}

.eldom-consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    accent-color: var(--eldom-blue);
}

.eldom-recaptcha {
    margin-top: 22px;
    overflow-x: auto;
}

.eldom-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
}

.eldom-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 25px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--eldom-blue), var(--eldom-blue-dark));
    box-shadow: 0 12px 28px rgba(29, 136, 237, .25);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.eldom-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(29, 136, 237, .32);
    filter: saturate(1.05);
}

.eldom-submit:focus-visible {
    outline: 3px solid rgba(29, 136, 237, .25);
    outline-offset: 3px;
}

.eldom-submit span {
    font-size: 19px;
    transition: transform .18s ease;
}

.eldom-submit:hover span {
    transform: translateX(3px);
}

.eldom-required {
    color: #7a8896;
    font-size: 12px;
}

.eldom-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 26px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
}

.eldom-alert-success {
    border: 1px solid #bee8d0;
    background: #f0fbf5;
    color: #1f6e43;
}

.eldom-alert-error,
.eldom-config-warning {
    border: 1px solid #f2c9c9;
    background: #fff5f5;
    color: #9d3131;
}

.eldom-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.eldom-config-warning {
    display: inline-block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.eldom-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .eldom-inquiry-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .eldom-inquiry-head {
        margin-bottom: 26px;
    }

    .eldom-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .eldom-field-full {
        grid-column: auto;
    }

    .eldom-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .eldom-submit {
        width: 100%;
    }

    .eldom-required {
        text-align: center;
    }
}

@media (max-width: 380px) {
    .eldom-inquiry-card {
        padding: 24px 15px;
        border-radius: 18px;
    }

    .eldom-inquiry-form input[type="text"],
    .eldom-inquiry-form input[type="email"],
    .eldom-inquiry-form input[type="tel"],
    .eldom-inquiry-form select,
    .eldom-inquiry-form textarea {
        padding-left: 13px;
        padding-right: 13px;
    }
}

/* =========================================================
 * POPRAVEK 1.1.0 – AJAX, modri gumb in modalno zahvalno okno
 * ========================================================= */

/* Gumb je namenoma prisilno moder, da ga tema BeTheme ne prepiše s svojo barvo. */
.eldom-inquiry-wrap .eldom-submit {
    border: 0 !important;
    background: #1d88ed !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-appearance: none;
    appearance: none;
}

.eldom-inquiry-wrap .eldom-submit:hover,
.eldom-inquiry-wrap .eldom-submit:focus {
    background: #0f6fca !important;
    color: #ffffff !important;
}

.eldom-inquiry-wrap .eldom-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.eldom-submit.is-loading .eldom-submit-arrow {
    animation: eldom-arrow-pulse .8s ease-in-out infinite alternate;
}

@keyframes eldom-arrow-pulse {
    from { transform: translateX(0); }
    to { transform: translateX(5px); }
}

/* Napaka AJAX oddaje se pokaže nad obrazcem brez refresha strani. */
.eldom-ajax-message {
    display: none;
    margin: 0 0 24px;
    padding: 15px 17px;
    border: 1px solid #f2c9c9;
    border-radius: 13px;
    background: #fff5f5;
    color: #9d3131;
    font-size: 14px;
    line-height: 1.55;
}

.eldom-ajax-message.is-visible {
    display: block;
}

/* Ko je zahvalno okno odprto, preprečimo premikanje vsebine v ozadju. */
html.eldom-modal-open,
html.eldom-modal-open body {
    overflow: hidden !important;
}

/* Celostransko modalno okno po uspešni oddaji. */
.eldom-success-modal {
    position: fixed;
    inset: 0;
    /* POPRAVEK 1.2.1 – maksimalen varen z-index, da je modal nad slikami, sticky elementi in BeTheme plastmi. */
    z-index: 2147483647 !important;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.eldom-success-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.eldom-success-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(12, 30, 45, .64);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.eldom-success-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    padding: 42px 38px 36px;
    border: 1px solid rgba(29, 136, 237, .14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
    color: #172b3a;
    text-align: center;
    transform: translateY(14px) scale(.98);
    transition: transform .22s ease;
}

.eldom-success-modal.is-open .eldom-success-modal__dialog {
    transform: translateY(0) scale(1);
}

/* X zgoraj desno – uporabnik lahko okno takoj zapre. */
.eldom-success-modal__close {
    position: absolute;
    top: 13px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: #f2f7fb !important;
    color: #40566a !important;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.eldom-success-modal__close:hover {
    background: #e6f1fa !important;
    color: #172b3a !important;
}

.eldom-success-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #eaf5ff;
    color: #1d88ed;
    font-size: 34px;
    font-weight: 900;
}

.eldom-success-modal__dialog h3 {
    margin: 0 0 12px !important;
    color: #172b3a !important;
    font-size: clamp(25px, 4vw, 32px) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.eldom-success-modal__message {
    margin: 0 auto 26px !important;
    max-width: 420px;
    color: #536271 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.eldom-success-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 48px;
    padding: 12px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #1d88ed !important;
    color: #ffffff !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(29, 136, 237, .24);
}

.eldom-success-modal__button:hover {
    background: #0f6fca !important;
    color: #ffffff !important;
}

@media (max-width: 560px) {
    .eldom-success-modal {
        padding: 16px;
    }

    .eldom-success-modal__dialog {
        padding: 38px 22px 28px;
        border-radius: 20px;
    }

    .eldom-success-modal__icon {
        width: 62px;
        height: 62px;
        font-size: 29px;
    }
}

/* =========================================================
 * POPRAVEK 1.2.0 – manj odebeljena tipografija obrazca
 * ========================================================= */

/* Naslov obrazca je namenoma mehkejši, da vizualno ne deluje pretežko. */
.eldom-inquiry-wrap .eldom-inquiry-head h2 {
    font-weight: 600 !important;
}

/* Zgornji mali napis ostane poudarjen, vendar ne preveč odebeljen. */
.eldom-inquiry-wrap .eldom-eyebrow {
    font-weight: 700 !important;
}

/* Gumb ostane moder, besedilo pa je manj odebeljeno in nekoliko manjše. */
.eldom-inquiry-wrap .eldom-submit {
    font-weight: 600 !important;
}

.eldom-inquiry-wrap .eldom-submit .eldom-submit-text {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
}

.eldom-inquiry-wrap .eldom-submit .eldom-submit-arrow {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

/* Tudi naslov in gumb v zahvalnem oknu sta manj odebeljena. */
.eldom-success-modal__dialog h3 {
    font-weight: 600 !important;
}

.eldom-success-modal__button {
    font-weight: 600 !important;
}

/* Ob hoverju se premakne samo puščica, ne celotno besedilo gumba. */
.eldom-inquiry-wrap .eldom-submit:hover .eldom-submit-text {
    transform: none !important;
}
