/* Contact form "Trao đổi về nhu cầu pháp lý của bạn" (homepage + service pages), dark
   background. Inline errors under each field and the in-place thank-you view driven by
   js/contact-form.js through [data-contact-view="form" | "thanks"]. */
.contact-box[data-contact-view="thanks"] > form,
.contact-box[data-contact-view="form"] > .contact-thanks { display: none !important; } /* beats the homepage form's inline display:flex */

.contact-field { display: flex; flex-direction: column; gap: 10px; }
.contact-box .contact-field > label { display: block; }
.contact-field > label, .contact-box label > span { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #C6CFD8; }
.contact-field > label b { color: #F2A79B; font-weight: 500; }
.contact-field [aria-invalid="true"] { border-color: #F2A79B !important; }
.contact-error { font-size: 13px; line-height: 1.5; color: #F2A79B; }
.contact-error:empty { display: none; }
.contact-file-field input[type="file"] { width: 100%; height: auto !important; padding: 4px 0 !important; border: 0 !important; color: #C6CFD8; font: 14px/1.5 "Inter","Helvetica Neue",Arial,sans-serif !important; }
.contact-file-field input[type="file"]::file-selector-button { margin-right: 14px; padding: 11px 16px; border: 1px solid #B58A43; border-radius: 2px; background: #B58A43; color: #261B17; font: 500 11px "Inter","Helvetica Neue",Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background 180ms,border-color 180ms,color 180ms,transform 180ms; }
.contact-file-field input[type="file"]:hover::file-selector-button { background: #F3EEE4; border-color: #F3EEE4; transform: translateY(-1px); }
.contact-file-field input[type="file"]:focus-visible { outline: 2px solid #C0902F; outline-offset: 3px; }
.contact-file-help { color: #9EABB8; font-size: 12px; line-height: 1.5; }

.contact-thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: clamp(8px,2vw,24px) 0; color: #F3EEE4; animation: contactThanksIn 420ms cubic-bezier(.22,1,.36,1) both; }
.contact-thanks-icon { font-size: 56px; line-height: 1; color: #C0902F; }
.contact-thanks-title { margin: 18px 0 0; font-family: "Cormorant Garamond",serif; font-weight: 400; font-size: clamp(32px,3.6vw,48px); line-height: 1.1; letter-spacing: -.02em; }
.contact-thanks-title:focus { outline: none; }
.contact-thanks-text { max-width: 52ch; margin: 14px 0 24px; font-size: 16px; line-height: 1.6; color: #C6CFD8; }
.contact-thanks-urgent { max-width: 52ch; margin: 0 0 24px; padding: 16px 20px; border-left: 2px solid #C0902F; background: rgba(245,240,230,.06); }
.contact-thanks-urgent-title { margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #C0902F; }
.contact-thanks-urgent-text { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: #C6CFD8; }
.contact-thanks-hotline { margin: 0; font-size: 15px; line-height: 1.5; color: #F5F0E6; }
.contact-thanks-hotline a { color: #F5F0E6; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(192,144,47,.7); text-underline-offset: 3px; }
.contact-thanks-hotline a:hover { color: #E3C07E; }
.contact-thanks-hotline a:focus-visible { outline: 2px solid #C0902F; outline-offset: 3px; }
.contact-thanks-motto { margin: 0 0 24px; font-size: 13px; color: #C6CFD8; }
.contact-thanks-again { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; background: transparent; border: 1px solid rgba(245,240,230,.28); border-radius: 2px; color: #F5F0E6; font: 500 12px "Inter","Helvetica Neue",Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background 280ms, color 280ms; }
.contact-thanks-again:hover { background: #F5F0E6; color: #261B17; }
.contact-thanks-again:focus-visible { outline: 2px solid #C0902F; outline-offset: 3px; }
@keyframes contactThanksIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .contact-thanks { animation: none; } }

/* Keyword chips under the area select; hidden until an area is chosen. */
.contact-chips-box:not([data-chips-area]) { display: none; }
.contact-chips-box { display: flex; flex-direction: column; gap: 10px; }
.contact-chips-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.contact-chips-hint { margin: 0; font-size: 13px; line-height: 1.5; color: #C6CFD8; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid rgba(245,240,230,.28); border-radius: 999px; color: #F5F0E6; font: 400 14px/1.3 "Inter","Helvetica Neue",Arial,sans-serif; text-align: left; cursor: pointer; transition: background 200ms, border-color 200ms, color 200ms; }
.contact-chip:hover { background: rgba(245,240,230,.08); border-color: #C0902F; }
.contact-chip:focus-visible { outline: 2px solid #C0902F; outline-offset: 2px; }
.contact-chip:disabled { opacity: .5; cursor: not-allowed; }
.contact-chip-other { border-style: dashed; }

/* Hint in the message box, readable on the dark background. */
.contact-field textarea::placeholder { color: rgba(198,207,216,.7); }
/* Phones: fields keep clear of the hotline pill when the browser scrolls them into view. */
@media (max-width: 767px) { .contact-field { scroll-margin-top: 128px; } }
