/* Страница согласия на обработку персональных данных */

.consent-page {
    min-height: calc(100vh - 200px);
    padding: 60px 50px 80px;
}

.consent-content {
    max-width: 720px;
    margin: 0 auto;
}

.consent-title {
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 32px;
    color: var(--color-text);
}

.consent-intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 40px;
}

.consent-section {
    margin-bottom: 36px;
}

.consent-section h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 16px;
}

.consent-section p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 12px;
}

.consent-section ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.consent-section li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.consent-section a {
    color: var(--color-primary);
    text-decoration: none;
}

.consent-section a:hover {
    text-decoration: underline;
}

.consent-back {
    margin-top: 48px !important;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-back a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 15px;
}

.consent-back a:hover {
    color: var(--color-text);
}

/* Страница успешной оплаты */
.payment-success-actions {
    margin: 32px 0;
}

.payment-success-actions .btn {
    margin-bottom: 16px;
}

.payment-success-note {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.payment-success-complex-lead {
    margin-bottom: 32px;
}

.consent-intro + .payment-success-complex-lead {
    margin-top: -28px;
}

.payment-success-complex-lead strong {
    color: var(--color-text);
    font-weight: 500;
}

.payment-success-muted {
    color: var(--color-text-muted);
}

.payment-success-pending-hint {
    margin-top: -20px;
    margin-bottom: 28px;
}

.payment-success-warning-box {
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-muted);
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 200, 100, 0.12);
    border: 1px solid rgba(255, 200, 120, 0.35);
    margin: 0 0 28px;
}

.payment-success-actions .btn-primary.btn-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.payment-success-btn-alt {
    margin-top: 6px;
}

.payment-success-actions .btn-primary.payment-success-btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.payment-success-actions .btn-primary.payment-success-btn-ghost:hover {
    background: rgba(81, 86, 190, 0.12);
    color: var(--color-primary);
}

.payment-success-debug {
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-text-muted);
    white-space: pre-wrap;
    word-break: break-word;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    margin: 0 0 28px;
}

.footer-compact .footer-inner {
    padding: 24px 50px;
}

@media (max-width: 768px) {
    .consent-page {
        padding: 40px 20px 60px;
    }

    .consent-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .consent-intro {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .consent-section h2 {
        font-size: 16px;
    }

    .consent-section p,
    .consent-section li {
        font-size: 14px;
    }

.footer-compact .footer-inner {
    padding: 24px 20px;
}
}

/* Страница расшифровки анализов */
.decode-config-warning {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 180, 80, 0.12);
    border: 1px solid rgba(255, 200, 120, 0.35);
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.decode-field-order {
    margin-bottom: 24px;
}

.decode-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.decode-input {
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-family: inherit;
    font-size: 15px;
}

.decode-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.decode-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.decode-input:disabled {
    opacity: 0.5;
}

.decode-field-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 8px 0 0;
}

.decode-field-captcha {
    margin-top: 8px;
    margin-bottom: 8px;
}

.decode-field-captcha .g-recaptcha {
    display: inline-block;
}

.decode-form {
    margin-bottom: 40px;
}

.decode-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.decode-dropzone:hover,
.decode-dropzone.is-dragover {
    border-color: var(--color-primary);
    background: rgba(81, 86, 190, 0.08);
}

.decode-dropzone.is-missing-file {
    border-color: var(--color-primary);
    background: rgba(81, 86, 190, 0.12);
    box-shadow: 0 0 0 2px rgba(81, 86, 190, 0.45);
    animation: decode-dropzone-missing 0.85s ease 2;
}

@keyframes decode-dropzone-missing {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(81, 86, 190, 0.45);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(81, 86, 190, 0.22);
    }
}

.decode-dropzone-inner {
    pointer-events: none;
}

.decode-dropzone-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.decode-dropzone-text {
    font-size: 16px;
    color: var(--color-text);
    margin: 0 0 8px;
}

.decode-dropzone-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.decode-dropzone-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

.decode-form .btn {
    margin-top: 20px;
}

.decode-result {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Скелетон во время расшифровки */
.decode-result-skeleton .decode-result-title {
    margin-bottom: 8px;
}

.decode-skeleton-note {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 20px;
}

.decode-skeleton-table {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.decode-skeleton-thead,
.decode-skeleton-row {
    display: grid;
    grid-template-columns: 2fr 1fr 0.8fr 0.8fr 0.8fr;
    gap: 10px;
    padding: 12px 14px;
    align-items: center;
}

.decode-skeleton-thead {
    background: rgba(255, 255, 255, 0.04);
}

.decode-skeleton-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.decode-skeleton-cell {
    display: block;
    height: 14px;
    border-radius: 6px;
    min-width: 0;
}

.decode-skeleton-row .decode-skeleton-cell:nth-child(1) {
    width: 92%;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: decode-skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes decode-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 640px) {
    .decode-skeleton-thead,
    .decode-skeleton-row {
        grid-template-columns: 1.4fr 0.9fr 0.7fr 0.7fr 0.7fr;
        gap: 6px;
        padding: 10px 10px;
    }

    .decode-skeleton-cell {
        height: 12px;
    }
}

.decode-result-title {
    font-size: 20px;
    margin: 0 0 20px;
}

.decode-result-actions {
    margin-bottom: 20px;
}

.decode-result-table-wrap {
    overflow-x: auto;
}

.decode-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.decode-result-table th,
.decode-result-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.decode-result-table th {
    color: var(--color-text-muted);
    font-weight: 500;
}

.decode-result-table td {
    color: var(--color-text);
}

/* Тосты (decode) */
.decode-toast-host {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 32px));
}

.decode-toast {
    pointer-events: auto;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-text);
    background: var(--color-header);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.decode-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.decode-toast--error {
    border-color: rgba(255, 120, 120, 0.35);
}

.decode-toast--success {
    border-color: rgba(120, 200, 160, 0.4);
}

.decode-toast--info {
    border-color: rgba(120, 150, 255, 0.35);
}

@media (max-width: 768px) {
    .decode-toast-host {
        bottom: 20px;
        max-width: calc(100vw - 24px);
    }

    .decode-toast {
        font-size: 13px;
        padding: 11px 16px;
    }
}
