/* === KHUNG BAO NGOÀI === */
.lvn-module-wrapper {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* HEADER */
.lvn-module-header h3, .lvn-pro-header h3 {
    color: #b71c1c; /* Màu đỏ phong thủy */
    margin: 0 0 5px;
    font-size: 22px;
    text-align: center;
    text-transform: uppercase;
}
.lvn-module-header p, .lvn-pro-header ul {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}
.lvn-pro-header ul {
    text-align: left;
    background: #fff8e1;
    padding: 15px 20px 15px 40px;
    border-radius: 6px;
    border: 1px dashed #ffc107;
}

/* FORM GRID */
.lvn-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.lvn-notification{
    padding: 15px;
}
.am-lich-extra {
    display: inline;
}
.lvn-pro-form-namxem{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.lvn-pro-form-namxem_col{
    width: 46%;
}
@media (max-width: 600px) {
    .lvn-form-grid { grid-template-columns: 1fr; }
    .date-range-group{
        display: block;
    }
    .am-lich-extra {
        display: block;
        text-align: center;
    }
    .day-score-badge { 
        display: block !important;
    }  
    .day-card-body>.display-flex{
        display: block;        
    }

}
@media (max-width: 768px) {
    .lvn-day-card{
    flex-direction: column !important;
    }
    
    .lvn-day-card .day-card-head{
        width: 100% !important;
    }
    .lvn-pro-form-wrapper{
        width: 100%;
    }
    .day-header-row{
        justify-content: space-between;
        gap: unset;
    }
}
/* FORM ELEMENTS */
.lvn-form-group { margin-bottom: 15px; }
.lvn-form-group.full-width { grid-column: 1 / -1; }
.lvn-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.lvn-input, .lvn-select, .lvn-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
}
.lvn-input:focus, .lvn-select:focus {
    border-color: #b71c1c;
    outline: none;
}

/* RADIO GROUP */
.lvn-radio-group {
    display: flex;
    gap: 20px;
    padding-top: 10px;
}
.lvn-radio-group label { font-weight: normal; cursor: pointer; }

/* DATE RANGE */
.date-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.date-range-group span { font-weight: bold; color: #999; }

/* BUTTONS */
.lvn-form-actions {
    margin-top: 20px;
    text-align: center;
}
.lvn-form-actions.right { text-align: right; }
.lvn-form-actions.spaced { display: flex; justify-content: space-between; }

.lvn-btn-submit, .lvn-btn-submit-pro {
    background: #b71c1c;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}
.lvn-btn-submit:hover, .lvn-btn-submit-pro:hover { background: #d32f2f; }
.lvn-btn-next, .lvn-btn-back {
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
}
.lvn-btn-next { background: #2196f3; color: #fff; border: none; }

/* RESULT CARD (KẾT QUẢ) */
.lvn-day-card {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s;
}
.lvn-day-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.lvn-day-card .day-card-head {
    background: #f9f9f9;
    width: 100%;
    text-align: center;
    border-right: 1px solid #eee;
    padding: 10px;
}
.solar-day { font-size: 24px; font-weight: bold; color: #2c2c2c; }
.solar-month { font-size: 16px; color: #2c2c2c; }
.day-week { font-size: 16px; text-transform: uppercase; margin-top: 5px; font-weight: 600; color: #00bdf7;}
.day-card-body { 
    padding: 15px; flex: 1; 
}
.day-card-body>.display-flex{
    display: flex;
    margin-top: 20px;
}
.day-header-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}
.lunar-info { 
    font-size: 14px; 
    color: #0065fd;
    font-weight: bold;
}

/* SCORE BADGES */
.day-score-badge { 
    text-align: center; 
    min-width: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.day-score-badge .number { 
    display: block; font-size: 18px; font-weight: bold; 
    color: #fff; padding: 2px 8px; border-radius: 4px; 
}
.day-score-badge .text { font-size: 10px; color: #999; }

.score-excellent .day-score-badge .number { background: #2e7d32; } /* Xanh đậm */
.score-good .day-score-badge .number { background: #4caf50; }      /* Xanh lá */
.score-avg .day-score-badge .number { background: #ff9800; }       /* Cam */

/* PROS & CONS LIST */
.pros-list ul, .cons-list ul { margin: 5px 0 10px 20px; padding: 0; }
.label-good { color: #2e7d32; display: block; margin-bottom: 3px; }
.label-bad { color: #c62828; display: block; margin-bottom: 3px; }

/* GOOD HOURS BOX */
.good-hours-box {
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #0d47a1;
    margin-top: 10px;
}
.good-hours-box p { margin: 0; font-weight: 500; }

/* UPSELL BOX */
.lvn-upsell-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffc107;
    text-align: center;
    margin-top: 30px;
}
.lvn-btn-upsell {
    display: inline-block;
    background: #ff6f00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
}

/* SUCCESS MESSAGE */
.lvn-success-box {
    text-align: center;
    padding: 30px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
}
.lvn-success-box .icon { font-size: 40px; margin-bottom: 10px; }

.form-section input[type=text],
.form-section input[type=date],
.form-section input[type=tel],
.form-section input[type=email],
.form-section input[type=number],
.form-section select,
.lvn-modal__dialog input[type=text],
.lvn-modal__dialog input[type=date],
.lvn-modal__dialog input[type=tel],
.lvn-modal__dialog input[type=email],
.lvn-modal__dialog input[type=number],
.lvn-modal__dialog select {
    height: 2.8em !important;
    line-height: 2.8em;
    padding: 0 0.75em;
    box-sizing: border-box;
}
/* Style cho ngày Chủ Nhật */
.lvn-day-card.is-sunday {
    border-color: #ffb6c1 !important; /* Viền hồng */
}
.lvn-day-card.is-sunday .day-card-head {
    background-color: #fff0f3 !important; /* Nền hồng nhạt */
    color: #d63384 !important; /* Chữ hồng đậm */
    border-right: 1px solid #ffb6c1;
}
/* Thêm label nhỏ nếu thích */
.lvn-day-card.is-sunday .day-week::after {
    content: ' (CN)';
    font-size: 0.8em;
}
    
/* STYLE GRID GIỜ HOÀNG ĐẠO */
.lvn-hours-grid {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

/* Mobile: 3 cột (tương đương 2 hàng cho 6 giờ) */
.lvn-hours-grid {
    grid-template-columns: repeat(3, 1fr);
}
.xap-sep-tt-ngay{
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: #0d47a1;
}
/* CSS Tinh chỉnh */
    .translated-item { margin-bottom: 10px; line-height: 1.5; border-bottom: 1px dashed #eee; padding-bottom: 8px; }
    .translated-item:last-child { border-bottom: none; }
    
    .translated-title { display: block; font-size: 15px; color: #333; }
    .translated-desc { font-size: 0.9em; color: #555; display: block; margin-top: 3px; padding-left: 24px; font-style: normal;}
    
    /* Style cho các biến trong code PHP */
    .val-good { color: #00aa00; font-weight: bold; font-style: italic; }
    .val-bad { color: #ff0000; font-weight: bold; font-style: italic; }
    .val-neutral { color: #7f8c8d; font-weight: 500;}
    
    /* Icon */
    .icon-check { color: #00aa00; margin-right: 5px; font-size: 1.1em; }
    .icon-cross { color: #ff0000; margin-right: 5px; font-size: 1.1em; }

    .lvn-day-card .pros-list ul, .lvn-day-card .cons-list ul { padding-left: 10px; list-style: none; margin-top: 5px; }
/* PC (Màn hình > 768px): 6 cột (1 hàng ngang) */
@media (min-width: 768px) {
    .lvn-hours-grid {
        grid-template-columns: repeat(6, 1fr); /* Ép thành 1 hàng */
    }
    .xap-sep-tt-ngay{
        font-size: 14px;
    }
}

.lvn-hour-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    transition: all 0.2s;
}

.lvn-hour-item:hover {
    background: #e7f1ff;
    border-color: #b6d4fe;
}

.lvn-hour-name {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 2px;
    text-transform: capitalize; /* Viết hoa chữ cái đầu */
}

.lvn-hour-time {
    display: block;
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap; /* Không xuống dòng giờ */
}
/* STYLE CHO TRỰC TÚ INFO */
.lvn-truc-tu-info {
    background: #f0f7ff;
    border-left: 4px solid #007bff;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}
.lvn-truc-tu-row { margin-bottom: 4px; }
.lvn-truc-tu-row:last-child { margin-bottom: 0; }
.label-tt { font-weight: bold; min-width: 50px; display: inline-block; }
.val-good { color: #198754; font-weight: 500; }
.val-bad { color: #dc3545; font-weight: 500; }
.val-neutral { color: #6c757d; }