.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 360px;
    min-height: 360px;
    padding: 18px;
    width: min(480px, 100%);
}
.contact-card .terms-heading { padding-bottom: 8px; }
.contact-card .terms-heading h1 { font-size: 28px; line-height: 1.1; margin-bottom: 6px; padding-right: 20px; }
.contact-card .terms-heading p { font-size: 12px; line-height: 1.4; max-width: none; }

.contact-details {
    border-bottom: 1px solid var(--line);
    display: grid;
    font-size: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    line-height: 1.4;
    margin: 0 0 6px;
    padding: 6px 0;
}

.contact-details > div {
    align-items: start;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding-right: 20px;
}

.contact-details > div:last-child {
    border-left: 1px solid var(--line);
    padding: 0 0 0 22px;
}
.contact-details .ui-icon { height: 24px; width: 24px; }
.contact-details > div > dl { margin: 0; min-width: 0; }

.contact-details dt {
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0;
}

.contact-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.contact-details a {
    color: #045eb7;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.contact-details a:hover {
    color: var(--ink);
}

.contact-unavailable {
    color: var(--muted);
}

.contact-card .survey-back-link {
    font-size: 12px;
}
.contact-form { display: grid; gap: 8px; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.contact-scroll { min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-color: #9aacc4 #edf1f6; scrollbar-gutter: stable; scrollbar-width: thin; }
.contact-form h2 { font-family: var(--font-display); font-size: 18px; line-height: 1.2; margin: 0 0 6px; }
.contact-fields { display: grid; gap: 8px 14px; grid-template-columns: repeat(2, minmax(0, 220px)); }
.contact-field { min-width: 0; }
.contact-field label { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.contact-field label span { font-weight: 400; }
.contact-required { color: var(--orange); }
.contact-input { align-items: center; border: 1px solid #bccbe0; border-radius: 5px; display: flex; gap: 8px; padding-left: 8px; transition: border-color .2s ease; }
.contact-input:focus-within { border-color: #244f84; }
.contact-input .ui-icon { height: 16px; width: 16px; }
.contact-input input, .contact-input textarea { background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); font: inherit; font-size: var(--compact-control-font-size); min-width: 0; outline: 0; padding: 5px 8px 5px 0; width: 100%; }
.contact-input input { height: calc(var(--compact-control-height) - 2px); }
.contact-input input:focus, .contact-input textarea:focus { box-shadow: none; }
.contact-input input::placeholder, .contact-input textarea::placeholder { color: #7486a2; }
.contact-message-field { grid-column: 1 / -1; }
.contact-textarea { align-items: flex-start; }
.contact-textarea .ui-icon { margin-top: 7px; }
.contact-input textarea { min-height: 52px; resize: vertical; }
.contact-actions { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.contact-send { background: var(--orange); }
.contact-send:hover { background: #000; box-shadow: none; }
.contact-send:disabled { cursor: wait; opacity: .65; }
.contact-status { color: #078b5a; font-size: 12px; margin: 0 0 12px; }
@media (max-width: 640px) { .contact-card { padding: 18px; } .contact-details > div { padding-right: 8px; gap: 8px; } .contact-details > div:last-child { padding: 0 0 0 10px; } .contact-details .ui-icon { height: 20px; width: 20px; } .contact-fields { grid-template-columns: 1fr; } .contact-actions { gap: 8px; } .contact-send { padding: 0 10px; } }
