.hearing-test-module {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #f4f3f1;
    color: #232323;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.hearing-test-module * {
    box-sizing: border-box;
}

.hearing-test-module svg {
    display: block;
    fill: currentColor;
}

.ht-stepper {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 20px 16px 24px;
    border-bottom: 1px solid #e8e5e1;
    gap: 8px;
}

.ht-step {
    flex: 1;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: #9e9a93;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ht-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e8e5e1;
    z-index: 0;
}

.ht-step.completed:not(:last-child)::after {
    background: #2a9db8;
}

.ht-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #d4d0c9;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    z-index: 1;
    transition: all 0.2s ease;
}

.ht-step-icon svg {
    width: 18px;
    height: 18px;
    color: #9e9a93;
}

.ht-step.active .ht-step-icon {
    border-color: #232323;
    color: #232323;
}

.ht-step.active .ht-step-icon svg {
    color: #232323;
}

.ht-step.completed .ht-step-icon {
    border-color: #2a9db8;
    background: #2a9db8;
    color: #fff;
}

.ht-step.completed .ht-step-icon svg {
    color: #fff;
}

.ht-panels {
    position: relative;
    min-height: 480px;
}

.ht-panel {
    display: none;
    padding: 48px 56px 64px;
    animation: ht-fade 0.3s ease;
}

.ht-panel.active {
    display: block;
}

@keyframes ht-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ht-row {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.ht-col {
    flex: 1;
    min-width: 280px;
}

.ht-content h1 {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 24px;
    color: #232323;
}

.ht-content h2 {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #232323;
}

.ht-content h2 strong,
.ht-content h1 strong {
    font-weight: 500;
}

.ht-accent {
    color: #2a9db8;
    font-weight: 500;
}

.ht-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    max-width: 560px;
    margin: 0 0 20px;
}

.ht-custom-slot {
    width: 100%;
    max-width: 100%;
    margin: 8px auto 28px;
    text-align: left;
}

.ht-custom-slot iframe,
.ht-custom-slot img,
.ht-custom-slot video {
    max-width: 100%;
    height: auto;
}

.ht-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 12px;
}

.ht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    border: 1px solid transparent;
    text-decoration: none;
}

.ht-btn:hover {
    transform: translateY(-1px);
}

.ht-btn:active {
    transform: translateY(0);
}

.ht-primary {
    background: #2a9db8;
    color: #fff;
    box-shadow: 0 4px 14px rgba(42,157,184,0.25);
}

.ht-primary:hover {
    background: #1f87a1;
    box-shadow: 0 6px 18px rgba(42,157,184,0.3);
}

a.ht-primary:link,
a.ht-primary:visited,
a.ht-primary:hover,
a.ht-primary:active,
.ht-primary:hover {
    color: #fff;
    text-decoration: none;
}

a.ht-ghost:link,
a.ht-ghost:visited,
a.ht-ghost:hover,
a.ht-ghost:active {
    color: #232323;
    text-decoration: none;
}

.ht-ghost {
    background: #fff;
    color: #232323;
    border-color: #d4d0c9;
}

.ht-ghost:hover {
    background: #f7f7f7;
}

.ht-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ht-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.ht-list-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2a9db8;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ht-list-body {
    flex: 1;
}

.ht-list-body strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.ht-list-body span {
    display: block;
    font-size: 14px;
    color: #6f6b64;
}

.ht-list-icon {
    width: 48px;
    height: 48px;
    color: #232323;
    flex-shrink: 0;
}

.ht-list-icon svg {
    width: 100%;
    height: 100%;
}

.ht-play-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #232323;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
}

.ht-play-inline svg {
    width: 22px;
    height: 22px;
}

.ht-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2a9db8;
}

.ht-illustration svg {
    width: 220px;
    height: 220px;
}

.ht-test-panel {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ht-freq-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 28px;
}

.ht-tooltip-icon {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.ht-tooltip-icon svg {
    width: 20px;
    height: 20px;
    color: #9e9a93;
}

.ht-tooltip-icon:hover .ht-tooltip-text,
.ht-tooltip-icon:focus .ht-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ht-tooltip-text {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 260px;
    background: #232323;
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.ht-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #232323;
}

.ht-volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto 16px;
}

.ht-volume-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #232323;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.ht-volume-btn:hover {
    background: #444;
}

.ht-slider-wrap {
    flex: 1;
    position: relative;
    padding: 12px 0;
}

.ht-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    transform: translateY(-50%);
    background: #e8e5e1;
    border-radius: 2px;
    pointer-events: none;
}

.ht-slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    transform: translateY(-50%);
    background: #2a9db8;
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.1s linear;
}

.ht-slider-ticks {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    padding: 0 2px;
}

.ht-slider-ticks span {
    width: 2px;
    height: 8px;
    background: #d4d0c9;
    border-radius: 1px;
}

.ht-volume {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 24px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

.ht-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d4d0c9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: border-color 0.15s, transform 0.1s;
}

.ht-volume::-webkit-slider-thumb:hover {
    border-color: #2a9db8;
    transform: scale(1.08);
}

.ht-volume::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d4d0c9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: border-color 0.15s, transform 0.1s;
}

.ht-volume::-moz-range-thumb:hover {
    border-color: #2a9db8;
    transform: scale(1.08);
}

.ht-volume::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.ht-volume::-moz-range-track {
    height: 6px;
    background: transparent;
}

.ht-volume-level {
    font-size: 14px;
    font-weight: 600;
    color: #6f6b64;
    margin-top: 6px;
}

.ht-slider-tooltip {
    position: relative;
    max-width: 360px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
}

.ht-slider-tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.ht-freq-tabs {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 40px;
    background: #e8e5e1;
    padding: 6px;
    border-radius: 50px;
}

.ht-freq {
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: #6f6b64;
    cursor: pointer;
    transition: all 0.15s;
}

.ht-freq.active {
    background: #fff;
    color: #232323;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ht-result-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.ht-result-header h1 {
    font-size: 36px;
    font-weight: 300;
    margin: 0 0 14px;
}

.ht-result-header p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.ht-result-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.ht-result-card {
    width: 320px;
    text-align: center;
}

.ht-gauge-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6f6b64;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.ht-gauge-label {
    font-size: 24px;
    font-weight: 500;
    color: #232323;
    margin-top: 16px;
}

.ht-gauge-label.good { color: #2a9db8; }
.ht-gauge-label.loss { color: #e09f3e; }
.ht-gauge-label.significant { color: #2a9db8; }

.ht-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.ht-cta h2 {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 10px;
}

.ht-cta p {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0 0 22px;
}

.ht-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.ht-form-wrap > h2 {
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 10px;
    text-align: center;
}

.ht-form-wrap > p {
    font-size: 15px;
    color: #4a4a4a;
    text-align: center;
    margin: 0 0 28px;
}

.ht-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 22px;
}

.ht-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #232323;
}

.ht-field input {
    padding: 12px 14px;
    border: 1px solid #d4d0c9;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #232323;
}

.ht-field input:focus {
    outline: none;
    border-color: #2a9db8;
    box-shadow: 0 0 0 3px rgba(42,157,184,0.15);
}

.ht-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.ht-fieldset legend {
    font-weight: 600;
    margin-bottom: 8px;
    width: 100%;
}

.ht-fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ht-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ht-form-message {
    min-height: 20px;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.ht-form-message.is-error {
    color: #b00020;
}

.ht-form-success {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.ht-form-success h2 {
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 10px;
}

.ht-form-success p {
    font-size: 15px;
    color: #4a4a4a;
}

.ht-assessment {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.ht-assessment-image {
    flex: 1;
    min-width: 220px;
    border-radius: 12px;
    overflow: hidden;
}

.ht-assessment-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ht-assessment-body {
    flex: 2;
    min-width: 280px;
}

.ht-assessment-body h2 {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 16px;
}

.ht-assessment-body h2 strong {
    font-weight: 500;
}

.ht-assessment-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 24px;
}

.ht-result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .ht-panel { padding: 32px 24px 48px; }
    .ht-content h1 { font-size: 32px; }
    .ht-content h2 { font-size: 26px; }
    .ht-row { flex-direction: column; gap: 32px; }
    .ht-illustration svg { width: 160px; height: 160px; }
    .ht-step { font-size: 10px; }
    .ht-step-icon { width: 32px; height: 32px; }
    .ht-panel-footer { flex-direction: column-reverse; align-items: stretch; }
    .ht-volume-control { gap: 8px; }
    .ht-assessment { flex-direction: column; padding: 28px; }
    .ht-form-grid { grid-template-columns: 1fr; }
}
