/* ===========================
   FORM CONTAINER
=========================== */
#astro-ai-form {
    max-width: 430px;
    padding: 20px;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

/* ===========================
   LABELS
=========================== */
#astro-ai-form label {
    font-weight: 600;
    margin-top: 18px;
    display: block;
    font-size: 14px;
}

/* ===========================
   INPUTS
=========================== */
#astro-ai-form input,
#astro-ai-form select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    margin-top: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* ===========================
   ANSWER TYPE BUTTONS
=========================== */
.answer-type-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.answer-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f5f5ff;
    border: 2px solid #b8a6ff;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    font-weight: 600;
    font-size: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 90px;
}

.answer-btn small {
    font-weight: 400;
    color: #666;
}

.answer-btn:hover {
    background: #e7ddff;
}

.answer-btn.selected {
    background: #6a4ff7;
    border-color: #6a4ff7;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===========================
   MULTISELECT / SEARCH
=========================== */
.multi-select-container {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

#search-box {
    border: none;
    flex: 1;
    min-width: 120px;
}
#search-box:focus {
    outline: none;
}

/* ===========================
   OPTIONS DROPDOWN
=========================== */
.options-box {
    display: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    max-height: 240px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: absolute;
    width: calc(100% - 2px);
    z-index: 100;
}

.option-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.option-item:hover {
    background: #f2edff;
}

.option-item.selected {
    background: #6a4ff7;
    color: white;
}

/* ===========================
   FORM SUBMIT BUTTON
=========================== */
#astro_show_btn {
    margin-top: 25px;
    width: 100%;
    padding: 13px;
    background: #6a4ff7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}

#astro_show_btn:hover {
    background: #5b42db;
}

/* ===========================
   INLINE ANSWER TYPE VARIANT
=========================== */
.answer-type-buttons button {
    margin: 4px;
    padding: 8px 14px;
    border: 1px solid #0073aa;
    background-color: #fff;
    color: #0073aa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.answer-type-buttons button.selected,
.answer-type-buttons button:hover {
    background-color: #0073aa;
    color: #fff;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 480px) {
    .answer-type-container {
        flex-direction: column;
    }
    .answer-btn,
    .answer-type-buttons button {
        width: 100%;
    }
}

/* ===========================
   SELECTED QUESTIONS LIST
=========================== */
#selected-question-list {
    margin-top: 14px;
    font-size: 14px;
}

.selected-question-item {
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

/* ===========================
   DELETE (×) BUTTON
=========================== */
#selected-question-list .remove-q {
    color: #ff3d3d !important;
    font-weight: bold;
    margin-left: 6px;
    font-size: 18px;
    cursor: pointer !important;
    display: inline-block;
    pointer-events: auto !important;
}

#selected-question-list .remove-q:hover {
    color: #d20000 !important;
    cursor: pointer !important;
}
