:root {
    --hs-width: 640px;
    --hs-wine: #620006;
    --hs-wine-dark: #3b0003;
    --hs-red: #a4131d;
    --hs-rose: #f5e7e5;
    --hs-form-height: 160px;
}

* { box-sizing: border-box; }
html {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    background: #ede7e5;
    color: #171717;
    font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hs-page {
    width: 100%;
    max-width: var(--hs-width);
    margin: 0 auto;
    overflow: hidden;
    background: var(--hs-wine-dark);
}
.hs-section,
.hs-section__visual {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.hs-section img { width: 100%; }
.hs-kakao-hotspot {
    position: absolute;
    z-index: 3;
    top: 86%;
    right: 9.5%;
    bottom: 8.5%;
    left: 9.5%;
    display: block;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hs-kakao-hotspot:focus-visible {
    outline: 4px solid #f7d64a;
    outline-offset: 4px;
}

.hs-quick {
    position: fixed;
    z-index: 80;
    right: max(12px, calc((100vw - var(--hs-width)) / 2 + 12px));
    bottom: calc(var(--hs-form-height) + 16px + env(safe-area-inset-bottom));
    display: grid;
    gap: 8px;
}
.hs-quick__item {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(40, 0, 2, .32);
}
.hs-quick__item img { width: 100%; height: 100%; object-fit: cover; }
.hs-fixed-spacer {
    width: 100%;
    max-width: var(--hs-width);
    height: calc(var(--hs-form-height) + env(safe-area-inset-bottom));
    margin: 0 auto;
    background: #ede7e5;
}

.hs-db-fixed {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: var(--hs-width);
    min-height: var(--hs-form-height);
    margin: 0 auto;
    padding: 10px 14px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .22);
    background: rgba(91, 0, 5, .96);
    box-shadow: 0 -8px 24px rgba(41, 0, 2, .3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hs-db-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hs-db-form__interest {
    width: 100%;
    height: 34px;
    margin: 0 0 6px;
    padding: 0 36px 0 12px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 6px;
    background-color: #fff;
    color: #222;
    font-size: 15px;
}
.hs-db-form__interest:invalid { color: #6f6f6f; }
.hs-db-form__interest optgroup,
.hs-db-form__interest option { color: #222; }
.hs-db-form input[type="text"],
.hs-db-form input[type="tel"] {
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 16px;
}
.hs-honeypot { position: absolute !important; left: -9999px !important; }
.hs-db-form__submit {
    width: 100%;
    height: 34px;
    margin-top: 6px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--hs-wine);
    font-weight: 800;
    cursor: pointer;
}
.hs-db-form__submit:disabled { opacity: .62; }
.hs-db-form__privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 24px;
    color: #f8e9e7;
    font-size: 12px;
}
.hs-db-form__privacy input { width: 15px; height: 15px; margin: 0; accent-color: #fff; }
.hs-db-form__privacy button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.hs-db-form__message { min-height: 0; margin: 0; color: #fff; font-size: 12px; text-align: center; }
.hs-db-form__message.is-error { margin-top: 4px; color: #ffe4a5; }

.hs-modal[hidden] { display: none; }
.hs-modal {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.hs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 0, 2, .78);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.hs-modal__panel,
.hs-consult-modal__panel {
    position: relative;
    width: 100%;
    max-width: 390px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #dfb2b1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(45, 0, 2, .38);
}
.hs-modal__panel h2,
.hs-consult-modal__panel h2 { margin: 0 0 14px; color: var(--hs-wine); font-size: 21px; line-height: 1.35; }
.hs-modal__panel dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 9px 12px;
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.55;
}
.hs-modal__panel dt { font-weight: 800; }
.hs-modal__panel dd { margin: 0; }
.hs-modal__panel > button,
.hs-consult-modal__panel > button {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--hs-wine);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.hs-consult-modal__panel { text-align: center; }
.hs-consult-modal__eyebrow { margin: 0 0 8px; color: var(--hs-red); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hs-consult-modal__panel > p:not(.hs-consult-modal__eyebrow) { margin: 0 0 20px; color: #735c5d; }
.hs-consult-modal__panel > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hs-consult-modal__timer {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
}
.hs-consult-modal__particles { position: absolute; inset: 0; pointer-events: none; }
.hs-consult-modal__particles i {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    border-radius: 50%;
    background: var(--hs-red);
}

@media (max-width: 640px) {
    :root { --hs-form-height: 164px; }
    .hs-quick { right: 10px; }
    .hs-quick__item { width: 46px; height: 46px; }
    .hs-db-fixed { padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 360px) {
    .hs-db-form__privacy { font-size: 11px; }
    .hs-db-form__interest { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
