/* Contact dialog and buttons. Palette follows the site: navy #1e3c72, teal #4acaa8. */

/* Buttons that open the dialog */
.cf-open {
    display: inline-block;
    background: #1e3c72;
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    padding: .8em 1.6em;
    text-align: center;
    white-space: normal;
    -webkit-appearance: none;
    appearance: none;
}
.cf-open:hover { background: #2d5aa8; }
.cf-open:active { background: #16305c; }
.cf-open:focus-visible { outline: 3px solid #1e3c72; outline-offset: 3px; }
.cf-open.cf-large { font-size: 1.15em; padding: .9em 1.8em; }

/* Text-style button used in the sidebar header */
.link-button {
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    height: auto;
    line-height: inherit;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}
.link-button:hover { border-bottom-color: #ffffff; }
.link-button:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* Dialog */
html.cf-lock { overflow: hidden; }
.cf-dialog {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: #333333;
    max-height: 92vh;
    max-width: 600px;
    overflow: auto;
    padding: 0;
    width: 92vw;
}
.cf-dialog::backdrop { background: rgba(15, 30, 55, 0.6); }
.cf-head {
    align-items: center;
    background: #1e3c72;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 1em 1.25em;
}
.cf-head h2 { color: #ffffff !important; font-size: 1.2rem; line-height: 1.3; margin: 0; }
.cf-close {
    background: none;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.8rem;
    height: 2em;
    line-height: 1;
    padding: 0;
    width: 2em;
}
.cf-close:hover { background: rgba(255, 255, 255, 0.18); }
.cf-close:focus-visible { outline: 3px solid #ffffff; }
.cf-body, .cf-done { padding: 1.25em; }
.cf-intro { color: #555555; font-size: .95rem; line-height: 1.55; margin: 0 0 1em 0; }
.cf-grid { display: grid; gap: .9em 1em; grid-template-columns: 1fr 1fr; margin-bottom: .9em; }
.cf-field { color: #333333; display: block; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.cf-full { margin-bottom: .9em; }
.cf-dialog input[type="text"],
.cf-dialog input[type="email"],
.cf-dialog input[type="tel"],
.cf-dialog input[type="datetime-local"],
.cf-dialog textarea {
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    box-shadow: none;
    box-sizing: border-box;
    color: #222222;
    display: block;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    height: auto;
    line-height: 1.4;
    margin-top: .35em;
    padding: .6em .7em;
    width: 100%;
}
.cf-dialog textarea { resize: vertical; }
.cf-dialog input:focus,
.cf-dialog textarea:focus { border-color: #1e3c72; box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.2); outline: none; }
.cf-slots { border: 1px solid #d5dbe5; border-radius: 8px; margin: 0 0 .9em 0; padding: .6em .9em .2em .9em; }
.cf-slots legend { color: #1e3c72; font-size: .9rem; font-weight: 700; padding: 0 .4em; }
.cf-slots .cf-field { margin-bottom: .6em; }
.cf-dialog:not(.cf-readiness) .cf-slots,
.cf-dialog:not(.cf-readiness) .cf-r { display: none; }
.cf-hp { height: 1px; left: -10000px; opacity: 0; overflow: hidden; pointer-events: none; position: absolute; top: auto; width: 1px; }
.cf-status { color: #1e3c72; font-size: .92rem; min-height: 1.4em; margin: 0 0 .6em 0; }
.cf-status.cf-error { color: #b42318; font-weight: 700; }
.cf-actions { display: flex; flex-wrap: wrap; gap: .75em; justify-content: flex-end; }
.cf-cancel, .cf-submit {
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    padding: .7em 1.5em;
    -webkit-appearance: none;
    appearance: none;
}
.cf-cancel { background: #ffffff; border: 1px solid #b8c0cc; color: #333333; }
.cf-cancel:hover { background: #f2f4f7; }
.cf-submit { background: #1e3c72; border: 0; color: #ffffff; }
.cf-submit:hover { background: #2d5aa8; }
.cf-submit:disabled { background: #7f8fb0; cursor: default; }
.cf-fine { color: #667085; font-size: .8rem; margin: .9em 0 0 0; }
.cf-done-msg { color: #333333; font-size: 1.05rem; line-height: 1.6; margin: .5em 0 1.25em 0; }
@media screen and (max-width: 560px) {
    .cf-grid { grid-template-columns: 1fr; }
    .cf-dialog { max-height: 96vh; width: 96vw; }
    .cf-body, .cf-done { padding: 1em; }
    .cf-actions { flex-direction: column-reverse; }
    .cf-cancel, .cf-submit { width: 100%; }
}
