.intake-panel { color: #17324f; min-width: 0; }
.intake-panel h3 { margin: 0 0 .65rem; color: #0b244d; font-size: 1.5rem; }
.intake-panel h4 { margin: 0 0 .75rem; color: #0b244d; font-size: 1.15rem; line-height: 1.4; }
.intake-panel p, .intake-panel label, .intake-panel input, .intake-panel textarea, .intake-panel select { font: inherit; font-size: 16px; line-height: 1.55; }
.intake-panel .small, .intake-panel .text-button, .intake-panel .checkbox-label, #intake-status, #intake-error { font-size: 14px; line-height: 1.5; }
.intake-panel form { display: grid; gap: .7rem; margin-top: 1rem; }
.intake-panel label { font-weight: 700; color: #0b244d; }
.intake-panel textarea, .intake-panel input[type=number] { width: 100%; min-height: 52px; padding: .85rem; border: 1px solid #a9bdd3; border-radius: 12px; background: white; color: #0b244d; box-sizing: border-box; }
.intake-panel textarea { resize: vertical; min-height: 94px; }
.intake-panel textarea::placeholder { color: #65758a; opacity: 1; }
.intake-panel button, .intake-panel .button { font: inherit; font-size: 16px; min-height: 46px; }
.intake-panel .text-button { min-height: 44px; margin: .2rem .6rem .2rem 0; }
.intake-panel button:focus-visible, .intake-panel input:focus-visible, .intake-panel textarea:focus-visible, .intake-panel summary:focus-visible, .intake-panel a:focus-visible { outline: 3px solid #0058ed; outline-offset: 4px; }
.intake-panel button:disabled, .intake-panel input:disabled, .intake-panel textarea:disabled { cursor: wait; opacity: .65; }
.intake-panel details { font-size: 15px; }
.intake-panel summary { cursor: pointer; color: #0b376d; min-height: 44px; display: list-item; padding: .55rem 0; font-weight: 700; }
#intake-conversation { display: grid; align-content: start; gap: 1rem; margin: 1.25rem 0; max-height: min(440px,52vh); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: .25rem .4rem .25rem .1rem; }
#intake-conversation:focus-visible { outline: 3px solid #0058ed; outline-offset: 3px; border-radius: 6px; }
#intake-conversation:empty { display: none; }
.intake-message { max-width: 94%; background: #eaf3ff; border: 1px solid #dce9fa; border-radius: 16px 16px 16px 4px; padding: .85rem 1rem; color: #0b244d; overflow-wrap: anywhere; }
.intake-message p { white-space: pre-wrap; margin: .3rem 0 0; }
.intake-speaker { font-size: 14px; font-weight: 800; line-height: 1.5; display: block; }
.intake-message-user { justify-self: end; background: #0a58d8; border-color: #0a58d8; color: white; border-radius: 16px 16px 4px 16px; }
.intake-photo-receipt { font-size: 14px !important; }
.intake-sent-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.intake-sent-photos img { width: 120px; max-width: 100%; height: 90px; object-fit: cover; border: 2px solid #ffffffc9; border-radius: 10px; }
.intake-composer { border-top: 1px solid #dbe5f0; padding-top: 1.15rem; }
.intake-composer > .button { justify-self: end; min-width: 145px; }
.intake-composer-first { border-top: 0; padding-top: .25rem; }
.intake-composer-first .intake-attachments { order: -1; }
.intake-composer-first > .button { width: 100%; }
.intake-panel .intake-picker { position: relative; min-height: 56px; margin: .35rem 0 .5rem; }
.intake-panel .intake-picker input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.intake-panel .intake-upload-label { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: .65rem; box-sizing: border-box; border: 1px solid #9bb8d8; border-radius: 12px; background: #f4f8ff; color: #0b376d; font-size: 16px; font-weight: 800; cursor: pointer; }
.intake-composer-first .intake-upload-label { border-color: #075be8; background: #075be8; color: white; font-size: 18px; min-height: 64px; }
.intake-picker:focus-within { outline: 3px solid #0b244d; outline-offset: 4px; border-radius: 12px; }
.intake-drop { font-size: 14px; color: #52647a; text-align: center; padding: .25rem .5rem; border: 2px dashed transparent; border-radius: 10px; }
.intake-drop.drag-over { background: #eaf4ff; border-color: #0058ed; padding: 1rem; }
.intake-thumbnails { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin-top: .75rem; }
.intake-thumbnails:empty { display: none; }
.intake-thumbnail { min-width: 0; display: grid; gap: .3rem; overflow-wrap: anywhere; padding: .5rem; border: 1px solid #dce5ef; border-radius: 12px; background: #f8fbff; }
.intake-thumbnail img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.intake-thumbnail .text-button { margin: 0; justify-self: start; text-align: left; }
.intake-panel .intake-consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; margin: .35rem 0; }
.intake-consent input { flex: 0 0 auto; width: 21px; height: 21px; margin-top: .2rem; accent-color: #0058ed; }
.intake-choices { display: flex; flex-wrap: wrap; gap: .55rem; margin: .75rem 0; }
.intake-panel .intake-choice { border: 1px solid #9bb8d8; color: #0b376d; background: white; border-radius: 999px; min-height: 44px; padding: .55rem .9rem; font-size: 14px; line-height: 1.4; font-weight: 700; cursor: pointer; text-align: left; max-width: 100%; }
.intake-choice:hover { background: #edf6ff; border-color: #0058ed; }
.intake-measurement { margin: .5rem 0; }
.intake-measurement form { padding: .5rem 0; }
.intake-scope-card, .intake-estimate-card, .intake-review-card { padding: 1.15rem; border: 1px solid #cdddf0; border-radius: 16px; background: #f7fbff; margin: 1.15rem 0; }
.intake-summary { padding-left: 1.35rem; line-height: 1.55; }
.intake-summary li { margin: .9rem 0; }
.intake-summary p { margin: .35rem 0; }
.intake-assumptions, .intake-price-lines { padding-left: 1.3rem; }
.intake-assumptions li, .intake-price-lines li { margin: .45rem 0; }
.intake-material-note { padding-left: .75rem; border-left: 3px solid #a9bdd3; }
.intake-estimate-card h4 { scroll-margin-top: 24px; }
.intake-price { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.25; color: #0058ed; margin: .5rem 0; }
.intake-reset { display: block; margin-top: 1.25rem !important; }
.intake-recovery { display: flex; flex-wrap: wrap; gap: .5rem; padding: .6rem 0; }
#intake-status:empty, #intake-error:empty { display: none; }
.intake-working { padding: .85rem; background: #eaf4ff; border: 1px solid #d7e7fa; border-radius: 12px; font-weight: 700; }
.intake-working:before { content: ''; display: inline-block; width: .75rem; height: .75rem; margin-right: .5rem; border: 2px solid #a9bdd3; border-top-color: #0058ed; border-radius: 50%; animation: intake-spin 1s linear infinite; }
.intake-working .text-button { display: block; }
@keyframes intake-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .intake-working:before { animation: none; } }
.homepage .quote-layout { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); align-items: start; gap: 28px; }
.homepage .upload-panel.quote-embed-panel { border: 1px solid #cfdeef; border-radius: 20px; padding: 28px; background: #fff; box-shadow: 0 12px 36px #17395c12; text-align: left; scroll-margin-top: 24px; min-width: 0; }
.homepage .quote-embed-panel h3 { font-size: 25px; margin-bottom: 10px; }
.homepage .quote-embed-panel h4 { font-size: 19px; line-height: 1.45; }
.homepage .photo-guide>p { font-size: 14px; line-height: 1.5; }
@media(max-width:850px) {
 #intake-conversation { max-height: min(360px,45svh); }
 .homepage .quote-layout { grid-template-columns: 1fr; }
 .homepage .intake-panel { grid-row: 1; }
 .homepage .photo-guide { grid-row: 2; }
 .homepage .upload-panel.intake-panel { padding: 20px 16px; }
}
.homepage .upload-panel.quote-embed-panel.intake-panel { 
  padding: 0 !important; 
  background: transparent !important; 
  border: 0 !important; 
  box-shadow: none !important; 
  min-height: 0 !important;
}

.quote-iframe { 
  width: 100%; 
  height: 640px;
  border: 0; 
  border-radius: 20px; 
  background: transparent;
  display: block; 
  overflow: hidden;
}

@media(max-width:850px) {
 .quote-iframe { 
   height: 580px; 
   border-radius: 16px; 
 }
}

@media(max-width:450px) {
 .intake-message { max-width: 96%; padding: .8rem; }
 .intake-composer > .button { width: 100%; }
 .intake-scope-card, .intake-estimate-card, .intake-review-card { padding: .9rem; }
 .intake-sent-photos img { width: 100px; height: 80px; }
 .quote-iframe { 
   height: 520px;
   border-radius: 14px;
 }
}
