/* Contact form. Matches the look of the Elementor contact forms it replaces:
   bold bordered fields, placeholder labels and a full-width outlined button.
   Tweak the variables below to restyle a site's form. */

.vjv-contact {
    --vjv-c-ink: #111111;
    --vjv-c-border: #111111;
    --vjv-c-muted: #555555;
    --vjv-c-danger: #c13515;
    --vjv-c-bg: #ffffff;

    box-sizing: border-box;
    width: 100%;
    color: var(--vjv-c-ink);
    font-size: 16px;
    line-height: 1.5;
}

.vjv-contact *,
.vjv-contact *::before,
.vjv-contact *::after {
    box-sizing: border-box;
}

.vjv-contact [hidden] {
    display: none !important;
}

.vjv-contact__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.vjv-contact .vjv-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.vjv-contact__field {
    margin: 0 0 12px;
}

.vjv-contact__field > label:not(.vjv-contact__sr) {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.vjv-contact .vjv-contact__input {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 2px solid var(--vjv-c-border);
    border-radius: 0;
    background: var(--vjv-c-bg);
    color: var(--vjv-c-ink);
    font: inherit;
    font-size: 16px;
    box-shadow: none;
}

.vjv-contact textarea.vjv-contact__input {
    min-height: 120px;
    resize: vertical;
}

.vjv-contact .vjv-contact__input:focus {
    outline: 3px solid rgba(17, 17, 17, 0.15);
    outline-offset: 0;
}

.vjv-contact .vjv-contact__input[aria-invalid="true"] {
    border-color: var(--vjv-c-danger);
}

.vjv-contact__error {
    margin: 4px 0 0;
    color: var(--vjv-c-danger);
    font-size: 13px;
}

.vjv-contact__topic {
    margin: 4px 0 12px;
    padding: 0;
    border: 0;
}

.vjv-contact .vjv-contact__topic legend {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    border: 0; /* themes often draw a line under legends */
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
}

.vjv-contact__topic label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 6px 0;
    font-size: 15px;
    cursor: pointer;
}

.vjv-contact__topic input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--vjv-c-ink);
}

.vjv-contact__booking {
    display: grid;
    grid-template-columns: 1fr 1fr 110px;
    gap: 0 12px;
}

@media (max-width: 560px) {
    .vjv-contact__booking {
        grid-template-columns: 1fr 1fr;
    }
    .vjv-contact__booking .vjv-contact__field:last-child {
        grid-column: 1 / -1;
    }
}

.vjv-contact .vjv-contact__button {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 4px 0 0;
    padding: 12px 20px;
    border: 2px solid var(--vjv-c-border);
    border-radius: 0;
    background: transparent;
    color: var(--vjv-c-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.vjv-contact .vjv-contact__button:hover,
.vjv-contact .vjv-contact__button:focus-visible {
    background: var(--vjv-c-ink);
    color: var(--vjv-c-bg);
}

.vjv-contact .vjv-contact__button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.vjv-contact__fineprint {
    margin: 10px 0 0;
    color: var(--vjv-c-muted);
    font-size: 12px;
}

.vjv-contact__fineprint a {
    color: inherit;
}

.vjv-contact__alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 4px solid var(--vjv-c-danger);
    background: #fff5f3;
    color: var(--vjv-c-danger);
    font-size: 14px;
}

.vjv-contact__success {
    padding: 20px;
    border: 2px solid var(--vjv-c-border);
    font-size: 16px;
}
