/* Полный сброс hover/focus эффектов темы для всего портала */
.vietved-client-portal a,
.vietved-client-portal button {
    text-decoration: none !important;
}

.vietved-client-portal a:not(.vcp-contact-link):hover,
.vietved-client-portal a:not(.vcp-contact-link):focus,
.vietved-client-portal a:not(.vcp-contact-link):active,
.vietved-client-portal button:hover,
.vietved-client-portal button:focus,
.vietved-client-portal button:active {
    color: inherit !important;
    background-color: inherit !important;
    background-image: inherit !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
}

.vietved-client-portal {
    --vcp-bg: transparent;
    --vcp-card: #ffffff;
    --vcp-text: #1f2937;
    --vcp-muted: #64748b;
    --vcp-border: #e2e8f0;
    --vcp-primary: #0f766e;
    --vcp-primary-strong: #115e59;
    --vcp-warning: #92400e;
    --vcp-danger: #b91c1c;
    --vcp-success: #166534;
    --vcp-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background: var(--vcp-bg);
    border: none;
    border-radius: 20px;
    padding: 20px;
    color: var(--vcp-text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.vietved-client-portal,
.vietved-client-portal * {
    box-sizing: border-box;
}

.vcp-shell {
    max-width: 980px;
    margin: 0 auto;
    min-width: 0;
}

.vcp-auth-card,
.vcp-cabinet-head,
.vcp-card {
    background: var(--vcp-card);
    border: 1px solid var(--vcp-border);
    border-radius: 16px;
    box-shadow: var(--vcp-shadow);
}

.vcp-auth-card {
    max-width: 520px;
    margin: 16px auto;
    padding: 22px;
}

.vcp-brand {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vcp-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.vcp-title {
    margin: 0;
    font-size: 26px !important;
    line-height: 1.2;
}

.vcp-subtitle {
    margin: 8px 0 12px;
    color: var(--vcp-muted);
    font-size: 14px;
    line-height: 1.5;
}

.vcp-login-form {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.vcp-field {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--vcp-muted);
    font-weight: 600;
}

.vcp-field input {
    border: 1px solid var(--vcp-border);
    border-radius: 10px;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    color: var(--vcp-text);
    background: #fff;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.vcp-field input:focus {
    outline: none;
    border-color: var(--vcp-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.vcp-btn {
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s ease;
    height: 42px;
    padding: 0 16px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: none !important;
}

.vcp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.vcp-btn--primary {
    background: linear-gradient(180deg, var(--vcp-primary) 0%, var(--vcp-primary-strong) 100%) !important;
    color: #fff !important;
}

.vcp-btn--primary:hover:not(:disabled),
.vcp-btn--primary:focus:not(:disabled),
.vcp-btn--primary:active:not(:disabled) {
    background: linear-gradient(180deg, var(--vcp-primary) 0%, var(--vcp-primary-strong) 100%) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 0.9;
}

.vcp-btn--primary:disabled {
    background: linear-gradient(180deg, var(--vcp-primary) 0%, var(--vcp-primary-strong) 100%) !important;
    color: #fff !important;
    opacity: 0.5;
    cursor: not-allowed !important;
}

.vcp-btn--ghost {
    background: #fff !important;
    border: 1px solid var(--vcp-border) !important;
    color: var(--vcp-text) !important;
}

.vcp-btn--ghost:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
}

.vcp-btn--ghost:hover:not(:disabled),
.vcp-btn--ghost:focus:not(:disabled),
#vcp-booking-root .vcp-btn--ghost:hover:not(:disabled),
#vcp-booking-root .vcp-btn--ghost:focus:not(:disabled),
#vietved-client-portal .vcp-btn--ghost:hover:not(:disabled),
#vietved-client-portal .vcp-btn--ghost:focus:not(:disabled) {
    background: #fff !important;
    color: var(--vcp-text) !important;
    border-color: var(--vcp-border) !important;
    box-shadow: none !important;
    transform: scale(1.03) !important;
    opacity: 1 !important;
}

.vcp-btn--ghost:active:not(:disabled),
#vcp-booking-root .vcp-btn--ghost:active:not(:disabled),
#vietved-client-portal .vcp-btn--ghost:active:not(:disabled) {
    background: #fff !important;
    color: var(--vcp-text) !important;
    border-color: var(--vcp-border) !important;
    box-shadow: none !important;
    transform: scale(0.98) !important;
    opacity: 1 !important;
}

.vcp-btn--orange,
#vcp-booking-root .vcp-btn--orange,
#vietved-client-portal .vcp-btn--orange {
    background: #f97316 !important;
    color: #fff !important;
    border: 1px solid #f97316 !important;
}

.vcp-btn--orange:hover:not(:disabled),
.vcp-btn--orange:focus:not(:disabled),
#vcp-booking-root .vcp-btn--orange:hover:not(:disabled),
#vietved-client-portal .vcp-btn--orange:hover:not(:disabled) {
    background: #ea6c0a !important;
    border-color: #ea6c0a !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35) !important;
}

.vcp-btn--orange:active:not(:disabled),
#vcp-booking-root .vcp-btn--orange:active:not(:disabled),
#vietved-client-portal .vcp-btn--orange:active:not(:disabled) {
    background: #c2570a !important;
    border-color: #c2570a !important;
    color: #fff !important;
    transform: scale(0.98) !important;
}

.vcp-btn:active:not(:disabled),
.vcp-btn.is-pressed:not(:disabled) {
    box-shadow: none !important;
    transform: none !important;
}

.vcp-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.vcp-cabinet-head {
    margin-top: 0;
    padding: 10px 16px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vcp-shell[data-view="cabinet"] {
    margin-top: 0;
}

.vcp-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.vcp-message {
    min-height: 20px;
    font-size: 13px;
    font-weight: 600;
}

.vcp-message[data-type="error"] {
    color: var(--vcp-danger);
}

.vcp-message[data-type="success"] {
    color: var(--vcp-success);
}

.vcp-message[data-type="info"] {
    color: #1d4ed8;
}

.vcp-booking-root {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.vcp-card {
    padding: 16px;
    min-width: 0;
}

.vcp-card-title {
    margin: 12px 0;
    font-size: 18px;
    line-height: 1.3;
}

.vcp-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.vcp-grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#vcp-booking-root .vcp-card + .vcp-card {
    margin-top: 16px;
}

.vcp-kv {
    border: 1px solid var(--vcp-border);
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
}

.vcp-kv__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vcp-muted);
    margin-bottom: 6px;
}

.vcp-kv__value {
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.vcp-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.vcp-badge--passport_pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.vcp-badge--names_submitted {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.vcp-badge--availability_check {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.vcp-badge--awaiting_payment {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.vcp-badge--payment_pending {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.vcp-badge--payment_received,
.vcp-badge--paid {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.vcp-passports {
    display: grid;
    gap: 12px;
}

.vcp-passport-slot {
    border: 1px solid #d4e1ef;
    background:
        radial-gradient(140% 120% at 100% 0%, rgba(14, 165, 233, 0.07) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.vcp-slot-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
}

.vcp-slot-index {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.vcp-slot-status {
    font-size: 12px;
    font-weight: 700;
    color: #155e75;
    background: #ecfeff;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 4px 10px;
    overflow-wrap: anywhere;
    text-align: right;
}

.vcp-file-row {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 0;
}

.vcp-file-control {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid #cfdced;
    border-radius: 14px;
    background: #ffffff;
    min-height: 62px;
    padding: 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vcp-file-control:focus-within {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.vcp-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vcp-file-pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #bed0e4;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.vcp-file-pick:hover {
    border-color: #94a3b8;
    background: #eff6ff;
    transform: translateY(-1px);
}

.vcp-file-meta {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.vcp-file-title {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.vcp-file-name {
    font-size: 14px;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: anywhere;
}

.vcp-file-name.is-selected {
    color: #0f766e;
    font-weight: 700;
}

.vcp-name-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
}

.vcp-passport-doc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
}

.vcp-slot-flags {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-left: 8px;
}

.vcp-slot-flags .vcp-checkbox {
    gap: 8px;
}

.vcp-input-group {
    display: grid;
    gap: 7px;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    min-width: 0;
}

.vcp-input-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.vcp-input-group input[type="text"] {
    border: 1px solid #cfdced;
    border-radius: 10px;
    background: #fbfdff;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 16px;
    color: #0f172a;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vcp-input-group input[type="text"]::placeholder {
    color: #94a3b8;
}

.vcp-input-group input[type="text"]:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    background: #ffffff;
}

.vcp-file-row .vcp-btn--ghost {
    min-height: 42px;
    border-radius: 12px;
    border-color: #bfd2e6;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.vcp-file-row .vcp-btn--ghost:hover:not(:disabled) {
    border-color: #9eb7d3;
    background: #f8fbff;
}

.vcp-slot-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.vcp-passport-footer {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.vcp-pay-top-row {
    margin: 10px 0 12px;
}

.vcp-pay-bottom-row {
    margin-top: 10px;
}

.vcp-pay-btn {
    display: block !important;
    width: 100% !important;
}

.vcp-checkbox {
    display: inline-flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--vcp-muted);
    overflow-wrap: anywhere;
    cursor: pointer;
    line-height: 1.2;
}

.vcp-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    margin-top: 1px;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.vcp-checkbox input[type="checkbox"]:checked {
    background: #0f172a;
    border-color: #0f172a;
}

.vcp-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.vcp-qr-wrap {
    display: grid;
    gap: 10px;
}

body.vcp-modal-open {
    overflow: hidden;
    touch-action: none;
}

.vcp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.54);
}

.vcp-modal[hidden] {
    display: none !important;
}

.vcp-modal__dialog {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 24px);
    overflow: auto;
    border: 1px solid var(--vcp-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.26);
    padding: 14px;
}

.vcp-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.vcp-modal__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.vcp-modal__close {
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    box-shadow: none !important;
}

.vcp-modal__close:hover,
.vcp-modal__close:focus,
.vcp-modal__close:active {
    background: transparent !important;
    color: #0f172a !important;
    box-shadow: none !important;
    border: none !important;
    transform: scale(1.2);
}

.vcp-qr-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--vcp-muted);
    min-width: 0;
}

.vcp-qr-box {
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.vcp-qr-image {
    display: block;
    width: min(280px, 100%);
    height: auto;
    border: 1px solid var(--vcp-border);
    border-radius: 10px;
    background: #fff;
}

.vcp-qr-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--vcp-muted);
    display: grid;
    gap: 4px;
    overflow-wrap: anywhere;
}

.vcp-qr-timer {
    margin-top: 10px;
}

.vcp-qr-timer-row {
    font-size: 13px;
    color: var(--vcp-muted);
    margin-bottom: 6px;
}

.vcp-qr-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.vcp-qr-progress-bar {
    height: 100%;
    background: #0f766e;
    border-radius: 2px;
    transition: width 1s linear;
}

.vcp-qr-progress-bar--urgent {
    background: #dc2626;
}

.vcp-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.vcp-link:hover {
    text-decoration: underline;
}

/* Контактный модал — десктоп */
#vcp-contact-modal {
    align-items: center;
}

#vcp-contact-modal .vcp-modal__dialog {
    max-width: 440px;
}

/* Контактный модал — мобильный слайд снизу */
@media (max-width: 600px) {
    #vcp-contact-modal {
        align-items: flex-end;
        padding: 0;
    }

    #vcp-contact-modal .vcp-modal__dialog {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        animation: vcp-slide-up 0.3s ease;
    }
}

@keyframes vcp-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.vcp-logout-icon-btn {
    padding: 6px !important;
    width: 36px;
    height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.vcp-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.vcp-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.vcp-contact-link:hover {
    opacity: 0.85;
    text-decoration: none;
}

.vcp-contact-link--wa {
    background: #25d366 !important;
    color: #fff !important;
}

.vcp-contact-link--wa:hover,
.vcp-contact-link--wa:focus,
.vcp-contact-link--wa:active {
    background: #25d366 !important;
    color: #fff !important;
    filter: brightness(0.9);
}

.vcp-contact-link--tg {
    background: #229ed9 !important;
    color: #fff !important;
}

.vcp-contact-link--tg:hover,
.vcp-contact-link--tg:focus,
.vcp-contact-link--tg:active {
    background: #229ed9 !important;
    color: #fff !important;
    filter: brightness(0.9);
}

.vcp-qr-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--vcp-muted);
    line-height: 1.5;
}

.vcp-accordion {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vcp-accordion-item {
    border: 1px solid var(--vcp-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.vcp-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent !important;
    border: none !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--vcp-text) !important;
    cursor: pointer;
    text-align: left;
    gap: 8px;
    box-shadow: none !important;
    outline: none !important;
}

.vcp-accordion-btn:hover,
.vcp-accordion-btn:focus,
.vcp-accordion-btn:active,
.vcp-accordion-btn.is-open {
    background: transparent !important;
    color: var(--vcp-text) !important;
    box-shadow: none !important;
}

.vcp-accordion-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.vcp-accordion-btn.is-open .vcp-accordion-arrow {
    transform: rotate(90deg);
}

.vcp-accordion-body {
    border-top: 1px solid var(--vcp-border);
    padding: 12px 16px;
}

.vcp-accordion-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--vcp-text);
}

.vcp-accordion-content ul {
    margin: 6px 0;
    padding-left: 18px;
}

.vcp-accordion-content li {
    margin-bottom: 4px;
}

.vcp-warning {
    color: var(--vcp-warning);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.vcp-slot-actions .vcp-warning {
    display: inline-flex;
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

/* Безрамочный режим страницы кабинета: убираем хедер сайта и системный заголовок страницы. */
body.vietved-portal-page [data-elementor-type="header"],
body.vietved-portal-page #masthead,

body.vietved-portal-page .content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.vietved-portal-page .site-container,
body.vietved-portal-page .content-container.site-container {
    max-width: 100% !important;
}

body.vietved-portal-page .entry.single-entry,
body.vietved-portal-page .entry-content-wrap,
body.vietved-portal-page .content-bg,
body.vietved-portal-page .site {
    box-shadow: none !important;
    background: transparent !important;
}

body.vietved-portal-page .entry-content-wrap,
body.vietved-portal-page .wp-site-blocks .content-area,
body.vietved-portal-page #primary,
body.vietved-portal-page #main {
    padding-top: 0 !important;
}

body.vietved-portal-page .entry-content-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

/* На странице кабинета отключаем промо-попапы, которые перекрывают кнопки. */
body.vietved-portal-page .jet-popup.jet-popup--show-state,
body.vietved-portal-page .jet-popup__overlay.jet-popup--show-state,
body.vietved-portal-page .jet-popup__container.jet-popup--show-state {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Cookie баннер на мобильных может перекрывать кнопки кабинета. */
body.vietved-portal-page .cookie-banner,
body.vietved-portal-page .cookie-modal {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 900px) {
    .vcp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .vcp-slot-status {
        text-align: left;
    }

    .vcp-slot-row,
    .vcp-slot-actions,
    .vcp-passport-footer,
    .vcp-qr-modes {
        flex-direction: column;
        align-items: stretch;
    }

    .vcp-slot-row > *,
    .vcp-slot-actions > *,
    .vcp-passport-footer > *,
    .vcp-qr-modes > * {
        width: 100%;
        min-width: 0;
    }

    .vcp-file-row > * {
        width: 100%;
        min-width: 0;
    }

    .vcp-file-control {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 8px;
    }

    .vcp-file-pick {
        width: 100%;
    }

    .vcp-name-grid {
        grid-template-columns: 1fr;
    }

    .vcp-head-actions {
        justify-content: stretch;
        width: 100%;
    }

    .vcp-head-actions > * {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .vietved-client-portal {
        border-radius: 12px;
        padding: 0;
    }

    .vcp-cabinet-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .js-vcp-edit-save,
    .js-vcp-edit-cancel {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    .vcp-title {
        font-size: 18px;
    }

    .vcp-grid {
        grid-template-columns: 1fr;
    }

    .vcp-grid--2col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vcp-slot-status {
        text-align: left;
    }

    .vcp-slot-row,
    .vcp-slot-actions,
    .vcp-passport-footer,
    .vcp-qr-modes {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .vcp-slot-row > *,
    .vcp-slot-actions > *,
    .vcp-passport-footer > *,
    .vcp-qr-modes > * {
        width: 100%;
        min-width: 0;
    }

    .vcp-slot-row .vcp-btn,
    .vcp-file-row .vcp-btn,
    .vcp-slot-actions .vcp-btn,
    .vcp-passport-footer .vcp-btn,
    .vcp-pay-top-row .vcp-btn,
    .vcp-pay-bottom-row .vcp-btn {
        width: 100%;
    }

    .vcp-checkbox {
        width: 100%;
        align-items: flex-start;
    }

    .vcp-card,
    .vcp-auth-card {
        padding: 12px;
    }

    .vcp-passport-slot {
        padding: 12px;
    }

    .vcp-input-group {
        padding: 8px;
    }

    .vcp-kv {
        padding: 8px;
    }

    .vcp-kv__value {
        font-size: 13px;
    }

    .vcp-modal {
        padding: 8px;
    }

    .vcp-modal__dialog {
        max-height: calc(100vh - 16px);
        border-radius: 14px;
        padding: 12px;
    }

    .vcp-modal__title {
        font-size: 18px;
    }
}

@media (min-width: 769px) {
    .vcp-file-row {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .vcp-file-row .vcp-btn {
        min-width: 170px;
    }

    .vcp-name-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vcp-pay-top-row .vcp-btn,
    .vcp-pay-bottom-row .vcp-btn {
        width: auto;
        min-width: 220px;
    }

    .vcp-modal {
        align-items: center;
        padding: 20px;
    }

    .vcp-modal__dialog {
        padding: 18px;
    }
}

/* ==========================================================================
   PASSPORT SLOT DELETE BUTTON
   ========================================================================== */

.vcp-slot-delete {
    margin-left: auto;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.vcp-slot-delete:hover {
    color: #ef4444 !important;
    background: none !important;
}

/* ==========================================================================
   NAMES SUBMITTED NOTICE
   ========================================================================== */

.vcp-names-submitted-notice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
    margin-top: 12px;
}

/* ==========================================================================
   PASSPORT CONFIRM MODAL
   ========================================================================== */

.vcp-passport-confirm-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 16px 0;
}

.vcp-passport-confirm-disclaimer {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    padding: 12px 14px;
    background: #fff8f0;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}

.vcp-modal__foot {
    padding: 16px 20px;
    /* border-top: 1px solid #e9eef5; */
}

/* ==========================================================================
   GUEST TYPE DROPDOWN
   ========================================================================== */

.vcp-guest-type-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.vcp-input-group select {
    border: 1px solid #cfdced;
    border-radius: 10px;
    background: #fbfdff;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 16px;
    color: #0f172a;
    width: 100%;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vcp-input-group select:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    background: #ffffff;
}

.vcp-input-group input[type="date"] {
    border: 1px solid #cfdced;
    border-radius: 10px;
    background: #fbfdff;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 16px;
    color: #0f172a;
    width: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vcp-input-group input[type="date"]:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    background: #ffffff;
}

@media (max-width: 500px) {
    .vcp-guest-type-row {
        grid-template-columns: 1fr;
    }

    .vcp-passport-doc-row {
        grid-template-columns: 1fr;
    }
}

/* ── Expiry banner ── */
.vcp-expiry-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.5;
}
.vcp-expiry-banner--expired {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #7f1d1d;
}
#vcp-expiry-timer {
    display: inline-block;
    background: #fcd34d;
    color: #78350f;
    font-weight: 700;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
