.survey-modal[hidden] {
    display: none !important;
}

.survey-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.survey-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.survey-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 2rem 1.75rem 1.75rem;
    outline: none;
}

.survey-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.survey-modal__close:hover {
    color: #035f24;
}

.survey-modal__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    color: #035f24;
}

.survey-modal__lead,
.survey-modal__subtitle {
    margin: 0 0 0.75rem;
    line-height: 1.5;
    color: #1c2125;
}

.survey-modal__subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
}

.survey-modal__options {
    border: 0;
    margin: 0 0 1.25rem;
    padding: 0;
}

.survey-modal__options-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.survey-modal__option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    cursor: pointer;
    line-height: 1.4;
}

.survey-modal__option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.survey-modal__other-input {
    display: block;
    width: 100%;
    margin: 0.25rem 0 0.75rem 1.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.survey-modal__other-input:disabled {
    background: #f5f5f5;
    color: #999;
}

.survey-modal__submit {
    width: 100%;
}

body.survey-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .survey-modal__dialog {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}
