/* Convert to PDF. All rules are scoped so the rest of the site is untouched. */
.convert-page {
    --cv-orange: #fa6800;
    --cv-orange-hover: #e35e00;
    --cv-orange-soft: rgba(250, 104, 0, 0.10);
    --cv-bg: #F4F3F0;
    --cv-surface: #FFFFFF;
    --cv-text: #1C1917;
    --cv-text-2: #57534E;
    --cv-muted: #7A746C;
    --cv-line: rgba(28, 25, 23, 0.08);
    --cv-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px rgba(28, 25, 23, 0.06);
    --cv-radius: 16px;
    --cv-danger: #C62828;
    --cv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    background: var(--cv-bg);
    color: var(--cv-text);
    font-family: var(--cv-font);
    margin: 0 -15px;
    padding: 28px 20px 56px;
    position: relative;
    min-height: 40vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.convert-page *,
.convert-page *::before,
.convert-page *::after { box-sizing: border-box; }
.convert-page a { color: var(--cv-orange); text-decoration: none; }
.convert-page a:hover,
.convert-page a:focus { color: var(--cv-orange-hover); text-decoration: none; }
.convert-page h1,
.convert-page h2,
.convert-page p { margin: 0; }
.convert-page ul { list-style: none; margin: 0; padding: 0; }
.convert-page hr { display: none; }

.convert-page .cv-inner {
    max-width: 720px;
    margin: 0 auto;
}

.convert-page .cv-page-head {
    text-align: center;
    margin-bottom: 28px;
}
.convert-page .cv-page-head h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--cv-text);
}
.convert-page .cv-lede {
    margin-top: 10px;
    color: var(--cv-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}

/* Drop zone */
.convert-page .dz-convert-drop {
    position: relative;
    display: block;
    border: 1.5px dashed rgba(250, 104, 0, 0.45);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    padding: 48px 28px 40px;
    text-align: center;
    cursor: pointer;
    margin: 0 0 16px;
    box-shadow: var(--cv-shadow);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.convert-page .dz-convert-drop:hover,
.convert-page .dz-convert-drop.dragover {
    background: #FFF8F3;
    border-color: var(--cv-orange);
    box-shadow: 0 0 0 4px var(--cv-orange-soft), var(--cv-shadow);
}
.convert-page .dz-convert-drop.has-file {
    border-style: solid;
    border-color: var(--cv-orange);
    background: #FFF8F3;
}
.convert-page .dz-convert-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.convert-page .dz-convert-drop-ui {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.convert-page .cv-drop-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--cv-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(250, 104, 0, 0.28);
}
.convert-page .cv-drop-icon svg { display: block; }
.convert-page .dz-convert-drop.has-file .cv-drop-icon { background: #059669; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28); }
.convert-page .dz-convert-drop-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--cv-text);
    margin: 0 0 8px;
    line-height: 1.25;
}
.convert-page .dz-convert-drop-types { display: none; }
.convert-page .cv-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.convert-page .cv-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--cv-orange-soft);
    color: var(--cv-orange);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1;
}
.convert-page .dz-convert-filename {
    margin: 16px 0 0;
    font-weight: 650;
    font-size: 15px;
    color: var(--cv-text);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Options card + toggles */
.convert-page .cv-card {
    background: var(--cv-surface);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-radius);
    box-shadow: var(--cv-shadow);
}
.convert-page .cv-options {
    padding: 6px 20px;
    margin: 0 0 20px;
}
.convert-page .cv-option.form-check {
    display: block;
    position: relative;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--cv-line);
    min-height: 0;
}
.convert-page .cv-option.form-check:last-child { border-bottom: 0; }
.convert-page .cv-option .form-check-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    float: none;
}
.convert-page .cv-option .form-check-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-weight: 550;
    font-size: 15px;
    color: var(--cv-text);
    margin: 0;
    padding: 0;
    line-height: 1.3;
}
.convert-page .cv-switch {
    flex: 0 0 44px;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #E7E5E4;
    position: relative;
    transition: background .15s ease;
}
.convert-page .cv-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.25);
    transition: transform .15s ease;
}
.convert-page .cv-option .form-check-input:checked + .form-check-label .cv-switch {
    background: var(--cv-orange);
}
.convert-page .cv-option .form-check-input:checked + .form-check-label .cv-switch::after {
    transform: translateX(18px);
}
.convert-page .cv-option .form-check-input:focus-visible + .form-check-label .cv-switch {
    box-shadow: 0 0 0 3px var(--cv-orange-soft);
}
.convert-page .cv-option .form-text,
.convert-page .cv-option-note {
    display: block;
    margin: 6px 0 0 58px;
    line-height: 1.45;
    font-size: 13px;
    color: var(--cv-muted);
}

/* Captcha + convert button */
.convert-page .cv-captcha {
    text-align: center;
    margin: 0 0 16px;
}
.convert-page .cv-captcha-inner {
    display: inline-block;
    transform: scale(0.99);
    transform-origin: center;
}
.convert-page .cv-submit {
    margin: 0 0 28px;
}
.convert-page .dz-convert-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    height: 52px;
    padding: 0 24px;
    background: var(--cv-orange);
    color: #fff;
    font-family: inherit;
    font-weight: 650;
    font-size: 17px;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}
.convert-page .dz-convert-btn:hover:not(:disabled),
.convert-page .dz-convert-btn:focus:not(:disabled) {
    background: var(--cv-orange-hover);
    color: #fff;
}
.convert-page .dz-convert-btn:disabled {
    background: #E7E5E4;
    color: #A8A29E;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}
.convert-page .dz-convert-btn.is-loading,
.convert-page .dz-convert-btn.is-loading:disabled {
    background: var(--cv-orange);
    color: #fff;
    cursor: wait;
    opacity: 0.9;
}
.convert-page .dz-convert-btn.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cv-spin 0.7s linear infinite;
}
@keyframes cv-spin { to { transform: rotate(360deg); } }

/* How it works */
.convert-page .cv-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    counter-reset: cv-step;
    position: relative;
}
.convert-page .cv-steps::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 18%;
    right: 18%;
    height: 1px;
    background: var(--cv-line);
}
.convert-page .cv-steps li {
    position: relative;
    text-align: center;
    padding: 8px 8px 0;
    counter-increment: cv-step;
    z-index: 1;
}
.convert-page .cv-steps li::before {
    content: counter(cv-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--cv-orange-soft);
    color: var(--cv-orange);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--cv-bg);
}
.convert-page .cv-steps-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-orange);
    text-align: center;
    margin: 0 0 12px;
}
.convert-page .cv-steps li span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cv-text);
}
.convert-page .cv-steps-block {
    margin: 0 0 36px;
}

/* Status + loading */
.convert-page .cv-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin: 0 0 16px;
    background: #FFF8F3;
    border: 1px solid rgba(250, 104, 0, 0.22);
    border-radius: 12px;
    color: var(--cv-text);
    font-size: 14px;
    line-height: 1.45;
}
.convert-page .cv-alert i { color: var(--cv-orange); margin-top: 2px; }
.convert-page .cv-status-note {
    color: var(--cv-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 20px;
}
.convert-page #loading {
    margin: 12px 0 20px;
    text-align: center;
}
.convert-page #loading img {
    max-width: 100%;
    height: auto;
}

/* File lists */
.convert-page .cv-list {
    margin: 0 0 28px;
}
.convert-page .cv-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}
.convert-page .cv-list-head h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--cv-text);
}
.convert-page .cv-list-count {
    font-size: 13px;
    color: var(--cv-muted);
    font-weight: 550;
}
.convert-page .cv-complete-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cv-text);
    letter-spacing: -0.01em;
}
.convert-page .cv-complete-banner i { color: var(--cv-orange); font-size: 1.15rem; }

.convert-page .cv-files {
    background: var(--cv-surface);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-radius);
    box-shadow: var(--cv-shadow);
    overflow: hidden;
}
.convert-page .cv-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cv-line);
    min-width: 0;
}
.convert-page .cv-file:last-child { border-bottom: 0; }
.convert-page .cv-file-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(198, 40, 40, 0.08);
    color: #C62828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.convert-page .cv-file-body {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}
.convert-page .cv-file-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--cv-text) !important;
    line-height: 1.3;
}
.convert-page .cv-file-name:hover,
.convert-page .cv-file-name:focus { color: var(--cv-orange) !important; }
.convert-page .cv-file-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--cv-muted);
    min-width: 0;
}
.convert-page .cv-file-meta .cv-dot {
    color: #D6D3D1;
    font-weight: 600;
}
.convert-page .cv-file-meta a {
    color: var(--cv-text-2);
    font-weight: 550;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.convert-page .cv-file-meta a:hover { color: var(--cv-orange); }
.convert-page .cv-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.convert-page .cv-file-dl,
.convert-page .cv-file-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.convert-page .cv-file-dl {
    color: var(--cv-orange) !important;
    background: var(--cv-orange-soft);
}
.convert-page .cv-file-dl:hover,
.convert-page .cv-file-dl:focus {
    background: var(--cv-orange);
    color: #fff !important;
}
.convert-page .cv-file-del {
    color: var(--cv-danger) !important;
    background: transparent;
}
.convert-page .cv-file-del:hover,
.convert-page .cv-file-del:focus {
    background: rgba(198, 40, 40, 0.08);
    color: var(--cv-danger) !important;
}

@media (max-width: 860px) {
    .convert-page { margin: 0 -15px; padding: 22px 16px 56px; }
    .convert-page .cv-page-head h1 { font-size: 28px; }
    .convert-page .dz-convert-drop { padding: 36px 18px 32px; min-height: 210px; }
    .convert-page .dz-convert-drop-title { font-size: 18px; }
    .convert-page .cv-drop-icon { width: 56px; height: 56px; border-radius: 16px; }
}
@media (max-width: 520px) {
    .convert-page .cv-page-head h1 { font-size: 26px; }
    .convert-page .cv-steps { gap: 4px; }
    .convert-page .cv-steps li span { font-size: 13px; }
    .convert-page .cv-file { flex-wrap: nowrap; gap: 10px; padding: 12px; }
    .convert-page .cv-file-actions { flex: 0 0 auto; }
    .convert-page .cv-file-dl { padding: 0 10px; height: 32px; font-size: 12.5px; }
    .convert-page .cv-file-del { padding: 0 8px; }
    .convert-page .cv-option .form-text,
    .convert-page .cv-option-note { margin-left: 0; padding-left: 0; }
    .convert-page .cv-option .form-check-label { align-items: flex-start; }
    .convert-page .cv-switch { margin-top: 1px; }
    .convert-page .dz-convert-drop-title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .convert-page .dz-convert-btn.is-loading::after,
    .convert-page .cv-switch,
    .convert-page .cv-switch::after { animation: none; transition: none; }
}
