.xtai-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: sans-serif;
}
.xtai-container h3, .xtai-container h2 {
    text-align: center;
    color: #333;
}
.xtai-container form p {
    margin-bottom: 15px;
}
.xtai-container form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
.xtai-container form input[type="text"],
.xtai-container form input[type="date"],
.xtai-container form input[type="email"],
.xtai-container form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.xtai-container form button, .xtai-container button {
    width: 100%;
    padding: 12px;
    background-color: #5a3e9b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.xtai-container form button:hover, .xtai-container button:hover {
    background-color: #48317a;
}
.xtai-result-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #5a3e9b;
}
.xtai-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.xtai-notice.success {
    background-color: #d4edda;
    border-left: 5px solid #28a745;
    color: #155724;
}
.xtai-pro-package .xtai-slider-placeholder {
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    margin: 20px 0;
    border-radius: 4px;
}
.xtai-pro-package .xtai-price {
    font-size: 24px;
    font-weight: bold;
    color: #d9534f;
    text-align: center;
    margin: 20px 0;
}

#xtai-loading-overlay {
    position: fixed; /* Hiển thị trên toàn màn hình */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Nền đen mờ */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.xtai-loading-box {
    background: #fff;
    padding: 25px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hiệu ứng spinner xoay tròn */
.xtai-loader {
    border: 5px solid #f3f3f3; /* Màu xám nhạt */
    border-top: 5px solid #3498db; /* Màu xanh */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: xtai-spin 1.5s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes xtai-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#xtai-loading-text {
    color: #333;
    font-size: 16px;
    font-weight: bold;
}
/* File: css/style.css (Thêm vào cuối file) */

.xtai-result-box .xtai-result-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #5a3e9b;
    margin-top: 0;
    border-bottom: 2px solid #5a3e9b;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.xtai-result-box h4 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.xtai-result-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.xtai-result-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.xtai-result-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.xtai-result-section p strong {
    color: #48317a;
    margin-right: 5px;
}
/* File: css/style.css (Thêm vào cuối file) */

/* Style cho khu vực kết quả rộng 100% */
#xtai-full-width-result-wrapper {
    width: 100%;
    margin-top: 30px;
}

/* Style cho các mục trong bảng phân tích cung */
/* Container cho mỗi mục cung */
.xtai-palace-item {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dotted #e0e0e0;
}
.xtai-palace-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Tiêu đề của cung (VD: 1. CUNG MỆNH) */
.xtai-palace-title {
    font-size: 16px;
    font-weight: bold;
    color: #48317a; /* Màu tím đậm */
    margin: 0 0 5px 0;
    text-align: left; /* Luôn căn trái */
}

/* Nội dung luận giải của cung */
.xtai-palace-content {
    margin: 0;
    display: flex;
    justify-content: center;
    padding-left: 25px; /* Thụt lề vào so với tiêu đề */
}

/* Style đặc biệt cho lời kêu gọi Pro */
.xtai-upsell-notice {
    text-align: center; /* Căn giữa */
    font-style: italic;  /* In nghiêng */
    color: #0073aa;      /* Màu xanh dương */
    cursor: pointer;
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.xtai-upsell-notice:hover {
    background-color: #e0eaf1;
    text-decoration: underline;
}
/* File: css/style.css (Thêm vào cuối file) */

.xtai-cta-container {
    background-color: #f0eef6; /* Màu nền tím nhạt */
    border: 1px solid #dcd6e8;
    border-radius: 8px;
    padding: 30px 40px;
    text-align: center;
    margin: 40px auto; /* Tạo khoảng cách với các thành phần khác */
    max-width: 800px;
}

.xtai-cta-container h2 {
    font-size: 26px;
    color: #48317a; /* Màu tím đậm */
    margin-top: 0;
    margin-bottom: 15px;
}

.xtai-cta-container p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

#xtai-cta-button {
    display: inline-block;
    width: auto; /* Không chiếm 100% chiều rộng */
    padding: 15px 35px;
    background-color: #d9534f; /* Màu đỏ nổi bật */
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(217, 83, 79, 0.3);
}

#xtai-cta-button:hover {
    background-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 83, 79, 0.4);
}
/* File: css/style.css (Thêm vào cuối file) */

/* Style cho nhóm nút radio */
.xtai-radio-group {
    display: flex;
    gap: 25px; /* Khoảng cách giữa hai nút */
    margin-top: 8px;
    justify-content: center;
}

.xtai-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal !important; /* Ghi đè lại font-weight bold mặc định của label */
    margin-bottom: 0 !important;
}

/* Tùy chỉnh lại giao diện của nút radio */
.xtai-radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    top: -1px;
    transition: all 0.2s ease-in-out;
}

.xtai-radio-group input[type="radio"]:checked {
    border-color: #5a3e9b; /* Màu tím khi được chọn */
}

/* Thêm vòng tròn nhỏ bên trong khi được chọn */
.xtai-radio-group input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #5a3e9b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* FILE: css/style.css (Thêm vào cuối file) */

/* ==========================================================
   CSS CHO KHỐI UPLOAD ẢNH (3 CỘT)
   ========================================================== */

/* Container chính cho 3 box upload */
.xtai-image-upload-group { 
    display: flex; /* Bật Flexbox để các box nằm trên một hàng */
    justify-content: space-between; 
    gap: 15px; /* Khoảng cách giữa các box */
    flex-wrap: wrap; 
}

/* Từng box upload con */
.xtai-image-upload-box { 
    flex: 1; /* Giúp 3 box có chiều rộng bằng nhau */
    min-width: 150px; 
    text-align: center; 
    border: 1px dashed #ccc; 
    padding: 10px; 
    border-radius: 5px;
    display: flex; /* Dùng flexbox bên trong box con */
    flex-direction: column; /* Sắp xếp các phần tử theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
}

/* Khung hiển thị ảnh mẫu hoặc ảnh preview */
.xtai-image-placeholder { 
    width: 100%; /* Chiếm hết chiều rộng của box */
    height: 150px; 
    object-fit: cover; 
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

/* Giấu đi input file mặc định của trình duyệt */
.xtai-image-input {
    display: none;
}

/* Tạo kiểu cho nút "Chọn tệp" giả, thay thế cho input thật */
.xtai-upload-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #5a3e9b; /* Màu tím đồng bộ */
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}

.xtai-upload-button:hover {
    background-color: #48317a;
}

/* Vùng hiển thị tên file đã chọn */
.xtai-file-name {
    font-size: 12px;
    color: #555;
    min-height: 18px; /* Giữ chiều cao ổn định kể cả khi chưa có file */
    word-break: break-all;
}