.honeypot,
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.restore-open { min-height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: #fff; color: var(--primary); cursor: pointer; font: inherit; font-size: 13px; font-weight: 900; transition: .2s ease; white-space: nowrap; }
.restore-open:hover { transform: translateY(-2px); background: var(--primary-soft); }

.contact-page { min-height: calc(100vh - 86px); }
.contact-section { position: relative; padding: 18px 0 34px; overflow: hidden; }
.contact-section::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 8% 10%, rgba(155,16,43,.11), transparent 28%), radial-gradient(circle at 92% 80%, rgba(155,16,43,.08), transparent 25%); content: ""; }
.contact-section .breadcrumb { display: none; }
.chat-layout { width: min(1040px, 100%); display: grid; grid-template-columns: 1fr; margin: 0 auto; align-items: stretch; }

.support-sidebar { display: none; }
.support-sidebar h2 { margin: 4px 0 18px; color: #24171b; font-size: clamp(34px, 4vw, 54px); line-height: 1.16; letter-spacing: -.035em; }
.support-sidebar h2 span { color: var(--primary); }
.support-sidebar > p { max-width: 480px; color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.85; }
.support-points { display: grid; gap: 18px; margin-top: 34px; }
.support-point { display: flex; align-items: center; gap: 14px; }
.point-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(155,16,43,.14); border-radius: 14px; background: #fff; color: var(--primary); box-shadow: 0 8px 22px rgba(33,14,20,.07); font-size: 12px; font-weight: 900; }
.support-point strong, .support-point small { display: block; }
.support-point strong { color: #30262a; font-size: 14px; }
.support-point small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.urgent-note { display: flex; gap: 12px; margin-top: 34px; padding: 15px 16px; border: 1px solid #ecd2d8; border-radius: 16px; background: #fff5f7; color: #6f2435; font-size: 12px; line-height: 1.6; }
.urgent-note > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; }

.chat-window { height: calc(100vh - 138px); min-height: 680px; display: flex; overflow: hidden; flex-direction: column; border: 1px solid rgba(51,27,34,.1); border-radius: 18px; background: #fff; box-shadow: 0 20px 55px rgba(48,22,30,.15); }
.chat-header { min-height: 88px; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid #eee7e9; background: rgba(255,255,255,.96); }
.agent-avatar { position: relative; width: 52px; height: 52px; flex: 0 0 auto; }
.agent-avatar img { height: 100%; padding: 3px; border: 1px solid #eadde1; border-radius: 50%; background: #fff; object-fit: contain; }
.agent-avatar > span { position: absolute; right: 1px; bottom: 2px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: #22a663; }
.agent-info { min-width: 0; }
.agent-info h1 { color: #241d20; font-size: 17px; line-height: 1.35; }
.agent-info p { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #657168; font-size: 12px; font-weight: 600; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #22a663; }
.chat-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chat-actions button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--primary); cursor: pointer; transition: .2s ease; }
.chat-actions button:hover { background: var(--primary-soft); }
.chat-actions svg { width: 23px; fill: currentColor; }

.conversation { flex: 1; overflow-y: auto; padding: 22px; background-color: #f7f5f6; background-image: radial-gradient(rgba(155,16,43,.055) 1px, transparent 1px); background-size: 18px 18px; }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 2px 0 20px; color: #958b8e; font-size: 10px; font-weight: 700; }
.chat-day::before, .chat-day::after { height: 1px; flex: 1; background: #e3dcde; content: ""; }
.message-row { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 13px; }
.message-row.outgoing { justify-content: flex-end; }
.mini-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #25171c; color: #fff; font-size: 8px; font-weight: 900; }
.bubble { max-width: 430px; padding: 12px 15px; border: 1px solid #e7dfe1; border-radius: 18px 18px 18px 5px; background: #fff; color: #41383b; box-shadow: 0 5px 15px rgba(42,24,30,.05); font-size: 13px; line-height: 1.68; }
.bubble strong { display: block; margin-bottom: 3px; color: #251e20; }
.outgoing .bubble { border-color: var(--primary); border-radius: 18px 18px 5px 18px; background: var(--primary); color: #fff; }
.message-row time { display: block; margin: 5px 4px 0; color: #9b9295; font-size: 9px; }
.outgoing time { text-align: right; }

.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin: 18px 0 4px 39px; padding: 16px; border: 1px solid #e6dfe1; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(42,24,30,.06); }
.contact-fields label { display: grid; gap: 6px; }
.contact-fields label > span { color: #594e52; font-size: 10px; font-weight: 800; }
.contact-fields em { color: var(--primary); font-style: normal; }
.contact-fields input, .contact-fields select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #ddd3d6; border-radius: 11px; outline: none; background: #fff; color: #262024; font: inherit; font-size: 12px; transition: .2s ease; }
.contact-fields input:focus, .contact-fields select:focus, .composer-box:focus-within { border-color: rgba(155,16,43,.65); box-shadow: 0 0 0 3px rgba(155,16,43,.08); }
.contact-fields input::placeholder { color: #aaa1a4; }
.wide-field { grid-column: 1 / -1; }

.composer { display: flex; align-items: flex-end; gap: 11px; padding: 14px 18px 8px; border-top: 1px solid #e6dfe1; background: #fff; }
.composer-tool { width: 46px; height: 54px; display: grid; flex: 0 0 auto; place-items: center; border: 0; border-radius: 16px; background: transparent; color: var(--primary); cursor: pointer; transition: .2s ease; }
.composer-tool:hover { background: var(--primary-soft); }
.composer-tool svg { width: 25px; fill: currentColor; }
.composer-box { position: relative; min-height: 54px; display: flex; flex: 1; padding: 14px 76px 14px 16px; border: 1px solid #ddd4d6; border-radius: 18px; background: #faf9f9; transition: .2s ease; }
.composer textarea { width: 100%; min-height: 24px; max-height: 120px; overflow-y: auto; border: 0; outline: 0; resize: none; background: transparent; color: #2d2628; font: inherit; font-size: 13px; line-height: 1.65; }
.composer textarea::placeholder { color: #a1989b; }
.character-count { position: absolute; right: 13px; bottom: 9px; color: #aaa1a4; font-size: 9px; }
.send-button { min-width: 82px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--primary), #bd1739); color: #fff; box-shadow: 0 9px 22px rgba(155,16,43,.25); cursor: pointer; font: inherit; font-size: 13px; font-weight: 900; transition: .2s ease; }
.send-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(155,16,43,.32); }
.send-button:disabled { cursor: wait; opacity: .62; transform: none; }
.send-button svg { width: 17px; fill: currentColor; }
.privacy-line { padding: 0 20px 12px; background: #fff; color: #9a9194; text-align: center; font-size: 9px; }
.attachment-preview { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 22px; border-top: 1px solid #eee7e9; background: #fff; }
.attachment-preview[hidden] { display: none; }
.attachment-preview img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; }
.attachment-preview div { min-width: 0; }
.attachment-preview strong, .attachment-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview strong { max-width: 520px; color: #30272a; font-size: 12px; }
.attachment-preview small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.attachment-preview button { width: 30px; height: 30px; margin-left: auto; border: 0; border-radius: 50%; background: #f0edef; color: #554b4e; cursor: pointer; font-size: 20px; }
.chat-image { display: block; width: min(360px, 65vw); max-height: 420px; margin-left: auto; border-radius: 18px 18px 5px 18px; object-fit: cover; box-shadow: 0 8px 22px rgba(25,19,21,.12); }
.message-row.outgoing.image-message { display: block; text-align: right; }
.image-message time { margin-right: 4px; }

.contact-feedback { margin: 0 18px 14px; padding: 11px 13px; border: 1px solid #ead0d7; border-radius: 12px; background: #fff7f9; color: #7a1730; font-size: 12px; font-weight: 700; line-height: 1.6; }
.contact-feedback.success { border-color: #cbe4d5; background: #eef8f2; color: #1f7047; }
.contact-feedback.error { border-color: #f0cbcb; background: #fff0f0; color: #9d3030; }
.contact-feedback strong { display: block; margin-top: 2px; font-size: 14px; }

.restore-modal { position: fixed; inset: 0; z-index: 3000; display: grid; padding: 20px; place-items: center; }
.restore-modal[hidden] { display: none; }
.restore-backdrop { position: absolute; inset: 0; background: rgba(20,13,16,.66); backdrop-filter: blur(6px); }
.restore-dialog { position: relative; z-index: 1; width: min(460px, 100%); padding: 32px; border-radius: 24px; background: #fff; box-shadow: 0 32px 90px rgba(0,0,0,.3); }
.restore-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2eef0; color: #51474a; cursor: pointer; font-size: 22px; }
.restore-icon { display: grid; width: 48px; height: 48px; margin-bottom: 17px; place-items: center; border-radius: 15px; background: var(--primary-soft); color: var(--primary); font-size: 26px; font-weight: 900; }
.restore-eyebrow { color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.restore-dialog h2 { margin: 4px 0 8px; color: #261d20; font-size: 25px; }
.restore-dialog > p:not(.restore-eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.7; }
.restore-dialog form { display: grid; gap: 13px; margin-top: 21px; }
.restore-dialog label { display: grid; gap: 6px; }
.restore-dialog label span { color: #51464a; font-size: 11px; font-weight: 800; }
.restore-dialog input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #dcd3d6; border-radius: 12px; outline: 0; font: inherit; font-size: 13px; }
.restore-dialog input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(155,16,43,.08); }
.restore-dialog form > button { min-height: 50px; border: 0; border-radius: 13px; background: var(--primary); color: #fff; cursor: pointer; font: inherit; font-weight: 900; }
.restore-dialog form > button:disabled { cursor: wait; opacity: .65; }
.restore-dialog > small { display: block; margin-top: 14px; color: #978d90; text-align: center; font-size: 10px; }
.restore-message { padding: 9px 11px; border-radius: 9px; background: #fff0f2; color: #a12843; font-size: 11px; }
.restore-message.success { background: #ecf8f1; color: #207246; }
body.modal-open { overflow: hidden; }
.conversation-restored .contact-fields { display: none; }

@media (max-width: 980px) {
  .chat-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .contact-section { padding: 8px 0 18px; }
  .chat-window { height: calc(100vh - 128px); min-height: 620px; border-radius: 14px; }
  .conversation { padding: 16px 12px; }
  .contact-fields { grid-template-columns: 1fr; margin-left: 0; padding: 13px; }
  .wide-field { grid-column: auto; }
  .composer { gap: 8px; padding-inline: 11px; }
  .composer-box { padding-right: 15px; }
  .character-count { display: none; }
  .send-button { min-width: 54px; width: 54px; }
  .send-button span { display: none; }
}
