/* Shared attachments and enquiry flow for both calculators. */
.room-photos,
.quote-send-dialog {
  --quote-surface: #151719;
  --quote-raised: #1e2023;
  --quote-ink: #fff9ed;
  --quote-muted: #c3c7cb;
  --quote-gold: #f2c45e;
  --quote-line: #414951;
  box-sizing: border-box;
  color: var(--quote-ink);
}
.room-photos {
  padding: 20px;
  margin: 22px 0;
  border: 1px solid var(--quote-line);
  border-radius: 16px;
  background: linear-gradient(145deg, #25282c, var(--quote-surface));
}
.room-photos-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.room-photos-heading strong {
  color: var(--quote-ink);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.015em;
}
.room-photos-heading span {
  flex-shrink: 0;
  min-width: 46px;
  padding: 5px 9px;
  border: 1px solid #75623d;
  border-radius: 7px;
  background: #302d24;
  color: #f4d28b;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.room-photos > p {
  margin: 11px 0 16px;
  color: var(--quote-muted);
  font-size: 12px;
  line-height: 1.7;
}
.room-photos .room-photo-add {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  margin: 0;
  border: 1px solid #b79552;
  border-radius: 9px;
  background: var(--quote-gold);
  color: #151719;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.room-photo-add > span { color: inherit; pointer-events: none; }
/* The native file input remains keyboard accessible over the whole control. */
.room-photos .room-photo-add input[type=file] {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  opacity: 0;
  cursor: pointer;
}
.room-photos .room-photo-add:hover { background: #ffdc8e; border-color: #ffdc8e; }
.room-photos .room-photo-add:has(input:focus-visible) {
  outline: 3px solid #ffdc8e;
  outline-offset: 4px;
}
.room-photos .room-photo-add:has(input:disabled) {
  border-color: #5b6269;
  background: #30363d;
  color: #c6c9cc;
  cursor: default;
}
.room-photo-add input:disabled { cursor: default !important; }
.room-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(114px, 100%), 1fr));
  gap: 14px;
  margin-top: 18px;
}
.room-photo-grid:empty { display: none; }
.room-photo-grid figure {
  position: relative;
  min-width: 0;
  padding: 5px;
  margin: 0;
  border: 1px solid #4d555d;
  border-radius: 11px;
  background: #111519;
}
.room-photo-grid a { display: block; border-radius: 7px; }
.room-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}
.room-photo-grid a:focus-visible,
.room-photo-grid button:focus-visible {
  outline: 3px solid var(--quote-gold);
  outline-offset: 3px;
}
.room-photo-grid figcaption {
  overflow: hidden;
  margin: 8px 4px 3px;
  color: #d0d2d3;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-photo-grid button {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #ffffffa6;
  border-radius: 50%;
  background: #101419ef;
  color: #fff9ed;
  box-shadow: 0 2px 8px #0005;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.room-photo-grid button:hover { border-color: #f3b7aa; background: #562b29; color: #fff0ec; }
.room-photos .room-photo-status {
  padding: 11px 13px;
  margin: 14px 0 0;
  border-left: 3px solid var(--quote-gold);
  border-radius: 0 7px 7px 0;
  background: #2d2c27;
  color: #f2ddb1;
  overflow-wrap: anywhere;
}
.room-photo-status:empty { display: none; }

.quote-send-dialog {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100vw - 40px));
  max-width: none;
  max-height: min(920px, calc(100dvh - 48px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 38px;
  margin: auto;
  border: 1px solid #706044;
  border-radius: 22px;
  background: linear-gradient(155deg, #272a2e, #151719 72%);
  box-shadow: 0 24px 90px #0009;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #82704b #151719;
  scroll-padding: 28px;
}
.quote-send-dialog::backdrop { background: #090c10c9; backdrop-filter: blur(6px); }
.quote-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #63696e;
  border-radius: 50%;
  background: #282e34;
  color: #fff9ed;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.quote-close:hover { background: #343b42; border-color: #f2c45e; }
.quote-send-dialog h2 {
  margin: 17px 0 14px;
  padding-right: 15px;
  color: var(--quote-ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.quote-send-dialog p { margin: 12px 0; color: var(--quote-muted); font-size: 14px; line-height: 1.65; }
.quote-send-dialog .quote-eyebrow {
  padding-right: 38px;
  margin: 0;
  color: var(--quote-gold);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 27px;
}
.quote-send-dialog form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  color: #e7e5de;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}
.quote-send-dialog .quote-fields input:not([type=file]),
.quote-send-dialog form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #d2caba !important;
  border-radius: 9px;
  background: #fbf8f0 !important;
  color: #232a30 !important;
  color-scheme: light;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quote-send-dialog form textarea { min-height: 112px; resize: vertical; }
.quote-send-dialog input::placeholder,
.quote-send-dialog textarea::placeholder { color: #687078; }
.quote-send-dialog .quote-fields input:hover,
.quote-send-dialog form textarea:hover { border-color: #f2c45e !important; }
.quote-send-dialog .quote-fields input:focus,
.quote-send-dialog form textarea:focus {
  border-color: #f2c45e !important;
  outline: 3px solid #f2c45e;
  outline-offset: 3px;
}
.quote-send-dialog .quote-fields input:disabled,
.quote-send-dialog form textarea:disabled {
  background: #e2dfd7 !important;
  color: #666a6d !important;
  cursor: wait;
}
.quote-send-dialog .quote-contact-note { margin: 13px 0 24px; color: #dccaa2; font-size: 12px; }
.quote-send-dialog .quote-register-note { margin: 18px 0 23px; color: #bec2c5; font-size: 11px; line-height: 1.7; }
.quote-send-dialog .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  padding: 15px 20px;
  border: 1px solid #f2c45e;
  border-radius: 10px;
  background: linear-gradient(115deg, #f2c45e, #f8d68b);
  color: #151719;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.quote-send-dialog .button:hover { background: #ffdc8e; border-color: #ffdc8e; transform: none; }
.quote-send-dialog .button:disabled {
  border-color: #b6a079;
  background: #cdb58a;
  color: #252a2f;
  opacity: 1;
  cursor: wait;
}
.quote-send-dialog .button:disabled::before {
  content: '';
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 2px solid #252a2f50;
  border-top-color: #252a2f;
  border-radius: 50%;
  animation: quote-pending .8s linear infinite;
}
.quote-send-dialog button:focus-visible,
.quote-send-dialog a:focus-visible { outline: 3px solid var(--quote-gold); outline-offset: 4px; }
.quote-send-dialog [role=status]:not(:empty) {
  padding: 12px 14px;
  margin: 17px 0 0;
  border-left: 3px solid #f2c45e;
  border-radius: 0 7px 7px 0;
  background: #2d2c27;
  color: #f2ddb1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.quote-send-dialog [role=status]:empty { display: none; }
.quote-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 8px 0 25px;
  border: 1px solid #70b698;
  border-radius: 18px;
  background: #203b32;
  color: #b1edcf;
  font-size: 33px;
  line-height: 1;
}
.quote-success-icon ~ .button { margin-top: 25px; }
.quote-next {
  padding: 18px 20px;
  margin: 22px 0;
  border: 1px solid #547c68;
  border-radius: 12px;
  background: #1e3028;
}
.quote-next h3 {
  margin: 0 0 8px;
  color: #c0eed3;
  font-size: 17px;
  line-height: 1.4;
}
.quote-send-dialog .quote-next p { margin: 0; color: #e3e8df; }
.quote-send-dialog .quote-request-number { color: var(--quote-gold); font-variant-numeric: tabular-nums; }
.quote-message-options {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--quote-line);
}
.quote-message-options summary {
  width: fit-content;
  min-height: 44px;
  padding: 11px 0;
  color: #f4d89e;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.quote-message-options summary:focus-visible { outline: 3px solid var(--quote-gold); outline-offset: 4px; }
.quote-send-dialog .quote-message-options p { font-size: 12px; }
.quote-success-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: 12px; }
.quote-success-links a,
.quote-success-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #63666a;
  border-radius: 8px;
  background: #22282e;
  color: #f4d89e;
  font: inherit;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
}
.quote-success-links a:hover,
.quote-success-links button:hover { border-color: #f2c45e; background: #30343a; color: #ffebbd; }

.owner-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #525b63;
  border-radius: 8px;
  background: #1e2023;
  color: #fff9ed;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
.owner-panel-link:hover { border-color: #f2c45e; background: #292f36; }
.owner-panel-link:focus-visible { outline: 3px solid #f2c45e; outline-offset: 4px; }
.owner-panel-link span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: #f2c45e;
  color: #151719;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.owner-panel-link span[hidden] { display: none; }

@keyframes quote-pending { to { transform: rotate(360deg); } }
@media (max-width: 650px) {
  .quote-send-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 30px 22px 24px;
    border-radius: 18px;
  }
  .quote-send-dialog h2 { font-size: 29px; }
  .quote-fields { grid-template-columns: 1fr; gap: 18px; margin-top: 23px; }
  .quote-send-dialog .button { padding-inline: 14px; font-size: 13px; }
  .quote-success-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-copy-links { grid-template-columns: 1fr; }
  .quote-next { padding: 16px; }
  .room-photos { padding: 16px; }
  .room-photos-heading strong { font-size: 14px; }
  .room-photos .room-photo-add { width: 100%; }
  .room-photo-grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-photo-add,
  .room-photo-grid button,
  .quote-send-dialog .button,
  .quote-send-dialog input,
  .quote-send-dialog textarea { transition: none; }
  .quote-send-dialog .button:disabled::before { animation: none; }
}
@media (forced-colors: active) {
  .room-photos,
  .room-photos .room-photo-add,
  .room-photo-grid figure,
  .room-photo-grid button,
  .quote-send-dialog,
  .quote-close,
  .quote-send-dialog .button,
  .quote-success-links a,
  .quote-success-links button,
  .owner-panel-link { border-color: ButtonText; }
}
@media print {
  .room-photo-add,
  .room-photo-grid button,
  .room-photo-status,
  .quote-send-dialog,
  .owner-panel-link { display: none !important; }
  .room-photos { break-inside: avoid; background: #fff !important; color: #111 !important; border-color: #bbb; }
  .room-photo-grid img { height: 100px; }
  .room-photos-heading strong,
  .room-photos-heading span,
  .room-photos > p,
  .room-photo-grid figcaption { color: #111 !important; }
  .room-photos-heading span,
  .room-photo-grid figure { background: #fff; border-color: #bbb; }
}

.room-photo-tips{margin:12px 0}.room-photo-tips summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.room-photo-tips ul{margin:8px 0 12px;padding-inline-start:22px}.room-photo-tips li{margin-block:8px;line-height:1.55}.quote-confirmation-note{border:1px solid currentColor;border-radius:10px;padding:12px 14px;font-size:14px;line-height:1.5}
.quote-preview{margin:24px 0 16px;padding:20px;border:1px solid #766444;border-radius:13px;background:#1b2023;overflow-wrap:anywhere}
.quote-preview h3{margin:0 0 17px;color:#f4d28b;font-size:17px;line-height:1.4}
.quote-preview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:0}
.quote-preview-facts div{min-width:0}.quote-preview-facts dt{color:#c3c7cb;font-size:11px;line-height:1.5}.quote-preview-facts dd{margin:5px 0 0;color:#fff9ed;font-size:14px;font-weight:650;line-height:1.5}
.quote-send-dialog .quote-preview-partial{padding:10px 12px;border-left:3px solid #f2c45e;background:#302d24;color:#f4d28b;font-size:12px}
.quote-send-dialog .quote-preview-appointment{white-space:pre-line;font-size:12px;border-top:1px solid #414951;padding-top:15px}
.quote-preview-rooms{padding:0;margin:18px 0 0;list-style:none}.quote-preview-rooms li{border-top:1px solid #414951;padding:14px 0}.quote-preview-rooms li:last-child{padding-bottom:0}.quote-preview-rooms li>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.quote-preview-rooms strong{font-size:13px;line-height:1.5}.quote-preview-rooms span{flex-shrink:0;color:#c3c7cb;font-size:11px;line-height:1.5}
.quote-preview-photos{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:11px}.quote-preview-photos a{display:block;border-radius:6px}.quote-preview-photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border:1px solid #626a70;border-radius:6px}.quote-send-dialog .quote-preview-no-photos{margin-bottom:0;font-size:11px}
.quote-attachment{padding:17px 18px;border:1px solid #766444;border-radius:12px;background:#302d24;margin-top:24px}.quote-send-dialog .quote-attachment label{display:flex;flex-direction:row;align-items:center;gap:12px;cursor:pointer;min-height:44px}.quote-attachment input{flex-shrink:0;width:20px;height:20px;accent-color:#f2c45e}.quote-attachment input:focus-visible{outline:3px solid #f2c45e;outline-offset:4px}.quote-send-dialog .quote-attachment p{font-size:11px;margin:8px 0 0}.quote-attachment:has(input:disabled) label{color:#c3c7cb;cursor:default}
.quote-edit-estimate{display:block;min-height:44px;padding:11px 15px;margin:0 0 12px;border:1px solid #82704b;border-radius:8px;background:#252b30;color:#f4d28b;font:inherit;font-size:12px;line-height:1.5;cursor:pointer}.quote-edit-estimate:hover{background:#353b3f}.quote-edit-estimate[hidden]{display:none}
.quote-edit-return{position:fixed;z-index:200;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);min-height:50px;padding:13px 20px;border:2px solid #151719;border-radius:10px;box-shadow:0 6px 28px #0007;background:#f2c45e;color:#151719;font:inherit;font-size:14px;font-weight:700;line-height:1.5;cursor:pointer}.quote-edit-return:focus-visible{outline:3px solid #805d12;outline-offset:4px}.quote-edit-return[hidden]{display:none}
@media(max-width:480px){.quote-preview{padding:16px}.quote-preview-facts{gap:14px}.quote-preview-photos{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-preview-rooms li>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}.quote-edit-return{font-size:12px}}
@media(forced-colors:active){.quote-preview,.quote-attachment,.quote-preview-photos img,.quote-edit-estimate,.quote-edit-return{border-color:ButtonText}}
@media print{.quote-edit-return{display:none!important}}
.quote-send-dialog input.contact-invalid,.quote-send-dialog textarea.contact-invalid,.callback-dialog input.contact-invalid{border-color:#ffb8ad;outline:2px solid #ffb8ad;outline-offset:2px}
.quote-send-dialog .contact-field-error,.callback-dialog .contact-field-error{display:block;margin-top:7px;color:#ffb8ad;font-size:13px;line-height:1.5;font-weight:500}
@media(forced-colors:active){.quote-send-dialog .contact-invalid,.callback-dialog .contact-invalid{border-color:Mark;outline-color:Mark}.quote-send-dialog .contact-field-error,.callback-dialog .contact-field-error{color:CanvasText}}
