/* ===== Dworx Survey Popup — PS 1.6 ===== */

.dworx-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    -webkit-transition: opacity 0.35s ease;
    transition: opacity 0.35s ease;
}

.dworx-overlay--visible {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
}

.dworx-popup {
    background: #ffffff;
    border-radius: 12px;
    -webkit-box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 460px;
    width: 92%;
    overflow: hidden;
}

/* Header */
.dworx-popup__header {
    background: #1a1a2e;
    color: #ffffff;
    text-align: center;
    padding: 26px 24px 20px;
}

.dworx-popup__icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.dworx-popup__header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff !important;
    border: none !important;
}

.dworx-popup__header p {
    margin: 0;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
}

/* Body */
.dworx-popup__body {
    padding: 22px 26px 26px;
}

.dworx-question {
    font-size: 1rem;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

/* Options */
.dworx-options {
    margin-bottom: 14px;
}

.dworx-option {
    cursor: pointer;
    display: block;
    margin-bottom: 9px;
}

.dworx-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dworx-option__box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 9px;
    padding: 12px 15px;
    -webkit-transition: border-color 0.2s, background 0.2s;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}

.dworx-option__box:hover {
    border-color: #4a90d9;
    background: #f0f7ff;
}

.dworx-option__box--selected {
    border-color: #1a73e8 !important;
    background: #e8f0fe !important;
}

.dworx-option__icon {
    font-size: 1.3rem;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.dworx-option__label {
    font-size: 0.93rem;
    color: #333;
    font-weight: 500;
}

/* Actions */
.dworx-popup__actions {
    margin-top: 18px;
}

.dworx-btn-submit {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
    background: #1a73e8;
    border: none;
    color: #fff;
    cursor: pointer;
    -webkit-transition: background 0.2s, opacity 0.2s;
    transition: background 0.2s, opacity 0.2s;
    margin-bottom: 8px;
}

.dworx-btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dworx-btn-submit:hover:not(:disabled) {
    background: #1558b0;
}

.dworx-btn-skip {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #999;
    font-size: 0.84rem;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    text-decoration: underline;
}

.dworx-btn-skip:hover {
    color: #555;
}

/* Erreur */
.dworx-error {
    color: #d32f2f;
    font-size: 0.84rem;
    text-align: center;
    margin-top: 8px;
}

/* Mobile */
@media (max-width: 480px) {
    .dworx-popup {
        border-radius: 10px 10px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
    }

    .dworx-overlay--visible {
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
    }
}
