.dmdd-app {
    box-sizing: border-box;
    max-width: 960px;
    margin: 28px auto;
    padding: 24px;
    border: 1px solid #e5e0dc;
    border-radius: 8px;
    background: #fff;
    color: #242424;
}

.dmdd-app * {
    box-sizing: border-box;
}

.dmdd-head {
    margin-bottom: 18px;
}

.dmdd-kicker,
.dmdd-count {
    margin: 0 0 6px;
    color: #9a3f45;
    font-size: 13px;
    font-weight: 700;
}

.dmdd-head h2,
.dmdd-result h3,
.dmdd-question h3 {
    margin: 0 0 10px;
    line-height: 1.35;
}

.dmdd-head p {
    margin: 0;
    line-height: 1.8;
}

.dmdd-progress {
    height: 7px;
    margin: 18px 0 22px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0ece8;
}

.dmdd-progress span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: #b6424c;
    transition: width 180ms ease;
}

.dmdd-question {
    display: none;
}

.dmdd-question.is-active {
    display: block;
}

.dmdd-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dmdd-option {
    display: block;
    min-height: 58px;
    cursor: pointer;
}

.dmdd-option input {
    position: absolute;
    opacity: 0;
}

.dmdd-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px;
    border: 1px solid #ddd4cf;
    border-radius: 8px;
    background: #faf8f6;
    color: #27201d;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.dmdd-option input:checked + span {
    border-color: #b6424c;
    background: #fff3f4;
    color: #8f2630;
    box-shadow: 0 0 0 2px rgba(182, 66, 76, 0.12);
}

.dmdd-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.dmdd-button,
.dmdd-reset,
.dmdd-card-button {
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: #b6424c;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.dmdd-button {
    min-width: 112px;
    padding: 12px 18px;
}

.dmdd-button-secondary {
    background: #6f6661;
}

.dmdd-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.dmdd-form.is-last-step [data-dmdd-next] {
    display: none !important;
}

.dmdd-result {
    margin-top: 24px;
}

.dmdd-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.dmdd-card {
    overflow: hidden;
    border: 1px solid #e3ddd8;
    border-radius: 8px;
    background: #fff;
}

.dmdd-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.dmdd-card-media {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    background: #f2efec;
}

.dmdd-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 14px 14px;
}

.dmdd-card h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.dmdd-reset {
    display: inline-block;
    margin-top: 16px;
    padding: 11px 14px;
    background: #6f6661;
}

.dmdd-banner-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 20px auto;
}

.dmdd-banner-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.dmdd-banner-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 760px) {
    .dmdd-app {
        padding: 18px 14px;
    }

    .dmdd-options,
    .dmdd-result-grid {
        grid-template-columns: 1fr;
    }

    .dmdd-banner-wrap {
        margin: 14px auto;
    }

    .dmdd-banner-image {
        border-radius: 4px;
    }

    .dmdd-card-media {
        height: 320px;
    }
}


.dmdd-note {
    margin: 8px 0 0;
    color: #8a5b00;
    font-size: 14px;
    line-height: 1.7;
}
