/* CHR.AZ — independent long-term rental request composer */
#chr-order-root {
  --co-ink: #132842;
  --co-muted: #53677d;
  --co-line: #d5dfeb;
  --co-blue: #164b82;
  --co-blue-dark: #123963;
  --co-accent: #17704a;
  --co-bg: #f1f5f9;
  --co-paper: #ffffff;
  --co-error: #b42318;
  color: var(--co-ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  width: 100%;
  margin: 0 auto;
  max-width: 1180px;
  text-align: left;
}
#chr-order-root, #chr-order-root *, #chr-order-root *::before, #chr-order-root *::after { box-sizing: border-box; }
#chr-order-root [hidden] { display: none !important; }
#chr-order-root button, #chr-order-root input, #chr-order-root select, #chr-order-root textarea { font: inherit; }
#chr-order-root button { text-transform: none; letter-spacing: normal; }
#chr-order-root .chr-order { background: var(--co-bg); border: 1px solid #dfe6ef; border-radius: 22px; padding: clamp(16px, 3.2vw, 38px); box-shadow: 0 18px 56px rgba(21,45,75,.09); }
#chr-order-root .chr-order__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
#chr-order-root .chr-order__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--co-ink); text-decoration: none; }
#chr-order-root .chr-order__logo { display: grid; place-items: center; width: 55px; height: 55px; background: var(--co-blue-dark); color: #fff; border-radius: 13px; font-size: 20px; font-weight: 850; letter-spacing: -.08em; }
#chr-order-root .chr-order__brand-lines { display: flex; flex-direction: column; line-height: 1.3; }
#chr-order-root .chr-order__brand-lines strong { font-size: 17px; letter-spacing: .05em; }
#chr-order-root .chr-order__brand-lines small { font-size: 12px; font-weight: 500; color: var(--co-muted); }
#chr-order-root .chr-order__languages { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#chr-order-root .chr-order__languages a { color: var(--co-blue-dark); text-decoration: none; border: 1px solid var(--co-line); background: #fff; padding: 7px 11px; min-width: 42px; border-radius: 9px; font-size: 13px; font-weight: 700; text-align: center; }
#chr-order-root .chr-order__languages a[aria-current="page"] { background: var(--co-blue-dark); border-color: var(--co-blue-dark); color: #fff; }
#chr-order-root .chr-order__intro { background: linear-gradient(125deg, #163c66, #1b588a); color: #fff; border-radius: 18px; padding: clamp(20px, 3.3vw, 34px); margin-bottom: 22px; position: relative; overflow: hidden; }
#chr-order-root .chr-order__intro::after { content: ""; position: absolute; width: 230px; height: 230px; right: -85px; top: -130px; border: 42px solid rgba(255,255,255,.065); border-radius: 50%; pointer-events: none; }
#chr-order-root .chr-order__eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: #b6d5f0; margin: 0 0 8px; }
#chr-order-root #chr-order-title { color: #fff; font-size: clamp(25px,3.3vw,38px); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
#chr-order-root .chr-order__subtitle { color: #e1edf8; max-width: 650px; margin: 0; font-size: 15px; }
#chr-order-root .chr-order__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
#chr-order-root .chr-order__panel { min-width: 0; background: #fff; border: 1px solid var(--co-line); border-radius: 16px; padding: 22px; margin: 0; box-shadow: 0 4px 14px rgba(21,45,75,.025); }
#chr-order-root .chr-order__panel--wide { grid-column: 1/-1; }
#chr-order-root .chr-order__panel legend, #chr-order-root .chr-order__heading { float: none; display: block; width: auto; max-width: 100%; padding: 0; border: 0; color: var(--co-ink); font-size: 17px; font-weight: 800; line-height: 1.4; margin: 0 0 12px; }
#chr-order-root .chr-order__required { color: var(--co-error); }
#chr-order-root .chr-order__hint { color: var(--co-muted); font-size: 13px; margin: 0 0 13px; }
#chr-order-root .chr-order__choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
#chr-order-root .chr-order__choices--grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
#chr-order-root .chr-order__choice { display: flex; align-items: center; min-height: 56px; gap: 11px; padding: 12px 13px; margin: 0; border: 1.5px solid var(--co-line); border-radius: 11px; background: #fbfdff; color: var(--co-ink); font-size: 14px; line-height: 1.35; font-weight: 580; cursor: pointer; transition: background-color .16s,border-color .16s,box-shadow .16s; }
#chr-order-root .chr-order__choice:hover { background: #eef5fc; border-color: #91acc8; }
#chr-order-root .chr-order__choice:has(input:checked) { background: #e9f2fc; border-color: #27659b; box-shadow: inset 0 0 0 1px #27659b; }
#chr-order-root .chr-order__choice input { appearance: auto; flex: 0 0 19px; width: 19px; height: 19px; min-width: 19px; margin: 0; accent-color: var(--co-blue); cursor: pointer; }
#chr-order-root .chr-order__choice span { min-width: 0; overflow-wrap: anywhere; }
#chr-order-root .chr-order__contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
#chr-order-root .chr-order__field { min-width: 0; }
#chr-order-root .chr-order__field--wide { grid-column: 1/-1; }
#chr-order-root .chr-order__field label, #chr-order-root .chr-order__field-label { display: block; font-weight: 680; font-size: 14px; color: var(--co-ink); margin: 0 0 7px; }
#chr-order-root .chr-order__field input, #chr-order-root .chr-order__field textarea, #chr-order-root #chr-order-period { display: block; width: 100%; min-width: 0; max-width: 100%; background: #fff; color: var(--co-ink); border: 1.5px solid #9aadc1; border-radius: 10px; padding: 11px 13px; line-height: 1.5; box-shadow: none; outline: none; font-size: 16px; }
#chr-order-root .chr-order__field input, #chr-order-root #chr-order-period { min-height: 51px; }
#chr-order-root .chr-order__field textarea { min-height: 118px; resize: vertical; }
#chr-order-root .chr-order__field input:focus, #chr-order-root .chr-order__field textarea:focus, #chr-order-root #chr-order-period:focus { border-color: var(--co-blue); outline: 3px solid rgba(30,97,162,.20); }
#chr-order-root .chr-order__choice:focus-within { outline: 3px solid rgba(30,97,162,.33); outline-offset: 2px; }
#chr-order-root [aria-invalid="true"] { border-color: var(--co-error) !important; }
#chr-order-root .chr-order__error { color: var(--co-error); font-size: 13px; font-weight: 680; margin: 7px 0 0; line-height: 1.45; }
#chr-order-root .chr-order__error:empty { display: none; }
#chr-order-root .chr-order__letter { margin-top: 26px; background: #fff; border: 1px solid #b7c9dc; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 34px rgba(16,41,69,.08); }
#chr-order-root .chr-order__letter-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 21px 24px; background: #eaf1f9; border-bottom: 1px solid #cddae8; }
#chr-order-root .chr-order__letter-top h3 { font-size: 20px; font-weight: 800; color: var(--co-ink); margin: 0 0 3px; line-height: 1.35; }
#chr-order-root .chr-order__letter-top p { color: var(--co-muted); font-size: 13px; margin: 0; }
#chr-order-root .chr-order__paper { margin: 21px 24px 24px; padding: clamp(18px,3vw,30px); background: #fff; border: 1px solid #e0e7f0; border-radius: 12px; box-shadow: 0 1px 8px rgba(24,52,82,.04); }
#chr-order-root .chr-order__preview { display: block; margin: 0; color: var(--co-ink); font: 400 15px/1.85 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; background: transparent; border: 0; min-height: 180px; max-height: none; padding: 0; text-align: left; }
#chr-order-root .chr-order__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 19px; }
#chr-order-root .chr-order__button { appearance: none; display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 11px 17px; text-align: center; border: 1px solid transparent; border-radius: 10px; text-decoration: none; color: #fff; background: var(--co-blue); font-weight: 770; font-size: 14px; line-height: 1.4; letter-spacing: 0; white-space: normal; cursor: pointer; transition: background-color .15s,transform .15s; }
#chr-order-root .chr-order__button:hover { background: var(--co-blue-dark); color: #fff; }
#chr-order-root .chr-order__button:active { transform: translateY(1px); }
#chr-order-root .chr-order__button--copy { color: var(--co-blue-dark); background: #fff; border-color: #8daac7; }
#chr-order-root .chr-order__button--copy:hover { color: var(--co-blue-dark); background: #dceafa; }
#chr-order-root .chr-order__button--whatsapp { background: #18764f; }
#chr-order-root .chr-order__button--whatsapp:hover { background: #115b3d; }
#chr-order-root .chr-order__button:focus-visible, #chr-order-root .chr-order__preview:focus-visible, #chr-order-root .chr-order__languages a:focus-visible { outline: 3px solid #f8b84c; outline-offset: 3px; }
#chr-order-root .chr-order__feedback { margin-top: 16px; background: #e9f2fc; border-left: 4px solid #1c629c; border-radius: 7px; padding: 13px 16px; font-size: 14px; color: var(--co-ink); }
#chr-order-root .chr-order__feedback[data-tone="error"] { background: #fff1f0; border-color: var(--co-error); color: #8e211a; }
#chr-order-root .chr-order__feedback:empty { display: none; }
#chr-order-root .chr-order__fallback { margin: 12px 0 0; }
#chr-order-root .chr-order__fallback a { width: 100%; }
#chr-order-root .chr-order__note { font-size: 13px; color: var(--co-muted); margin: 14px 0 0; }
@media (max-width: 900px) { #chr-order-root .chr-order__choices--grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
  #chr-order-root .chr-order { padding: 14px; border-radius: 14px; }
  #chr-order-root .chr-order__grid, #chr-order-root .chr-order__contact-grid { grid-template-columns: 1fr; }
  #chr-order-root .chr-order__panel--wide, #chr-order-root .chr-order__field--wide { grid-column: auto; }
  #chr-order-root .chr-order__panel { padding: 18px; }
  #chr-order-root .chr-order__letter-top { padding: 17px; }
  #chr-order-root .chr-order__paper { margin: 12px; padding: 17px; }
  #chr-order-root .chr-order__preview { font-size: 14px; line-height: 1.8; }
  #chr-order-root .chr-order__actions { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  #chr-order-root .chr-order__choices--grid { grid-template-columns: 1fr; }
  #chr-order-root .chr-order__top { align-items: flex-start; }
  #chr-order-root .chr-order__letter-top .chr-order__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #chr-order-root *, #chr-order-root *::before, #chr-order-root *::after { transition: none !important; } }

/* CHR.AZ: align fieldset legends inside their cards. */
#chr-order-root fieldset.chr-order__panel > legend {
  float: left;
  width: 100%;
  max-width: 100%;
}
#chr-order-root fieldset.chr-order__panel > legend + * {
  clear: both;
}
