/* ============================================================
   TBPL Design Support — design-support.css
   ============================================================ */

/* ── Trigger button ─────────────────────────────────────────── */
.design-support-btn {
    background-color: transparent !important;
    color: var(--wd-primary-color) !important;
    border: 2px solid var(--wd-primary-color) !important;
    padding: 9px 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    line-height: 1.5 !important;
}

.design-support-btn:hover {
    background-color: var(--wd-primary-color) !important;
    color: #ffffff !important;
}

/* ── Overlay ────────────────────────────────────────────────── */
#design-support-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* ── Popup container ────────────────────────────────────────── */
#design-support-popup {
    background: #fff;
    border-radius: 8px;
    padding: 35px 30px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    max-height: 90vh;
    overflow-y: auto;
}

#design-support-popup h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--wd-primary-color);
}

#design-support-popup > p {
    margin: 0 0 20px;
    font-size: 13px;
    color: #666;
}

/* ── Close button ───────────────────────────────────────────── */
#close-design-support {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

#close-design-support:hover {
    color: #333;
}

/* ── Fields ─────────────────────────────────────────────────── */
.ds-field {
    margin-bottom: 16px;
}

.ds-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.ds-field input,
.ds-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    outline: none;
    font-family: inherit;
}

.ds-field input:focus,
.ds-field textarea:focus {
    border-color: var(--wd-primary-color);
}

.ds-field textarea {
    height: 100px;
    resize: vertical;
}

/* ── Logged-in user info strip ──────────────────────────────── */
.ds-logged-info {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}

.ds-logged-info span {
    color: #999;
    font-size: 12px;
}

/* ── Submit button ──────────────────────────────────────────── */
#ds-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--wd-primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: inherit;
}

#ds-submit-btn:hover:not(:disabled) {
    opacity: 0.85;
}

#ds-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Response message ───────────────────────────────────────── */
#ds-response-msg {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    min-height: 1em;
}

#ds-response-msg.success {
    color: #2d8653;
}

#ds-response-msg.error {
    color: #c0392b;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    #design-support-popup {
        padding: 24px 18px;
    }

    .design-support-btn {
        margin-left: 0 !important;
        margin-top: 10px !important;
        display: block !important;
        text-align: center !important;
    }
}
