/* ================================================================
   Ormilon Pricing Calculator — Save PDF modal
   Tokens: primary #9960EA · accent #B0E842
================================================================ */

.pc-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pc-pdf-modal.is-open {
    display: flex;
}

/* --- backdrop --- */
.pc-pdf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 12, 32, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: pc-pdf-fade 180ms ease-out;
}

/* --- panel --- */
.pc-pdf-modal__panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow:
        0 20px 60px rgba(16, 12, 32, 0.28),
        0 2px 8px rgba(16, 12, 32, 0.08);
    animation: pc-pdf-pop 200ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* --- close button --- */
.pc-pdf-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background 160ms ease;
}

.pc-pdf-modal__close:hover {
    background: rgba(16, 12, 32, 0.06);
}

.pc-pdf-modal__close::before,
.pc-pdf-modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
}

.pc-pdf-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pc-pdf-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- heading --- */
.pc-pdf-modal__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

.pc-pdf-modal__sub {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #5a5a6a;
}

/* --- form --- */
.pc-pdf-modal__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pc-pdf-modal__label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: -4px;
}

.pc-pdf-modal__input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #1a1a1a;
    background: #fff;
    border: 1.5px solid #e2e2ea;
    border-radius: 10px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    box-sizing: border-box;
}

.pc-pdf-modal__input::placeholder {
    color: #a0a0ae;
}

.pc-pdf-modal__input:focus {
    border-color: #9960EA;
    box-shadow: 0 0 0 3px rgba(153, 96, 234, 0.18);
}

.pc-pdf-modal__input.is-invalid {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

/* --- send button (prominent — primary CTA) --- */
.pc-pdf-modal__send {
    width: 100%;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    background: #9960EA;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 18px rgba(153, 96, 234, 0.32);
    transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease;
    margin-top: 6px;
}

.pc-pdf-modal__send:hover {
    background: #8850d8;
    box-shadow: 0 10px 24px rgba(153, 96, 234, 0.4);
    transform: translateY(-1px);
}

.pc-pdf-modal__send:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(153, 96, 234, 0.28);
}

.pc-pdf-modal__send:disabled,
.pc-pdf-modal__send[aria-busy="true"] {
    opacity: 0.6;
    cursor: progress;
    pointer-events: none;
}

/* --- divider + download as inline text link --- */
.pc-pdf-modal__divider {
    margin: 18px 0 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #8a8a98;
}

.pc-pdf-modal__divider span {
    display: inline;
    background: none;
    padding: 0 4px;
    text-transform: lowercase;
    letter-spacing: 0;
    font-weight: 400;
    color: #8a8a98;
}

/* --- download — subtle text link, not a button --- */
.pc-pdf-modal__download {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #8a8a98;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 140ms ease;
}

.pc-pdf-modal__download:hover {
    color: #9960EA;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.pc-pdf-modal__download:active {
    color: #8850d8;
    transform: none;
}

.pc-pdf-modal__download:disabled,
.pc-pdf-modal__download[aria-busy="true"] {
    opacity: 0.5;
    cursor: progress;
    pointer-events: none;
}

/* wrapper that keeps "or <download link>" on a single line */
.pc-pdf-modal__download-row {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #8a8a98;
}

/* --- status message --- */
.pc-pdf-modal__msg {
    min-height: 20px;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #5a5a6a;
    transition: color 160ms ease;
}

.pc-pdf-modal__msg:empty {
    display: none;
}

.pc-pdf-modal__msg.is-error {
    color: #c63535;
}

.pc-pdf-modal__msg.is-success {
    color: #2b8a3e;
}

.pc-pdf-modal__msg.is-info {
    color: #5a5a6a;
}

/* --- animations --- */
@keyframes pc-pdf-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pc-pdf-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- mobile --- */
@media (max-width: 480px) {
    .pc-pdf-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .pc-pdf-modal__panel {
        padding: 26px 22px 22px;
        border-radius: 16px 16px 12px 12px;
    }

    .pc-pdf-modal__title {
        font-size: 18px;
    }
}

/* --- body scroll lock helper (toggle on <body> from JS) --- */
body.pc-pdf-modal-open {
    overflow: hidden;
}