.ded-survey,
.ded-survey * {
    box-sizing: border-box;
}

.ded-survey[dir="rtl"] {
    text-align: right;
}

.ded-survey[dir="rtl"] .ded-brand,
.ded-survey[dir="rtl"] .ded-section-heading,
.ded-survey[dir="rtl"] .ded-whatsapp,
.ded-survey[dir="rtl"] .ded-success-whatsapp,
.ded-survey[dir="rtl"] .ded-submit-row,
.ded-survey[dir="rtl"] .ded-nps-scale {
    direction: rtl;
}

.ded-survey {
    --ded-accent: #9b7a5b;
    --ded-accent-dark: #6f5138;
    --ded-bg: #f7f4f0;
    --ded-ink: #211e1b;
    --ded-muted: #6c665f;
    --ded-line: #e4ddd5;
    --ded-card: #ffffff;
    width: 100%;
    margin: 0;
    padding: 34px 5% 48px;
    color: var(--ded-ink);
    background: var(--ded-bg);
    background:
        radial-gradient(circle at 8% 2%, color-mix(in srgb, var(--ded-accent) 13%, transparent), transparent 28%),
        radial-gradient(circle at 98% 40%, color-mix(in srgb, var(--ded-accent) 9%, transparent), transparent 31%),
        var(--ded-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.ded-survey button,
.ded-survey input,
.ded-survey textarea {
    font: inherit;
}

.ded-shell {
    width: min(100%, 1060px);
    margin: 0 auto;
}

.ded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 52px;
}

.ded-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.ded-brand > div {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.ded-brand strong {
    color: var(--ded-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 2.3vw, 22px);
    font-weight: 600;
    line-height: 1.2;
}

.ded-brand span:not(.ded-monogram) {
    color: var(--ded-muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ded-logo {
    width: auto;
    max-width: 180px;
    height: 48px;
    object-fit: contain;
}

.ded-monogram {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    flex: 0 0 48px;
    border: 1px solid color-mix(in srgb, var(--ded-accent) 60%, white);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--ded-accent), var(--ded-accent-dark));
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: .08em;
}

.ded-language {
    display: inline-flex;
    max-width: 100%;
    padding: 4px;
    border: 1px solid var(--ded-line);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 6px 20px rgba(42, 34, 28, .05);
}

.ded-language a {
    display: inline-flex;
    min-width: 58px;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--ded-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.ded-language a > span {
    font-size: 16px;
    letter-spacing: 0;
}

.ded-language a:hover {
    color: var(--ded-accent-dark);
    transform: translateY(-1px);
}

.ded-language a.is-active {
    color: #fff;
    background: var(--ded-accent-dark);
}

.ded-intro {
    width: min(100%, 790px);
    margin: 0 0 38px;
}

.ded-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ded-accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.ded-kicker::before {
    width: 34px;
    height: 1px;
    content: "";
    background: currentColor;
}

.ded-intro h1,
.ded-success h1 {
    max-width: 850px;
    margin: 13px 0 11px;
    color: var(--ded-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 67px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.ded-intro h2 {
    margin: 0 0 14px;
    color: var(--ded-accent-dark);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 650;
    line-height: 1.35;
}

.ded-intro > p {
    max-width: 700px;
    margin: 0;
    color: var(--ded-muted);
    font-size: clamp(15px, 2vw, 18px);
}

.ded-alert {
    margin: 0 0 24px;
    padding: 14px 17px;
    border: 1px solid #d8a7a1;
    border-radius: 12px;
    color: #742e27;
    background: #fff3f1;
    font-weight: 650;
}

.ded-form {
    display: grid;
    gap: 20px;
}

.ded-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.ded-card {
    position: relative;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid var(--ded-line);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 52px rgba(52, 42, 34, .055);
}

.ded-card::after {
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    border: 38px solid color-mix(in srgb, var(--ded-accent) 7%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.ded-section-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 0 28px;
}

.ded-section-heading > span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    flex: 0 0 35px;
    border: 1px solid color-mix(in srgb, var(--ded-accent) 55%, white);
    border-radius: 50%;
    color: var(--ded-accent-dark);
    background: color-mix(in srgb, var(--ded-accent) 9%, white);
    font-size: 11px;
    font-weight: 800;
}

.ded-section-heading h3 {
    margin: 2px 0 0;
    color: var(--ded-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 500;
    line-height: 1.17;
}

.ded-section-heading p {
    margin: 5px 0 0;
    color: var(--ded-muted);
    font-size: 14px;
}

.ded-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
}

.ded-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ded-grid-full {
    grid-column: 1 / -1;
}

.ded-field {
    display: grid;
    gap: 8px;
    color: var(--ded-ink);
    font-size: 14px;
    font-weight: 700;
}

.ded-field > span b,
.ded-consents b {
    color: #a13f34;
}

.ded-field input,
.ded-field textarea {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid #d9d1c9;
    border-radius: 12px;
    outline: 0;
    color: var(--ded-ink);
    background: #fff;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.4;
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ded-field textarea {
    min-height: 118px;
    resize: vertical;
}

.ded-field input::placeholder,
.ded-field textarea::placeholder {
    color: #9b948d;
}

.ded-field input:focus,
.ded-field textarea:focus {
    border-color: var(--ded-accent);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ded-accent) 13%, transparent);
}

.ded-field input[aria-invalid="true"],
.ded-field textarea[aria-invalid="true"] {
    border-color: #b24339;
    box-shadow: 0 0 0 3px rgba(178,67,57,.11);
}

.ded-rating-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
}

.ded-rating {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-width: 0;
    margin: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--ded-line);
}

.ded-rating:last-child {
    border-bottom: 0;
}

.ded-rating legend {
    display: contents;
    color: var(--ded-ink);
    font-size: 14px;
    font-weight: 700;
}

.ded-rating-options {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ded-rating-options label {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.ded-rating-options input,
.ded-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ded-rating-options span {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border: 1px solid #d8d0c8;
    border-radius: 50%;
    color: var(--ded-muted);
    background: #fff;
    font-size: 13px;
    font-weight: 750;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ded-rating-options label:hover span {
    border-color: var(--ded-accent);
    color: var(--ded-accent-dark);
    transform: translateY(-2px);
}

.ded-rating-options input:focus-visible + span,
.ded-option input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--ded-accent) 28%, transparent);
    outline-offset: 2px;
}

.ded-rating-options input:checked + span {
    border-color: var(--ded-accent-dark);
    color: #fff;
    background: var(--ded-accent-dark);
    box-shadow: 0 7px 18px color-mix(in srgb, var(--ded-accent-dark) 28%, transparent);
    transform: translateY(-1px);
}

.ded-nps {
    display: block;
    padding: 4px 0 0;
    border: 0;
}

.ded-nps .ded-rating-options {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 6px;
}

.ded-nps .ded-rating-options label,
.ded-nps .ded-rating-options span {
    width: 100%;
}

.ded-nps .ded-rating-options span {
    height: 43px;
    border-radius: 10px;
}

.ded-nps-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: var(--ded-muted);
    font-size: 11px;
    font-weight: 650;
}

.ded-option-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ded-option {
    position: relative;
    display: flex;
    min-width: 0;
    cursor: pointer;
}

.ded-option span {
    display: grid;
    width: 100%;
    min-height: 70px;
    place-items: center;
    padding: 10px;
    border: 1px solid #d8d0c8;
    border-radius: 13px;
    color: var(--ded-muted);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}

.ded-option:hover span {
    border-color: var(--ded-accent);
    color: var(--ded-accent-dark);
    transform: translateY(-2px);
}

.ded-option input:checked + span {
    border-color: var(--ded-accent-dark);
    color: #fff;
    background: var(--ded-accent-dark);
}

.ded-consents {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
}

.ded-consents label {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: flex-start;
    gap: 12px;
    color: var(--ded-ink);
    cursor: pointer;
    font-size: 14px;
}

.ded-consents input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--ded-accent-dark);
}

.ded-submit-row {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 12px 4px 0;
}

.ded-submit {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--ded-accent-dark);
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--ded-accent-dark) 23%, transparent);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ded-submit:hover {
    color: #fff;
    background: var(--ded-ink);
    box-shadow: 0 15px 32px rgba(33,30,27,.2);
    transform: translateY(-2px);
}

.ded-submit:disabled {
    cursor: wait;
    opacity: .68;
    transform: none;
}

.ded-submit-row > p {
    max-width: 760px;
    margin: 0;
    color: var(--ded-muted);
    font-size: 12px;
}

.ded-whatsapp {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid #bfe4ca;
    border-radius: 20px;
    background: #f2fbf5;
    box-shadow: 0 12px 36px rgba(18, 96, 47, .06);
}

.ded-whatsapp-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #1fa855;
}

.ded-whatsapp-icon svg,
.ded-success-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.ded-whatsapp strong {
    display: block;
    margin-bottom: 2px;
    color: #155f35;
    font-size: 16px;
}

.ded-whatsapp p {
    margin: 0;
    color: #427158;
    font-size: 13px;
}

.ded-whatsapp > a {
    padding: 10px 15px;
    border: 1px solid #79c793;
    border-radius: 999px;
    color: #155f35;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.ded-whatsapp > a:hover {
    border-color: #155f35;
    color: #fff;
    background: #155f35;
}

.ded-success {
    position: relative;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(34px, 7vw, 78px);
    overflow: hidden;
    border: 1px solid var(--ded-line);
    border-radius: 28px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 22px 65px rgba(52,42,34,.07);
}

.ded-success::after {
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 330px;
    height: 330px;
    border: 70px solid color-mix(in srgb, var(--ded-accent) 8%, transparent);
    border-radius: 50%;
    content: "";
}

.ded-success-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    margin-bottom: 30px;
    border-radius: 50%;
    color: #fff;
    background: #24894c;
    box-shadow: 0 12px 30px rgba(36,137,76,.2);
    font-size: 30px;
}

.ded-success > p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 0 14px;
    color: var(--ded-muted);
    font-size: 16px;
}

.ded-success-whatsapp {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    background: #1f9d50;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ded-success-whatsapp:hover {
    color: #fff;
    background: #16753b;
}

.ded-success-whatsapp span {
    display: grid;
    gap: 0;
}

.ded-success-whatsapp small {
    opacity: .83;
    font-size: 11px;
    font-weight: 650;
}

@media (max-width: 820px) {
    .ded-survey {
        padding: 24px 4% 38px;
    }

    .ded-header {
        margin-bottom: 40px;
    }

    .ded-header.has-many-languages {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ded-header.has-many-languages .ded-language {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-radius: 18px;
    }

    .ded-header.has-many-languages .ded-language a {
        width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ded-grid-2 {
        grid-template-columns: 1fr;
    }

    .ded-grid-full {
        grid-column: auto;
    }

    .ded-rating {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ded-rating-options {
        justify-content: flex-start;
    }

    .ded-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ded-whatsapp {
        grid-template-columns: 48px 1fr;
    }

    .ded-whatsapp > a {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .ded-survey {
        padding: 18px 14px 30px;
    }

    .ded-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 32px;
    }

    .ded-brand {
        gap: 9px;
    }

    .ded-monogram {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        font-size: 13px;
    }

    .ded-brand strong {
        font-size: 16px;
    }

    .ded-brand span:not(.ded-monogram) {
        font-size: 9px;
    }

    .ded-language a {
        min-width: 48px;
        min-height: 33px;
        padding: 0 7px;
    }

    .ded-language a > span {
        font-size: 14px;
    }

    .ded-intro h1,
    .ded-success h1 {
        font-size: 37px;
    }

    .ded-card {
        padding: 23px 17px;
        border-radius: 19px;
    }

    .ded-section-heading {
        gap: 10px;
        margin-bottom: 23px;
    }

    .ded-section-heading > span {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .ded-section-heading h3 {
        font-size: 23px;
    }

    .ded-rating-options {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
    }

    .ded-rating-options label,
    .ded-rating-options span {
        width: 100%;
    }

    .ded-nps .ded-rating-options {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .ded-nps .ded-rating-options label:last-child:nth-child(6n + 5) {
        grid-column: auto;
    }

    .ded-option-grid {
        grid-template-columns: 1fr;
    }

    .ded-option span {
        min-height: 52px;
    }

    .ded-submit {
        width: 100%;
    }

    .ded-whatsapp {
        padding: 19px 16px;
        border-radius: 17px;
    }

    .ded-success {
        min-height: 500px;
        padding: 35px 22px;
        border-radius: 20px;
    }
}

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