/* ── Wrapper ─────────────────────────────────────────────────────── */
.custom-contact-tabs {
    width: 100%;
}

/* ── Nadpis + intro ─────────────────────────────────────────────── */
.ct-title {
    background: linear-gradient(135deg, #E91E8C 0%, #6B2DB0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: "Manrope", sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
}

.ct-intro {
    color: rgba(74, 59, 126, 0.65);
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 24px;
}

/* ── Taby — segmented control ────────────────────────────────────── */
.ct-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
    background: rgba(107, 45, 176, 0.10);
    border: 1px solid rgba(107, 45, 176, 0.18);
    border-radius: 14px;
    padding: 6px;
}

.ct-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 13px 14px;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #4A3B7E;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
    line-height: 1;
    letter-spacing: .01em;
}

.ct-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ct-tab--active {
    background: linear-gradient(135deg, #E91E8C 0%, #6B2DB0 100%);
    color: #fff !important;
    box-shadow: 0 10px 24px -10px rgba(233, 30, 140, 0.60);
}

/* ── Date picker ─────────────────────────────────────────────────── */
.ct-dates-wrap {
    margin-top: 8px;
    margin-bottom: 20px;
}

.ct-dates-intro {
    font-size: 14.5px;
    color: #4A3B7E;
    line-height: 1.55;
    margin: 0 0 16px;
}

.ct-dates-intro b,
.ct-dates-intro strong {
    color: #1A1240;
    font-weight: 700;
}

.ct-dates-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #4A3B7E;
    font-weight: 600;
    align-items: center;
}

.ct-dates-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ct-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    flex-shrink: 0;
}

.ct-dot--ip {
    background: linear-gradient(135deg, #F9A825 0%, #E91E8C 100%);
}

.ct-dot--on {
    background: #fff;
    border: 1.5px solid rgba(107, 45, 176, 0.45);
}

.ct-dot--rec {
    background: #B8860B;
}

.ct-dates {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
}

.ct-hdate {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid rgba(107, 45, 176, 0.20);
    border-radius: 13px;
    padding: 13px 16px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    user-select: none;
}

.ct-hdate:hover {
    border-color: rgba(233, 30, 140, 0.45);
}

.ct-hdate__cb {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ct-hdate__box {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    border: 2px solid rgba(107, 45, 176, 0.35);
    background: transparent;
    display: grid;
    place-items: center;
    color: #fff;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.ct-hdate__box svg {
    width: 15px;
    height: 15px;
    opacity: 0;
    transition: opacity .15s;
}

.ct-hdate:has(.ct-hdate__cb:checked) .ct-hdate__box {
    background: linear-gradient(135deg, #F9A825 0%, #E91E8C 100%);
    border-color: transparent;
}

.ct-hdate:has(.ct-hdate__cb:checked) .ct-hdate__box svg {
    opacity: 1;
}

.ct-hdate:has(.ct-hdate__cb:checked) {
    border-color: #E91E8C;
    box-shadow: 0 10px 26px -16px rgba(233, 30, 140, 0.60);
}

.ct-hdate__txt {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}

.ct-hdate__d {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1A1240;
}

.ct-hdate__t {
    font-size: 12.5px;
    color: #6E5FA0;
    margin-top: 1px;
}

.ct-hdate__mode {
    margin-left: auto;
    flex-shrink: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #6E5FA0;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(107, 45, 176, 0.10);
    display: inline-flex;
    align-items: center;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.ct-hdate:has(.ct-hdate__cb:checked) .ct-hdate__mode,
.ct-hdate__mode[data-state="in_person"] {
    background: linear-gradient(135deg, #E91E8C 0%, #6B2DB0 100%);
    color: #fff;
}

/* ── Už prebehnuté termíny — vždy len záznam, checkbox disabled ──── */
.ct-hdate--past {
    cursor: not-allowed;
    background: rgba(184, 134, 11, 0.06);
    border-color: rgba(184, 134, 11, 0.35);
}

.ct-hdate--past .ct-hdate__box {
    border-color: rgba(184, 134, 11, 0.4);
    opacity: .55;
}

.ct-hdate--past .ct-hdate__d,
.ct-hdate--past .ct-hdate__t {
    opacity: .75;
}

.ct-hdate__mode[data-state="past"] {
    background: rgba(184, 134, 11, 0.16);
    color: #8a6508;
}

/* ── Rozpis ceny ───────────────────────────────────────────────── */
.ct-price {
    margin: 18px 0 0;
    background: rgba(107, 45, 176, 0.06);
    border: 1px solid rgba(107, 45, 176, 0.18);
    border-radius: 14px;
    padding: 16px 18px;
}

.ct-price__h {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6B2DB0;
    margin: 0 0 12px;
}

.ct-price__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #4A3B7E;
    padding: 4px 0;
}

.ct-price__sum {
    font-weight: 700;
    color: #1A1240;
    white-space: nowrap;
}

.ct-price__row--total {
    border-top: 1px solid rgba(107, 45, 176, 0.22);
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    color: #1A1240;
    font-size: 15px;
}

.ct-price__row--total .ct-price__sum {
    font-size: 21px;
    background: linear-gradient(135deg, #E91E8C 0%, #6B2DB0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ct-price__note {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: #8577ab;
    line-height: 1.4;
}

/* ── Upozornenie — min. 1 streda osobne ──────────────────────────── */
.ct-warn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 0 0;
    background: rgba(249, 168, 37, 0.12);
    border: 1.5px solid rgba(249, 168, 37, 0.55);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #7a5a05;
    transition: border-color .15s, background .15s;
}

.ct-warn strong {
    color: #7a5a05;
    font-weight: 800;
}

.ct-warn__ic {
    flex: none;
    width: 22px;
    height: 22px;
    color: #F9A825;
}

.ct-warn__ic svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Vždy len žltá — žiadny "error" stav. Namiesto prefarbenia sa box
   jednoducho schová, keď je zaškrtnutá aspoň 1 streda "osobne". */
.ct-warn--hidden {
    display: none;
}



/* ── Elementor Form — hybrid form styling overrides ──────────────── */
#form-question .elementor-form-fields-wrapper,
#form-hybrid .elementor-form-fields-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

#form-question .elementor-col-50,
#form-hybrid .elementor-col-50 {
    width: calc(50% - 8px) !important;
    flex: none !important;
}

#form-question .elementor-col-100,
#form-hybrid .elementor-col-100 {
    width: 100% !important;
    flex: none !important;
}

#form-question .elementor-field-group,
#form-hybrid .elementor-field-group {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* ── GDPR / Acceptance field — oba formuláre ────────────────────── */
#form-question .elementor-field-type-acceptance,
#form-hybrid .elementor-field-type-acceptance {
    background: rgba(107, 45, 176, 0.10) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
}

#form-question .elementor-field-type-acceptance .elementor-field-subgroup,
#form-hybrid .elementor-field-type-acceptance .elementor-field-subgroup {
    background: transparent !important;
}

#form-question .elementor-field-type-acceptance .elementor-field-option,
#form-hybrid .elementor-field-type-acceptance .elementor-field-option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

#form-question .elementor-field-type-acceptance input[type="checkbox"],
#form-hybrid .elementor-field-type-acceptance input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 2px solid rgba(107, 45, 176, 0.40) !important;
    border-radius: 5px !important;
    background: #fff !important;
    cursor: pointer !important;
    margin-top: 2px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: background .15s, border-color .15s !important;
    pointer-events: auto !important;
}

#form-question .elementor-field-type-acceptance input[type="checkbox"]:checked,
#form-hybrid .elementor-field-type-acceptance input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #E91E8C 0%, #6B2DB0 100%) !important;
    border-color: transparent !important;
}

#form-question .elementor-field-type-acceptance input[type="checkbox"]:checked::after,
#form-hybrid .elementor-field-type-acceptance input[type="checkbox"]:checked::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

#form-question .elementor-field-type-acceptance .elementor-field-option label,
#form-question .elementor-field-type-acceptance .elementor-field-subgroup label,
#form-hybrid .elementor-field-type-acceptance .elementor-field-option label,
#form-hybrid .elementor-field-type-acceptance .elementor-field-subgroup label {
    color: #1A1240 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    cursor: pointer !important;
    margin: 0 !important;
    font-weight: 400 !important;
    display: block !important;
    flex: 1 !important;
    pointer-events: auto !important;
}

#form-question .elementor-field-type-acceptance label a,
#form-hybrid .elementor-field-type-acceptance label a {
    color: #1A1240 !important;
    text-decoration: underline !important;
}



/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ct-title {
        font-size: 26px;
    }

    .ct-tabs {
        grid-template-columns: 1fr;
    }

    .ct-tab {
        font-size: 13px;
        padding: 12px 14px;
    }

    .ct-hdate__d {
        font-size: 14px;
    }

    .ct-hdate__t {
        font-size: 12px;
    }

    #form-question .elementor-col-50,
    #form-hybrid .elementor-col-50 {
        width: 100% !important;
    }

    .ct-price__row {
        font-size: 12.5px;
    }
}


/* ── Popup po úspešnom odoslaní ─────────────────────────────────── */
.ct-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ct-success-overlay[hidden] {
    display: none;
}

.ct-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 64, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

.ct-success-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.5);
    animation: ctSuccessPop .3s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes ctSuccessPop {
    from { opacity: 0; transform: scale(.92) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ct-success-modal { animation: none; }
}

.ct-success-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    line-height: 0;
    display: grid;
    place-items: center;
    background: rgba(107, 45, 176, 0.08);
    border: none;
    border-radius: 999px;
    color: #6E5FA0;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ct-success-close:hover {
    background: rgba(107, 45, 176, 0.16);
    color: #1A1240;
}

.ct-success-close svg {
    display: block;
    width: 16px;
    height: 16px;
}

.ct-success-check {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F9A825 0%, #E91E8C 100%);
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(233, 30, 140, 0.55);
}

.ct-success-check svg {
    width: 32px;
    height: 32px;
}

.ct-success-title {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #1A1240;
    margin: 0 0 10px;
}

.ct-success-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4A3B7E;
    margin: 0 0 26px;
}

.ct-success-ok {
    display: inline-block;
    background: linear-gradient(135deg, #E91E8C 0%, #6B2DB0 100%);
    color: #fff;
    border: none;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
    padding: 13px 34px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 26px -10px rgba(233, 30, 140, 0.6);
    transition: transform .15s, box-shadow .15s;
}

.ct-success-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -10px rgba(233, 30, 140, 0.72);
}

@media (max-width: 480px) {
    .ct-success-modal {
        padding: 34px 24px 26px;
    }
    .ct-success-title {
        font-size: 21px;
    }
}


/* ── GDPR acceptance — validačná hláška pod checkbox riadkom ────── */
#form-question .elementor-field-type-acceptance .elementor-field-option,
#form-hybrid .elementor-field-type-acceptance .elementor-field-option {
    flex-wrap: wrap !important;
}

#form-question .elementor-field-type-acceptance .elementor-message-danger,
#form-hybrid .elementor-field-type-acceptance .elementor-message-danger {
    width: 100% !important;
    margin-top: 6px !important;
}
