/* 이메일 문의와 접수 확인. 수정일: 2026-10-04 */
.ci-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 36px; border: 1px solid var(--border-soft); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgb(20 35 35 / 20%); overflow-y: auto; overscroll-behavior: contain; }
.ci-dialog::backdrop { background: rgb(20 35 35 / 50%); backdrop-filter: blur(3px); }
.ci-close { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 18px; }
.ci-close:hover { background: var(--alt); color: var(--heading); }
.ci-close:disabled { opacity: .4; }
.ci-heading { margin-bottom: 28px; padding-top: 4px; }
.ci-mark { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); font-size: 24px; }
.ci-title { color: var(--heading); font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: -.035em; }
.ci-title:focus { outline: none; }
.ci-description { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.ci-status { margin: 0 0 20px; padding: 16px; border-radius: 8px; background: var(--alt); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.ci-status:empty { display: none; }
.ci-status--error { color: var(--danger); background: var(--accent-soft); }
.ci-label { display: block; margin-bottom: 8px; color: var(--heading); font-size: 14px; font-weight: 700; }
.ci-input { width: 100%; min-width: 0; height: 52px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); font-size: 16px; color: var(--text); }
.ci-input:focus { border-color: var(--band); outline: 2px solid var(--band); outline-offset: 2px; }
.ci-preview { margin: 20px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ci-preview-summary { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--alt); color: var(--heading); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.ci-preview-summary::-webkit-details-marker { display: none; }
.ci-preview-toggle { margin-left: auto; color: var(--muted); font-weight: 400; flex: none; }
.ci-preview[open] .ci-preview-toggle { color: var(--accent-ink); }
.ci-transcript { max-height: 280px; padding: 0 16px; overflow-y: auto; overscroll-behavior: contain; }
.ci-turn { padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.ci-turn:last-child { border-bottom: 0; }
.ci-turn-label { margin-bottom: 8px; color: var(--heading); font-size: 12px; font-weight: 700; }
.ci-turn-text { margin-bottom: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.ci-turn-meta { margin-top: 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ci-attachment-note { padding: 16px 0; border-bottom: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; line-height: 1.7; }
.ci-consent { display: flex; align-items: start; gap: 12px; font-size: 13px; line-height: 1.8; color: var(--text); cursor: pointer; }
.ci-checkbox { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--band); }
.ci-private { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.ci-primary, .ci-secondary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 24px; padding: 14px 20px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--surface); font-size: 15px; font-weight: 700; line-height: 1.5; }
.ci-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.ci-primary:disabled { opacity: .65; }
.ci-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--heading); }
.ci-secondary:hover { background: var(--alt); }
.ci-dialog[data-state="success"] .ci-heading { text-align: center; }
.ci-dialog[data-state="success"] .ci-mark { margin-inline: auto; border-radius: 50%; background: var(--alt); color: var(--success); }
.ci-receipt { padding: 24px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--alt); text-align: center; }
.ci-receipt-label { color: var(--muted); font-size: 12px; }
.ci-receipt-email { margin-top: 8px; color: var(--heading); font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.ci-receipt-number { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.ci-receipt-number > dd { margin: 0; color: var(--heading); font-family: ui-monospace, monospace; font-size: 13px; overflow-wrap: anywhere; }
.ci-success-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.ci-dialog[data-state="loading"] .ci-mark { animation: ci-breathe 1.2s ease-in-out infinite; }
@keyframes ci-breathe { 50% { opacity: .45; } }
@media (max-width: 575px) {
    .ci-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 28px 24px; border-radius: 16px; }
    .ci-title { font-size: 23px; }
    .ci-description { font-size: 14px; }
    .ci-receipt { padding: 20px 16px; }
    .ci-receipt-email { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ci-dialog[data-state="loading"] .ci-mark { animation: none; } }
