.speaker-form-modal.lwm-modal {
    position: fixed;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    overscroll-behavior: contain;
    pointer-events: none;
    z-index: 2147483000 !important;
    transition: opacity .28s ease, visibility 0s linear .28s;
}

.speaker-form-modal.lwm-modal.is-active,
.speaker-form-modal.lwm-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    transition: opacity .28s ease, visibility 0s linear 0s;
}

body.lwm-modal-open {
    overflow: hidden;
}

.speaker-form-modal .lwm-modal__backdrop,
.speaker-form-modal .lwm-modal__dialog {
    pointer-events: auto;
}

.speaker-form-modal.lwm-theme-ekp-2026 {
    --gold: #c9a84c;
    --gold-2: #e8d48b;
    --purple-900: #0a1628;
    --purple-800: #132244;
    --purple-700: #1a2d52;
    --purple-600: #1a6b4a;
    --purple-500: #228b5b;
    --text: #ffffff;
    --bg: linear-gradient(180deg, #0a1628 0%, #1a2d52 100%);
    --card: #132244;
    --card-2: #1a2d52;
    --card-3: rgba(26, 45, 82, 1);
    --card-3-pt: rgba(26, 45, 82, 1);
    --card-4: rgba(10, 22, 40, .95);
    --accent: #c9a84c;
    --accent-2: #e8d48b;
    --radius: 20px;
    --shadow-light: 0 2px 8px rgba(10, 22, 40, .06);
    --shadow-medium: 0 4px 20px rgba(10, 22, 40, .10);
    --shadow-heavy: 0 8px 40px rgba(10, 22, 40, .14);
    --shadow-btn-default: 0 4px 16px rgba(26, 107, 74, .3);
    --shadow-btn-hover: 0 6px 24px rgba(26, 107, 74, .4);
}

.speaker-form-modal .lwm-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.65);
    opacity: 0;
    transition: opacity .28s ease;
}

.speaker-form-modal .lwm-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(760px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #dfe3eb !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px)) scale(.96);
    transform-origin: center center;
    transition: opacity .3s ease, transform .32s cubic-bezier(0.22, 1, 0.36, 1), width .28s ease, max-width .28s ease;
}

.speaker-form-modal.is-success-state .lwm-modal__dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: none;
    overflow: hidden !important;
}

.speaker-form-modal.is-active .lwm-modal__backdrop,
.speaker-form-modal[aria-hidden="false"] .lwm-modal__backdrop {
    opacity: 1;
}

.speaker-form-modal.is-active .lwm-modal__dialog,
.speaker-form-modal[aria-hidden="false"] .lwm-modal__dialog {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.speaker-form-modal .lwm-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 18px;
    background: #1a6b4a !important;
    color: #ffffff !important;
    border-bottom: 0 !important;
    border-radius: 16px 16px 0 0;
    transition: opacity .22s ease, transform .22s ease, padding .28s ease;
}

.speaker-form-modal__header-inner {
    min-width: 0;
}

.speaker-form-modal .lwm-modal__title {
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    font-weight: 700;
}

.speaker-form-modal__progress {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    font-weight: 600;
}

.speaker-form-modal .lwm-modal__close {
    position: static !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 0;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.speaker-form-modal .lwm-modal__close:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

.speaker-form-modal .lwm-modal__body {
    padding: 24px;
    overflow-y: auto;
    color: #1a1a2e;
    transition: opacity .22s ease, transform .22s ease, padding .28s ease;
}

.speaker-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    gap: 22px;
}

.speaker-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.speaker-form__step {
    display: grid;
    gap: 18px;
}

.speaker-form__step[hidden] {
    display: none !important;
}

.speaker-form .speaker-form__grid .st-form__group {
    margin-top: 0;
}

.speaker-form .st-form__group {
    margin-top: 0;
}

.speaker-form .st-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0a1628;
}

.speaker-form .st-form__required {
    color: #dc2626 !important;
}

.speaker-form .st-form__input,
.speaker-form .st-form__textarea,
.speaker-form .st-form__checkbox-label {
    width: 100%;
}

.speaker-form .st-form__input,
.speaker-form .st-form__textarea {
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    padding: 14px 16px;
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: none;
}

.speaker-form .st-form__input:focus,
.speaker-form .st-form__textarea:focus {
    border-color: #1a6b4a;
    outline: 2px solid rgba(26, 107, 74, 0.12);
    outline-offset: 0;
}

.speaker-form .st-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.speaker-form .st-form__error {
    margin-top: 6px;
    color: #dc2626;
    font-weight: 600;
}

.speaker-form .st-form__input--error,
.speaker-form .st-form__textarea.st-form__input--error,
.speaker-form .st-form__checkbox.st-form__input--error {
    border-color: #dc2626 !important;
    outline-color: rgba(220, 38, 38, 0.12);
}

.speaker-form__range {
    width: 100%;
    accent-color: #1a6b4a;
}

.speaker-form__range-output {
    margin-top: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a6b4a;
}

.speaker-form__consents {
    padding: 20px;
    border: 1px solid #dfe3eb;
    border-radius: 14px;
    background: #f8faf9;
}

.speaker-form__consents-title {
    margin: 0 0 12px;
    color: #0a1628;
    font-weight: 700;
}

.speaker-form__actions.lwm-modal__actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 6px;
}

.speaker-form__button {
    flex: 0 0 auto;
    min-width: 160px;
    min-height: 48px;
}

.speaker-form__button[hidden] {
    display: none !important;
}

.speaker-form-modal .lwm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.speaker-form-modal .lwm-btn--cancel {
    color: #0a1628 !important;
    border: 1px solid #dfe3eb !important;
    background: transparent !important;
}

.speaker-form-modal .lwm-btn--cancel:hover {
    background: #f7f8fa !important;
    border-color: #0a1628 !important;
}

.speaker-form-modal .lwm-btn--confirm {
    background: #1a6b4a !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 4px 16px rgba(26, 107, 74, 0.25);
}

.speaker-form-modal .lwm-btn--confirm:hover {
    background: #228b5b !important;
    box-shadow: 0 6px 24px rgba(26, 107, 74, 0.4) !important;
    transform: translateY(-1px);
}

.speaker-form__messages {
    display: none;
    margin-top: 18px;
}

.speaker-form__messages.is-visible {
    display: block;
}

.speaker-form-modal .lwm-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 10, 28, 0.34);
    backdrop-filter: blur(3px);
    border-radius: 16px;
    opacity: 1;
    transition: opacity .18s ease;
}

.speaker-form-modal .lwm-modal__loading[hidden] {
    display: none !important;
}

.speaker-form-modal .lwm-loading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(14, 18, 40, 0.78);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.speaker-form-modal .lwm-spinner {
    width: 28px;
    height: 28px;
    display: inline-block;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    animation: speaker-form-spin .8s linear infinite;
}

.speaker-form-modal .lwm-modal__success {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 24px 32px;
    background: #ffffff;
    text-align: center;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .24s ease, transform .28s cubic-bezier(0.22, 1, 0.36, 1), padding .28s ease;
}

.speaker-form-modal .lwm-modal__success[hidden] {
    display: none !important;
}

.speaker-form-modal .lwm-modal__success-icon {
    color: #1a6b4a !important;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 107, 74, 0.12);
    font-size: 28px;
    font-weight: 800;
}

.speaker-form__success-title {
    margin: 0;
    color: #0a1628;
    font-size: 1.1rem;
    font-weight: 800;
}

.speaker-form__success-text {
    margin: 0;
    color: #5a6275;
    line-height: 1.65;
    font-weight: 600;
}

.speaker-form-modal.is-success-state .lwm-modal__header,
.speaker-form-modal.is-success-state .lwm-modal__body {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.speaker-form-modal.is-success-state .lwm-modal__success {
    position: static;
    inset: auto;
    opacity: 1;
    transform: scale(1);
}

.speaker-form-modal.is-success-state .lwm-modal__header[hidden],
.speaker-form-modal.is-success-state .lwm-modal__body[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .speaker-form-modal.lwm-modal,
    .speaker-form-modal .lwm-modal__backdrop,
    .speaker-form-modal .lwm-modal__dialog,
    .speaker-form-modal .lwm-modal__header,
    .speaker-form-modal .lwm-modal__body,
    .speaker-form-modal .lwm-modal__success,
    .speaker-form-modal .lwm-modal__loading {
        transition: none !important;
    }
}

@keyframes speaker-form-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .speaker-form-modal .lwm-modal__dialog {
        width: min(100vw, calc(100vw - 16px));
        max-height: 95dvh;
    }

    .speaker-form-modal .lwm-modal__header,
    .speaker-form-modal .lwm-modal__body,
    .speaker-form-modal .lwm-modal__success {
        padding-left: 20px;
        padding-right: 20px;
    }

    .speaker-form__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .speaker-form__actions.lwm-modal__actions {
        flex-direction: column;
    }

    .speaker-form__button {
        width: 100%;
        min-width: 0;
    }
}
