/* Scrumlin — demo request modal */

.sc-demo[hidden] {
    display: none !important;
}

.sc-demo {
    position: fixed;
    inset: 0;
    z-index: 11050;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.sc-demo__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sc-demo__panel {
    position: relative;
    width: min(32rem, 100%);
    max-height: min(92vh, 40rem);
    overflow: auto;
    padding: 1.45rem 1.4rem 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(var(--sc-border-rgb), 0.28);
    background:
        linear-gradient(180deg, rgba(var(--sc-surface-rgb), 0.96), rgba(var(--sc-chrome-rgb), 0.94));
    box-shadow:
        0 0 0 1px rgba(var(--sc-cyan-rgb), 0.08),
        0 28px 60px rgba(0, 0, 0, 0.45);
}

.sc-demo__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(var(--sc-bg-rgb), 0.45);
    color: var(--sc-muted);
    cursor: pointer;
}

.sc-demo__close:hover,
.sc-demo__close:focus-visible {
    color: var(--sc-text-bright);
    background: rgba(var(--sc-cyan-rgb), 0.14);
}

.sc-demo__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sc-accent);
}

.sc-demo__title {
    margin: 0 0 0.4rem;
    font-family: var(--sc-display, "Space Grotesk", sans-serif);
    font-size: 1.45rem;
    color: var(--sc-text-bright);
}

.sc-demo__lead {
    margin: 0 0 1.1rem;
    color: var(--sc-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.sc-demo__product {
    margin: 0 0 0.9rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--sc-cyan-rgb), 0.28);
    background: rgba(var(--sc-cyan-rgb), 0.1);
    color: var(--sc-cyan-soft);
    font-size: 0.78rem;
    font-weight: 650;
}

.sc-demo__form {
    display: grid;
    gap: 0.75rem;
}

.sc-demo__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sc-demo__field {
    display: grid;
    gap: 0.32rem;
}

.sc-demo__field span {
    font-size: 0.74rem;
    font-weight: 650;
    color: var(--sc-text-soft);
}

.sc-demo__field em {
    color: var(--sc-accent);
    font-style: normal;
}

.sc-demo__field input,
.sc-demo__field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(var(--sc-border-rgb), 0.28);
    background: rgba(var(--sc-bg-rgb), 0.45);
    color: var(--sc-text-bright);
    padding: 0.7rem 0.8rem;
    font: inherit;
    font-size: 0.9rem;
}

.sc-demo__field input[type="file"] {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
}

.sc-demo__field span small {
    font-weight: 500;
    color: var(--sc-muted);
}

.sc-demo__field input:focus,
.sc-demo__field textarea:focus {
    outline: none;
    border-color: rgba(var(--sc-cyan-rgb), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--sc-cyan-rgb), 0.14);
}

.sc-demo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.sc-demo__actions .pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    cursor: pointer;
}

.sc-demo__note {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--sc-muted);
}

.sc-demo__note:not([hidden]) {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 0.15rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(var(--sc-bg-rgb), 0.94);
    border: 1px solid rgba(var(--sc-border-rgb), 0.32);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.sc-demo__note.is-error {
    color: #fecaca;
}

.sc-demo__note.is-error:not([hidden]) {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.4);
}

.sc-demo__note.is-ok {
    color: #a7f3d0;
}

.sc-demo__note.is-ok:not([hidden]) {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.42);
}

body.is-demo-open {
    overflow: hidden;
}

.sc-demo--apply {
    padding: 0.75rem;
}

.sc-demo--apply .sc-demo__panel {
    width: min(30.5rem, 100%);
    max-height: min(88vh, 34rem);
    overflow: auto;
    padding: 1.05rem 1.1rem 0.95rem;
    border-radius: 18px;
}

.sc-demo--apply .sc-demo__close {
    top: 0.65rem;
    right: 0.65rem;
    width: 1.85rem;
    height: 1.85rem;
}

.sc-demo--apply .sc-demo__title {
    margin: 0 0 0.2rem;
    font-size: 1.22rem;
}

.sc-demo--apply .sc-demo__lead {
    margin: 0 0 0.7rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.sc-demo--apply .sc-demo__product {
    margin: 0 0 0.55rem;
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
}

.sc-demo--apply .sc-demo__form {
    gap: 0.5rem;
}

.sc-demo--apply .sc-demo__row {
    gap: 0.5rem;
}

.sc-demo--apply .sc-demo__field {
    gap: 0.22rem;
}

.sc-demo--apply .sc-demo__field input,
.sc-demo--apply .sc-demo__field textarea {
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
    border-radius: 10px;
}

.sc-demo--apply .sc-demo__field textarea {
    min-height: 4.2rem;
    resize: none;
}

.sc-demo--apply .sc-demo__field input[type="file"] {
    padding: 0.38rem 0.55rem;
    font-size: 0.76rem;
}

.sc-demo--apply .sc-demo__actions {
    margin-top: 0.1rem;
}

.sc-demo--apply .sc-demo__actions .pp-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
}

.sc-demo.is-submitting .sc-demo__form {
    pointer-events: none;
    opacity: 0.72;
}

.sc-demo.is-submitting .sc-demo__submit {
    cursor: wait;
}

.swal2-container.sc-apply-swal {
    z-index: 20050 !important;
}

.sc-apply-swal__popup {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 210, 255, 0.22) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4) !important;
}

.sc-apply-swal__title {
    font-size: 1.15rem !important;
    color: #fff !important;
}

.sc-apply-swal__text {
    color: rgba(244, 248, 255, 0.82) !important;
    font-size: 0.92rem !important;
}

.sc-apply-swal__btn {
    background: #3A7BD5 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0.55rem 1.25rem !important;
    font-weight: 650 !important;
}

.swal2-container.sc-apply-swal.swal2-toast {
    padding-top: 1.15rem;
}

@media (max-width: 639.98px) {
    .sc-demo__row {
        grid-template-columns: 1fr;
    }

    .sc-demo--apply .sc-demo__panel {
        max-height: min(92vh, 36rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-demo__panel {
        animation: none;
    }
}
