/* ai-tool-advisor/assets/css/ai-tool-advisor-shortcode.css */

.ai-tool-advisor-form-wrapper {
    background-color: #fdfdfd; /* Màu nền nhẹ nhàng */
    padding: 30px;
    border-radius: 8px;       /* Bo góc mềm mại */
    border: 1px solid #e9ecef; /* Viền tinh tế */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Bóng đổ nhẹ nhàng cho chiều sâu */
    max-width: 920px;         /* Giới hạn chiều rộng tối đa của form */
    margin: 30px auto;        /* Căn giữa form trên trang và tạo khoảng cách trên dưới */
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-input-area {
    display: flex;
    flex-direction: column; /* Mặc định xếp chồng cho mobile */
    gap: 15px;           /* Khoảng cách giữa input và button */
    margin-bottom: 25px;
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-user-input {
    flex-grow: 1;
    padding: 14px 18px;       /* Tăng padding cho input */
    font-size: 1.05em;          /* Tăng kích thước chữ một chút */
    border: 1px solid #ced4da;   /* Viền chuẩn */
    border-radius: 6px;       /* Bo góc cho input */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075); /* Bóng đổ bên trong nhẹ */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-user-input:focus {
    border-color: #007bff; /* Màu viền khi focus (màu primary Bootstrap ví dụ) */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25), inset 0 1px 2px rgba(0,0,0,0.075);
    outline: none; /* Bỏ outline mặc định */
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-submit-button {
    padding: 14px 22px;       /* Tăng padding cho nút */
    font-size: 1.05em;          /* Tăng kích thước chữ nút */
    font-weight: 500;        /* Độ đậm vừa phải */
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 6px;       /* Bo góc cho nút */
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: none; /* Bỏ viết hoa nếu không muốn */
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-submit-button:hover {
    background-color: #0056b3; /* Màu đậm hơn khi hover */
    transform: translateY(-1px); /* Hiệu ứng nhấc nhẹ nút lên */
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-submit-button.ai-tool-advisor-button-disabled,
.ai-tool-advisor-form-wrapper .ai-tool-advisor-submit-button:disabled {
    background-color: #6c757d; /* Màu xám khi disable */
    cursor: not-allowed;
    transform: none;
}

/* Khu vực hiển thị kết quả */
.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0; /* Đường kẻ phân cách nhẹ */
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area li {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef; /* Viền cho mỗi item kết quả */
    box-shadow: 0 2px 4px rgba(0,0,0,0.04); /* Bóng đổ nhẹ cho item */
    position: relative; /* Cho phép định vị ::before */
    padding-left: 35px; /* Tạo không gian cho icon checkmark */
}
.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area li::before {
    content: "✔"; /* Mã Unicode cho checkmark */
    color: #28a745;    /* Màu xanh lá cây cho checkmark */
    position: absolute;
    left: 12px;
    top: 16px; /* Điều chỉnh vị trí dọc nếu cần */
    font-weight: bold;
    font-size: 1.1em;
}


.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area li a {
    font-weight: 600; /* Tên công cụ đậm hơn */
    color: #0056b3;    /* Màu link */
    text-decoration: none;
    font-size: 1.1em;
}
.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area li a:hover {
    text-decoration: underline;
    color: #003d80; /* Màu link khi hover */
}


.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area li small {
    display: block; /* Cho mô tả xuống dòng mới */
    color: #495057;    /* Màu chữ mô tả */
    font-size: 0.95em;
    margin-top: 6px;
    line-height: 1.5;
}

/* Tiêu đề "Công cụ AI gợi ý:" */
.ai-tool-advisor-form-wrapper .ai-tool-advisor-results-area strong.results-title {
    display: block;
    font-size: 1.3em;
    color: #343a40;
    margin-bottom: 18px;
    text-align: left; /* Căn trái cho tiêu đề kết quả */
}

/* Thông báo loading và error */
.ai-tool-advisor-form-wrapper .ai-tool-advisor-message {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 1.05em;
}
.ai-tool-advisor-form-wrapper .ai-tool-advisor-loading-message {
    color: #0056b3;
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
}
.ai-tool-advisor-form-wrapper .ai-tool-advisor-error-message {
    color: #721c24; /* Màu đỏ sẫm cho lỗi */
    background-color: #f8d7da; /* Nền hồng nhạt cho lỗi */
    border: 1px solid #f5c6cb; /* Viền đỏ nhạt cho lỗi */
    font-weight: 500;
}

/* Responsive cho desktop: input và button nằm ngang */
@media (min-width: 600px) {
    .ai-tool-advisor-form-wrapper .ai-tool-advisor-input-area {
        flex-direction: row;
        align-items: center; /* Căn giữa các item theo chiều dọc */
    }
    .ai-tool-advisor-form-wrapper .ai-tool-advisor-submit-button {
        white-space: nowrap; /* Tránh nút bị xuống dòng chữ */
    }
}