/* How did you hear about Yuminaga? — first-visit survey dialog */

.hear-about-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-color, #2a2a28);
    overflow: auto;
}

.hear-about-dialog::backdrop {
    background: rgba(15, 22, 18, 0.55);
}

.hear-about-dialog[open]::backdrop {
    animation: hear-about-backdrop-in 0.28s ease;
}

@keyframes hear-about-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hear-about-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hear-about-inner,
    .hear-about-dialog[open]::backdrop {
        animation: none;
    }
}

.hear-about-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 1.5rem);
    margin: auto;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background-color: #163026;
    background-image: url("/images-en/hero/World%E2%80%99s%20Leading%20Manufacturer%20in%20Spice%20and%20Tea.png");
    background-size: cover;
    background-position: center;
    color: #f7f4ea;
    box-shadow: 0 24px 60px rgba(15, 22, 18, 0.28);
    animation: hear-about-in 0.28s ease;
}

.hear-about-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to bottom, rgba(15, 22, 18, 0.28), rgba(15, 22, 18, 0.5));
    pointer-events: none;
}

.hear-about-form-panel {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1.5rem 1.5rem;
    overflow-y: auto;
}

.hear-about-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    z-index: 2;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hear-about-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hear-about-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hear-about-close svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hear-about-title {
    margin: 0 2rem 0.5rem 0;
    font-family: var(--font-title, 'Cormorant Garamond', serif);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hear-about-lead {
    margin: 0 0 1.15rem;
    font-family: var(--font-body, 'Times New Roman', Times, serif);
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(247, 244, 234, 0.9);
}

.hear-about-options {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}

.hear-about-options legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hear-about-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(32, 60, 43, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-color, #2a2a28);
    color-scheme: light;
    cursor: pointer;
    font-family: var(--font-nav, 'Poppins', sans-serif);
    font-size: 0.92rem;
    line-height: 1.3;
    -webkit-tap-highlight-color: rgba(127, 162, 77, 0.28);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.hear-about-option:hover {
    border-color: var(--matcha-color, #7fa24d);
}

.hear-about-option:has(input:focus-visible) {
    outline: 2px solid var(--matcha-color, #7fa24d);
    outline-offset: 2px;
}

.hear-about-option:has(input:checked) {
    border-color: var(--matcha-color, #7fa24d);
    background: #eef6e0;
    box-shadow: inset 0 0 0 1px rgba(127, 162, 77, 0.35);
}

.hear-about-option input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid #8a8a84;
    border-radius: 50%;
    background: #fff;
    accent-color: var(--matcha-color, #7fa24d);
}

.hear-about-option input:checked {
    border-color: var(--matcha-color, #7fa24d);
    background: var(--matcha-color, #7fa24d);
    box-shadow: inset 0 0 0 3px #fff;
}

.hear-about-other {
    display: none;
    margin: 0 0 1rem;
}

.hear-about-other.is-visible {
    display: block;
}

.hear-about-other label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-nav, 'Poppins', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f7f4ea;
}

.hear-about-other input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    font-family: var(--font-body, 'Times New Roman', Times, serif);
    font-size: 1rem;
    color: var(--text-color, #2a2a28);
    background: #fff;
    border: 1px solid rgba(32, 60, 43, 0.16);
    border-radius: 6px;
}

.hear-about-other input:focus {
    outline: 2px solid var(--btn-color, #203c2b);
    outline-offset: 0;
    border-color: var(--btn-color, #203c2b);
}

.hear-about-other input.is-invalid {
    border-color: #c0392b;
}

.hear-about-message {
    min-height: 1.2em;
    margin: 0 0 0.85rem;
    font-family: var(--font-nav, 'Poppins', sans-serif);
    font-size: 0.88rem;
    line-height: 1.4;
}

.hear-about-message.is-error {
    color: #ffb4ab;
}

.hear-about-message.is-success {
    color: #c5d9a4;
}

.hear-about-submit {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-nav, 'Poppins', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--btn-color, #203c2b);
    border: 1px solid var(--btn-color, #203c2b);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.hear-about-submit:hover:not(:disabled) {
    background: #2a5038;
    border-color: #2a5038;
}

.hear-about-submit:focus-visible {
    outline: 2px solid var(--btn-color, #203c2b);
    outline-offset: 2px;
}

.hear-about-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.hear-about-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hear-about-success {
    position: relative;
    z-index: 1;
    display: none;
    padding: 2.25rem 1.5rem 1.85rem;
    text-align: center;
}

.hear-about-success.is-visible {
    display: block;
}

.hear-about-success h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-title, 'Cormorant Garamond', serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hear-about-success p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(247, 244, 234, 0.9);
}

@media (max-width: 480px) {
    .hear-about-dialog {
        padding: 0.6rem;
    }

    .hear-about-inner {
        max-height: calc(100vh - 1.25rem);
    }

    .hear-about-form-panel {
        padding: 1.5rem 1.15rem 1.25rem;
    }

    .hear-about-title {
        font-size: 1.45rem;
    }

    .hear-about-option {
        min-height: 2.75rem;
        padding: 0.75rem 0.8rem;
    }
}
