/* VIRASAT — PREMIUM INTERFACE REFINEMENT */

.vcj-journal {
    --heritage-ink: #35251b;
    --heritage-muted: #654c35;
    --heritage-border: #b49a70;
    --heritage-paper: #f1e5cc;
    --heritage-accent: #713c29;
}

/* CONTACT TYPOGRAPHY */

.vcj-form-paper form,
.vcj-form-paper label,
.vcj-form-paper input,
.vcj-form-paper textarea,
.vcj-form-paper button,
.vcj-form-paper select,
.vr-service-picker {
    font-family: "Manrope", "Inter", Arial, sans-serif !important;
    letter-spacing: normal !important;
}

.vcj-form-paper label {
    color: #35251b !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    opacity: 1 !important;
    margin-bottom: 10px !important;
    text-shadow: 0 1px 0 #ffffff50;
}

.vcj-form-heading p {
    color: #654c35 !important;
    font-weight: 500 !important;
}

.vcj-form-paper form {
    position: relative !important;
    gap: 24px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.vcj-form-paper form::before,
.vcj-form-paper form::after {
    display: none !important;
    content: none !important;
}

.vcj-form-paper input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.vcj-form-paper textarea {
    display: block;
    color: #302219 !important;
    background: #fff8e74d !important;
    border: 1px solid #bba47d !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 15px 16px !important;
    min-height: 50px;
    box-shadow: inset 0 2px 5px #60452208 !important;
    transition: border-color .2s ease,
                box-shadow .2s ease,
                background .2s ease;
}

.vcj-form-paper input::placeholder,
.vcj-form-paper textarea::placeholder {
    color: #80694f !important;
    opacity: 1 !important;
}

.vcj-form-paper input:focus,
.vcj-form-paper textarea:focus {
    background: #fff8e9 !important;
    border-color: #795333 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px #9c795c20 !important;
}

.vcj-form-paper textarea {
    min-height: 150px !important;
    line-height: 1.8 !important;
    background-image: repeating-linear-gradient(
        transparent 0,
        transparent 29px,
        #aa90631a 30px
    ) !important;
}

.vcj-form-paper button[type="submit"] {
    min-height: 54px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 5px 12px #4b281d25 !important;
}

.vcj-form-paper button[type="submit"]:hover {
    background: #783f2b !important;
}

/* CUSTOM HERITAGE SERVICE SELECTOR */

.vr-service-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

.vr-service-trigger {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #b49a70;
    border-radius: 6px;
    background: #f8eed9;
    color: #35251b;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease,
                box-shadow .2s ease,
                border-color .2s ease;
}

.vr-service-trigger:hover,
.vr-service-trigger[aria-expanded="true"] {
    background: #fff6e3;
    border-color: #96734b;
    box-shadow: 0 3px 12px #63452515;
}

.vr-service-trigger:focus-visible,
.vr-service-option:focus-visible {
    outline: 2px solid #795333;
    outline-offset: 2px;
}

.vr-service-chevron {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid #65462e;
    border-bottom: 1.5px solid #65462e;
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
    margin-right: 4px;
}

.vr-service-trigger[aria-expanded="true"]
.vr-service-chevron {
    transform: rotate(225deg);
}

.vr-service-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 7px;
    background: #f5e8cd;
    border: 1px solid #b49a70;
    border-radius: 8px;
    box-shadow:
        0 12px 30px #38261830,
        inset 0 0 0 3px #e3d0ad;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease,
                transform .18s ease,
                visibility .18s ease;
    max-height: 330px;
    overflow-y: auto;
}

.vr-service-picker.is-open .vr-service-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vr-service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 43px;
    padding: 11px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #493323;
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease;
}

.vr-service-option:hover,
.vr-service-option:focus-visible {
    background: #e4d1ad;
}

.vr-service-option[aria-checked="true"] {
    background: #e8d6b5;
    color: #50331f;
    font-weight: 650;
}

.vr-service-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.vr-option-number {
    color: #8c6d43;
    font-family: Georgia, serif;
    font-size: 12px;
    min-width: 25px;
}

.vr-option-check {
    margin-left: auto;
    color: #795333;
    opacity: 0;
}

.vr-service-option[aria-checked="true"]
.vr-option-check {
    opacity: 1;
}

/* ORIGINAL SELECT REMAINS FOR FORM SUBMISSION */

.vr-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* REMOVE REDUNDANT CONTACT DECORATION */

.vr-redundant-contact-heading,
.vr-redundant-contact-seal,
.vr-legacy-service-panel {
    display: none !important;
}

/* COMPACT HERITAGE MODAL */

.vr-compact-modal {
    box-sizing: border-box !important;
    width: min(1060px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    max-height: calc(100dvh - 36px) !important;
    overscroll-behavior: contain;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #98794e transparent;
}

.vr-compact-modal h1,
.vr-compact-modal h2 {
    font-size: clamp(28px, 3.3vw, 46px) !important;
    line-height: 1.08 !important;
    margin-top: 8px !important;
    margin-bottom: 14px !important;
}

.vr-compact-modal p {
    font-size: clamp(13px, 1.05vw, 16px) !important;
    line-height: 1.6 !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
}

.vr-compact-modal li {
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

.vr-compact-modal img {
    object-fit: contain;
}

.vr-compact-modal hr {
    margin: 12px 0 !important;
}

.vr-compact-modal .vr-modal-brand {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
}

.vr-modal-brand img {
    width: 44px !important;
    height: 44px !important;
}

.vr-modal-brand h2,
.vr-modal-brand h3 {
    font-size: 24px !important;
    margin: 8px 0 !important;
}

.vr-modal-art {
    min-height: 0 !important;
    max-height: 390px !important;
}

.vr-modal-art svg {
    max-height: 230px !important;
    max-width: 100% !important;
}

@media (min-width: 901px) and (max-height: 850px) {

    .vr-compact-modal {
        padding: 20px !important;
    }

    .vr-compact-modal h2 {
        font-size: 36px !important;
    }

    .vr-compact-modal li {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .vr-modal-art {
        max-height: 320px !important;
    }

    .vr-modal-art svg {
        max-height: 190px !important;
    }
}

/* RESPONSIVE REFINEMENTS */

@media (max-width: 768px) {

    .vcj-form-paper {
        padding: 24px 18px !important;
    }

    .vcj-form-paper label {
        font-size: 13px !important;
    }

    .vcj-form-paper input,
    .vcj-form-paper textarea,
    .vr-service-trigger {
        font-size: 16px !important;
    }

    .vr-compact-modal {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        padding: 16px !important;
    }

    .vr-compact-modal h2 {
        font-size: 30px !important;
    }

    .vr-modal-art {
        max-height: 240px !important;
    }

    .vr-modal-art svg {
        max-height: 160px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vr-service-picker *,
    .vr-compact-modal * {
        transition: none !important;
        animation: none !important;
    }
}