@charset "UTF-8";
/* Order page (/tilaa/). Builds on the tokens and components of style-forest.css. */
:root { --field: #fffdf8; --danger: #9b2c1f; }
[hidden] { display: none !important; }

.order-hero { padding-top: 48px; padding-bottom: 40px; }
.order-hero h1 { font-size: clamp(52px, 6.4vw, 92px); }
.order-hero .lead { max-width: 520px; }

.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 72px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 34px 34px 28px; display: flex; flex-direction: column; }
.service-card h2 { font-size: 30px; margin-bottom: 14px; }
.service-card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.service-icon { font-size: 26px; color: var(--accent); margin-bottom: 18px; }
.service-card { position: relative; transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--accent); }
.service-card.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.service-select { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
/* The whole card is the click target of its button. */
.service-select::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.service-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.text-button { font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.order-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: 52px; padding-top: 40px; padding-bottom: 72px; }
.order-workspace .order-panel { display: block; padding: 0; }
.order-workspace .order-panel-intro { margin-bottom: 26px; }
.order-service-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.order-service-title h2 { margin: 0; font-size: 30px; }
.order-service-title .text-button { margin: 0; }
.order-panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; padding-top: 40px; padding-bottom: 72px; }
.order-panel-intro p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.order-panel-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.order-panel-intro .account-name { color: var(--ink); font-weight: 600; }

.order-form { display: grid; gap: 22px; align-content: start; }
.order-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.order-form legend { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.order-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.order-form label small { font-weight: 400; color: var(--muted); }
.notes-field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.notes-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.notes-heading small { font-weight: 400; color: var(--muted); }
.notes-heading .checkbox { min-height: 0; margin-left: auto; }
.order-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.order-form select,
.order-form textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--field); border: 1px solid #cfcfc4; border-radius: 6px; padding: 13px 14px; width: 100%; min-height: 48px; }
.order-form textarea { resize: vertical; line-height: 1.5; }
.order-form input:focus-visible, .order-form select:focus-visible, .order-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.order-form .checkbox { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 48px; font-weight: 500; }
.order-form .checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .grow:only-child { grid-column: 1 / -1; }
.form-row .grow:first-child:not(:only-child) { grid-column: auto; }
.login-form { max-width: 420px; }
.login-form .button { justify-self: start; }

.file-drop { border: 1.5px dashed #b9b9ad; border-radius: 8px; padding: 22px; background: var(--field); display: grid; gap: 12px; }
.file-drop label { display: grid; gap: 4px; font-size: 14px; }
.file-drop label small { font-size: 12px; }
.file-drop input[type="file"] { font: inherit; font-size: 13px; max-width: 100%; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; padding: 8px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.file-list li span { overflow-wrap: anywhere; }
.file-list button { font: inherit; font-size: 12px; color: var(--danger); background: none; border: 0; cursor: pointer; padding: 6px; }

.property-picker { display: grid; gap: 14px; }
.property-picker-heading, .selected-property-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.property-picker-heading > div, .selected-property-heading > div { display: grid; gap: 4px; }
.property-picker strong { font-size: 14px; }
.property-picker strong small, .property-picker-heading small, .selected-property-heading small { font-weight: 400; color: var(--muted); font-size: 12px; }
.property-search { display: grid; gap: 8px; font-size: 11px !important; font-weight: 800 !important; letter-spacing: 1px; text-transform: uppercase; }
.property-search input { background-image: linear-gradient(45deg, transparent 46%, var(--muted) 47%, var(--muted) 53%, transparent 54%); background-size: 14px 14px; background-position: 14px 17px; background-repeat: no-repeat; padding-left: 42px !important; }
.property-picker-message { margin: 0; color: var(--muted); font-size: 13px; }
.property-results-heading { display: flex; align-items: center; gap: 14px; }
.property-results-heading strong { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.property-refresh { border: 1px solid var(--accent); border-radius: 999px; padding: 9px 15px; }
.property-results-wrap { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 10px; }
.property-results { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 3px; }
.property-results::-webkit-scrollbar { display: none; }
.property-scroll { width: 42px; height: 82px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--accent); font: 800 36px/1 Arial, sans-serif; cursor: pointer; }
.property-scroll:hover { border-color: var(--accent); }
.property-result { position: relative; flex: 0 0 216px; min-height: 248px; appearance: none; display: grid; align-content: start; gap: 12px; padding: 12px; text-align: left; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; scroll-snap-align: start; }
.property-result:hover { border-color: var(--accent); }
.property-result:focus-visible, .property-image:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.property-result img { width: 100%; height: 126px; object-fit: cover; border-radius: 9px; background: var(--mint); }
.property-result span { display: grid; gap: 5px; }
.property-result strong { font-size: 14px; line-height: 1.25; }
.property-result small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.property-new { position: absolute; right: 12px; top: 12px; padding: 5px 9px; border-radius: 999px; background: #20cb7a; color: #003d32; font-size: 10px; letter-spacing: 1px; }
.selected-property { position: relative; display: grid; gap: 14px; padding: 18px; border: 1px solid var(--accent); border-radius: 8px; background: var(--mint); }
.selected-property-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--field); color: var(--accent); font: 400 26px/26px Arial, sans-serif; cursor: pointer; }
.selected-property-close:hover { background: var(--white); }
.selected-property-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.property-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.property-image { position: relative; appearance: none; display: grid; gap: 8px; padding: 7px; text-align: left; color: var(--ink); background: var(--field); border: 2px solid transparent; border-radius: 7px; cursor: pointer; }
.property-image:hover { border-color: #b9b9ad; }
.property-image.is-selected { border-color: var(--accent); }
.property-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--white); }
.property-image span { font-size: 11px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.order-summary { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.order-summary span { font-size: 14px; font-weight: 600; }
.form-error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.button:disabled { opacity: .6; cursor: progress; transform: none; }

.order-done { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.order-done > div { max-width: 520px; display: grid; justify-items: center; }
.order-done .check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: white; font-size: 26px; margin-bottom: 22px; }
.order-done p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

.order-history { padding-top: 56px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.order-workspace .order-history { position: sticky; top: 20px; margin: 0; padding: 0 0 18px; border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }
.order-history h2 { font-size: 26px; }
.history-empty { color: var(--muted); font-size: 14px; }
.history-table { overflow-x: auto; }
.history-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history-table th { text-align: left; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.history-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.history-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.order-workspace .history-table { overflow: visible; }
.order-workspace .history-table table, .order-workspace .history-table tbody, .order-workspace .history-table tr, .order-workspace .history-table td { display: block; width: 100%; }
.order-workspace .history-table thead { display: none; }
.order-workspace .history-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-workspace .history-table td { border: 0; padding: 3px 0; }
.order-workspace .history-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.order-workspace .history-table .order-details { display: flex; width: auto; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 14px; }
.order-workspace .history-table .order-details::before { display: none; }
.order-details strong { font-size: 15px; }
.order-workspace .history-table .order-details .order-download { display: inline; margin-top: 0; }
.order-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px; white-space: nowrap; background: #eef1e6; color: #4a603b; }
.order-status-in_progress { background: #fdf1dc; color: #7a4f0b; }
.order-status-delivered { background: var(--accent); color: white; }
.order-status-cancelled { background: #f4f3f0; color: #6b6862; }
.order-loading { color: var(--muted); padding-bottom: 72px; }

@media (max-width: 900px) {
  .order-workspace { grid-template-columns: 1fr; gap: 38px; padding-top: 16px; padding-bottom: 52px; }
  .order-workspace .order-history { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 38px 0 0; }
  .order-panel { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .service-cards, .form-row { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px 22px; }
  .order-panel { padding-top: 16px; padding-bottom: 52px; }
  .order-summary { flex-direction: column; align-items: stretch; }
  .order-summary .button { width: 100%; }
  .order-form .checkbox { min-height: 0; }
  .property-results-wrap { grid-template-columns: 1fr; }
  .property-scroll { display: none; }
  .property-result { flex-basis: min(78vw, 250px); }
  .property-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-table thead { display: none; }
  .history-table table, .history-table tbody, .history-table tr, .history-table td { display: block; }
  .history-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .history-table td { border: 0; padding: 6px 0; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .header nav .button > span { display: none; }
}

/* Login modal: shown first when the visitor has no order portal session. */
.order-locked { grid-template-columns: 1fr; }
.order-locked h2 { margin-bottom: 26px; }
.login-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 12px; padding: 40px 36px 36px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(20, 30, 25, .28); }
.login-dialog::backdrop { background: rgba(24, 33, 29, .55); backdrop-filter: blur(4px); }
.login-dialog h2 { font-size: 36px; margin-bottom: 14px; }
.login-dialog .dialog-text { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.login-dialog .dialog-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.login-dialog .login-form { max-width: none; }
.login-dialog .login-form .button { justify-self: stretch; }
.dialog-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.dialog-close { font: inherit; font-size: 26px; line-height: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.dialog-close:hover { background: var(--mint); }
.dialog-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
@media (max-width: 420px) { .login-dialog { padding: 36px 22px 24px; } .login-dialog h2 { font-size: 30px; } }

.order-download { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.file-drop > strong { font-size: 14px; }
.file-drop > small { font-size: 12px; color: var(--muted); }
.file-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.file-actions .button { padding: 13px 18px; }
.form-row:has(> [hidden]) > .grow.grow { grid-column: 1 / -1; }

/* Floor plan drop zone and preview before sending. */
.plan-drop { transition: border-color .2s, background .2s; }
.plan-drop.is-dragging { border-color: var(--accent); background: var(--mint); }
.plan-drop.has-file { border-style: solid; }
.plan-preview { border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 8px; }
.plan-preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.plan-pdf { margin: 0; padding: 12px; font-size: 14px; font-weight: 600; }
.plan-drop .file-list:empty { display: none; }
@media (hover: none) { .drop-hint { display: none; } }
#staff-email { font-size: 12px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
#staff-email:empty { display: none; }
.file-drop > strong small { font-weight: 400; color: var(--muted); font-size: 12px; }
