/* Homepage consultation section (sections/consultLive.blade.php).
   Photo + live chat, next-steps list, form with progress ring. Text >= 13px. */
.hk-section { position: relative; padding: 90px 0; background: radial-gradient(ellipse at 90% 20%, #f1eeff, transparent 45%), radial-gradient(ellipse at 10% 80%, #eaf7ff, transparent 45%), #fff; color: #10155c; direction: rtl; text-align: right; overflow: hidden; scroll-margin-top: 110px; }
.hk-section *, .hk-section *::before, .hk-section *::after { box-sizing: border-box; }
.hk-section:not(.is-live) *, .hk-section:not(.is-live) *::before, .hk-section:not(.is-live) *::after { animation-play-state: paused !important; }
.hk-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }

/* Photo + chat */
.hk-photo-col { position: relative; padding-top: 128px; }
.hk-photo { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.hk-chat { position: absolute; top: 0; right: 4%; left: 0; display: grid; justify-items: start; gap: 8px; }
.hk-msg { max-width: 100%; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 14px 30px -18px #3b4f9a88, 0 0 0 1px #eef0f8; color: #10155c; font-size: 13px; font-weight: 600; line-height: 1.8; opacity: 0; transform: translateY(8px) scale(.96); animation: hk-in 9s infinite; }
.hk-msg--in { animation-name: hk-m1; }
.hk-msg--out { justify-self: end; border-radius: 16px 16px 4px 16px; background: #7057e8; color: #fff; box-shadow: 0 14px 30px -18px #7057e8; animation-name: hk-m2; }
.hk-msg--ok { display: inline-flex; align-items: center; gap: 6px; background: #10155c; animation-name: hk-m3; }
.hk-msg--ok b { color: #42d3a1; }
.hk-typing { display: inline-flex; gap: 4px; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #eef0f8; justify-self: end; opacity: 0; animation: hk-type 9s infinite; }
.hk-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9adff; animation: hk-dot 1s infinite; }
.hk-typing i:nth-child(2) { animation-delay: .15s; }
.hk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hk-m1 { 0%, 4% { opacity: 0; transform: translateY(8px) scale(.96); } 9%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hk-type { 0%, 14% { opacity: 0; max-height: 0; padding-block: 0; } 18%, 32% { opacity: 1; max-height: 30px; padding-block: 10px; } 36%, 100% { opacity: 0; max-height: 0; padding-block: 0; } }
@keyframes hk-m2 { 0%, 34% { opacity: 0; transform: translateY(8px) scale(.96); } 39%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hk-m3 { 0%, 58% { opacity: 0; transform: translateY(8px) scale(.96); } 63%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hk-dot { 50% { transform: translateY(-3px); opacity: .5; } }

/* Content */
.hk-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 16px; border-radius: 30px; background: #ebe6ff; color: #6045e0; font-size: 13px; font-weight: 600; }
.hk-section h2 { margin: 0 0 14px; color: #10155c; font-size: clamp(28px, 2.6vw, 40px); font-weight: 800; line-height: 1.55; letter-spacing: -.5px; }
.hk-section h2 span { color: #7057e8; }
.hk-content-col > p { margin: 0 0 22px; color: #6f7693; font-size: 15px; line-height: 2.05; }
.hk-steps { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hk-steps::before { content: ''; position: absolute; top: 18px; bottom: 18px; right: 17px; border-right: 2px dashed #d6cff8; }
.hk-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; margin: 0; color: #6f7693; font-size: 13px; line-height: 1.8; }
.hk-steps li span { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid #d6cff8; color: #7057e8; font-size: 14px; font-weight: 800; z-index: 1; }
.hk-steps li:first-child span { background: #7057e8; border-color: #7057e8; color: #fff; }
.hk-section.is-ready .hk-steps li:first-child span { background: #42d3a1; border-color: #42d3a1; }
.hk-steps strong { color: #10155c; font-size: 15px; font-weight: 700; }

/* Form card */
.hk-card { padding: 26px; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -36px #3b4f9a88, 0 0 0 1px #ebeef8; }
.hk-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.hk-card-badge { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 30px; background: #f1eeff; color: #5a43d6; font-size: 13px; font-weight: 700; }
.hk-section .hk-card h3 { margin: 0; color: #10155c; font-size: 19px; font-weight: 800; line-height: 1.7; }
.hk-ring { position: relative; flex-shrink: 0; width: 56px; height: 56px; }
.hk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hk-ring circle { fill: none; stroke-width: 4; stroke: #eef0f8; }
.hk-ring .hk-ring-fill { stroke: #7057e8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .4s ease, stroke .3s; }
.hk-section.is-ready .hk-ring .hk-ring-fill { stroke: #42d3a1; }
.hk-ring b { position: absolute; inset: 0; display: grid; place-items: center; color: #10155c; font-size: 13px; font-weight: 800; }
.hk-card-desc { margin: 10px 0 18px; color: #6f7693; font-size: 14px; line-height: 2; }
.hk-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.hk-field { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: 12px; padding: 0 16px; border: 1px solid #e3e7f3; border-radius: 14px; background: #f9fafe; transition: border-color .2s, background .2s, box-shadow .2s; }
.hk-field:focus-within { border-color: #7057e8; background: #fff; box-shadow: 0 0 0 4px #7057e81f; }
.hk-field > i { color: #9aa1c4; font-size: 17px; }
.hk-field:focus-within > i { color: #7057e8; }
.hk-field input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: #10155c; font: inherit; font-size: 15px; }
.hk-field input::placeholder { color: #8a90ad; opacity: 1; }
.hk-field > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #42d3a1; color: #fff; font-size: 12px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s; }
.hk-field.is-done > b { opacity: 1; transform: none; }
.hk-field .errorValidate { font-size: 13px; }
.hk-card .avatar-btn { margin-top: 6px; }
.hk-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #6f7693; font-size: 13px; }

@media (max-width: 1199px) {
    .hk-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hk-photo-col { display: none; }
}
@media (max-width: 991px) {
    .hk-section { padding: 64px 0; }
    .hk-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hk-content-col { text-align: center; }
    .hk-steps { max-width: 460px; margin: 0 auto; text-align: right; }
    .hk-form-col { width: 100%; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 575px) {
    .hk-section { padding: 48px 0; }
    .hk-section h2 { font-size: 27px; }
    .hk-content-col > p { font-size: 14px; }
    .hk-card { padding: 20px 16px; border-radius: 20px; }
    .hk-ring { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .hk-section *, .hk-section *::before, .hk-section *::after { animation: none !important; transition: none !important; }
    .hk-msg { opacity: 1; transform: none; }
    .hk-typing { display: none; }
}
