/* ==========================================================
   DAŇOVÁ STRATÉGIA – OPÝTAJTE SA
   Widget pre stránku Služby
   Farby podľa hlavného style.css
   ========================================================== */

#dsq-widget {
    --dsq-bg: #0b143b;
    --dsq-text: #f5f4ff;
    --dsq-muted: #c5c9ef;
    --dsq-pink: #f05ac5;
    --dsq-violet: #8558ff;

    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;

    font-family: 'DM Sans', sans-serif;
    color: var(--dsq-text);
}

#dsq-widget,
#dsq-widget * {
    box-sizing: border-box;
}

#dsq-widget [hidden] {
    display: none !important;
}

/* ==========================================================
   PLÁVAJÚCE TLAČIDLO – IKONA NAD TEXTOM
   ========================================================== */

/* Moderné kompaktné kontaktné tlačidlo */

#dsq-widget .dsq-launch {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: auto;
    min-width: 142px;
    min-height: 48px;
    margin: 0;
    padding: 12px 17px;

    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50px;

    background: linear-gradient(
        110deg,
        #f365bf 0%,
        #ab52f1 52%,
        #6754ff 100%
    );

    box-shadow: 0 10px 28px rgba(133,88,255,.25);

    color: #fff;
    font: 700 13px/1.3 'DM Sans', sans-serif;
    white-space: nowrap;

    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

#dsq-widget .dsq-launch svg,
#dsq-widget .dsq-launch i {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

#dsq-widget .dsq-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(133,88,255,.38);
}
/* ==========================================================
   OTVORENÝ FORMULÁR
   ========================================================== */

#dsq-widget .dsq-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 13px);

    width: min(390px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: min(680px, calc(100dvh - 145px));

    overflow-x: hidden;
    overflow-y: auto;

    padding: 23px;

    border: 1px solid rgba(168, 119, 255, .55);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(168, 77, 232, .20),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #141f58,
            #0b143b 70%,
            #211249
        );

    box-shadow:
        0 22px 70px #020519b3,
        0 0 35px #a04cf020;

    color: var(--dsq-text);

    scrollbar-width: thin;
    scrollbar-color: #8558ff #101943;
}

/* HLAVIČKA */

#dsq-widget .dsq-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
}

#dsq-widget h2 {
    margin: 0;
    color: #fff;
    font: 800 21px/1.25 Manrope, sans-serif;
    letter-spacing: -.025em;
}

#dsq-widget .dsq-close {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 8px;

    background: #ffffff0d;
    color: #fff;
    font: 400 25px/1 'DM Sans', sans-serif;

    cursor: pointer;
}

#dsq-widget .dsq-close:hover {
    background: #ffffff20;
}

#dsq-widget .dsq-intro {
    margin: 0 0 17px;
    color: var(--dsq-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================
   POLIA FORMULÁRA – VŠETKO POD SEBOU
   ========================================================== */

#dsq-widget form {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

#dsq-widget .dsq-field {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 13px;
}

#dsq-widget .dsq-field label {
    display: block;
    margin: 0 0 6px;
    color: #e4e4ff;
    font-size: 12px;
    font-weight: 600;
}

#dsq-widget .dsq-field input,
#dsq-widget .dsq-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 11px 12px;

    border: 1px solid #6e69bb8a;
    border-radius: 10px;

    background: #0b153e;
    color: #fff;

    font: 400 14px/1.5 'DM Sans', sans-serif;

    outline: none;
    box-shadow: none;
}

#dsq-widget .dsq-field input:focus,
#dsq-widget .dsq-field textarea:focus {
    border-color: #e778d9;
    box-shadow: 0 0 0 3px #df71df2b;
}

#dsq-widget .dsq-field textarea {
    resize: vertical;
    min-height: 105px;
    max-height: 220px;
}

#dsq-widget .dsq-field input::placeholder,
#dsq-widget .dsq-field textarea::placeholder {
    color: #a3afd2;
}

/* ==========================================================
   GDPR – CHECKBOX A TEXT
   ========================================================== */

#dsq-widget .dsq-consent {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;

    width: 100%;
    min-width: 0;
    margin: 15px 0 18px;
    padding: 0;

    color: #c8c9ee;
    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
    word-break: normal;
}

#dsq-widget .dsq-consent input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;

    display: block !important;
    position: static !important;

    flex: 0 0 17px !important;

    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;

    height: 17px !important;
    min-height: 17px !important;

    margin: 2px 0 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 3px;

    accent-color: #f05ac5;
    box-shadow: none !important;

    cursor: pointer;
}

#dsq-widget .dsq-consent span {
    display: block;
    flex: 1 1 0;

    min-width: 0;
    max-width: 100%;

    color: #c8c9ee;
    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

#dsq-widget .dsq-consent a {
    color: #f6a1d9;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

/* ==========================================================
   ODOSLANIE
   ========================================================== */

#dsq-widget .dsq-submit {
    display: block;
    width: 100%;
    min-height: 44px;

    margin: 0;
    padding: 12px 16px;

    border: 0;
    border-radius: 10px;

    background: linear-gradient(
        105deg,
        #f365bf 0%,
        #ab52f1 52%,
        #6754ff 100%
    );

    color: #fff;
    font: 700 14px 'DM Sans', sans-serif;

    cursor: pointer;
    box-shadow: 0 8px 25px #ba4fff30;
}

#dsq-widget .dsq-submit:hover:not(:disabled) {
    filter: brightness(1.1);
}

#dsq-widget .dsq-submit:disabled {
    opacity: .65;
    cursor: wait;
}

/* STAVOVÉ SPRÁVY */

#dsq-widget .dsq-feedback {
    margin: 12px 0 0;
    color: #c8c9ee;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#dsq-widget .dsq-feedback[data-kind="error"] {
    color: #ff9fae;
}

#dsq-widget .dsq-feedback[data-kind="success"] {
    color: #9cf2d0;
}

/* ANTISPAM */

#dsq-widget .dsq-hp {
    position: absolute !important;
    left: -10000px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* VALIDÁCIA FORMULÁRA – RUŽOVÉ UPOZORNENIA */

#dsq-widget .dsq-error {
    display: block;
    margin: 6px 0 0;
    padding: 0;
    color: #f6a1d9;
    font: 500 12px/1.5 'DM Sans', sans-serif;
}

#dsq-widget .dsq-error[hidden] {
    display: none !important;
}

#dsq-widget .dsq-field input[aria-invalid="true"],
#dsq-widget .dsq-field textarea[aria-invalid="true"] {
    border-color: #f6a1d9;
}

#dsq-widget .dsq-consent-error {
    margin: -10px 0 14px 27px;
}

/* ==========================================================
   MOBILNÉ ZOBRAZENIE
   ========================================================== */

@media (max-width: 600px) {

    #dsq-widget {
        right: 12px;
        bottom: 12px;
    }

    #dsq-widget .dsq-launch {
        width: 100px;
        min-height: 88px;
        padding: 12px 10px;
        border-radius: 16px;
        gap: 7px;
    }

    #dsq-widget .dsq-panel {
        width: min(390px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 130px);
        padding: 19px;
    }
}

/* ZNÍŽENÝ POHYB */

@media (prefers-reduced-motion: reduce) {
    #dsq-widget .dsq-launch {
        transition: none;
    }
}

@media (max-width: 600px) {
    #dsq-widget .dsq-launch {
        width: auto;
        min-width: 132px;
        min-height: 44px;
        padding: 11px 14px;
        border-radius: 12px;
        gap: 8px;
    }
}


/* Elegantné tmavé tlačidlo Opýtajte sa */

#dsq-widget .dsq-launch {
    background: linear-gradient(135deg, #171744, #25164e);
    border: 1px solid rgba(240, 90, 197, .55);
    color: #fff;

    box-shadow: 0 8px 28px rgba(3, 5, 25, .28);
}

#dsq-widget .dsq-launch svg {
    color: #f6a1d9;
}

#dsq-widget .dsq-launch:hover {
    background: linear-gradient(135deg, #25205c, #351b65);
    border-color: #f6a1d9;
    box-shadow: 0 12px 32px rgba(240, 90, 197, .18);
}