/*
Version: 3.0.0.2
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

#main {
    padding: 20px;
    background-color: var(--tet-bg);
    background-image: linear-gradient(#fff8e1e6,#fff8e1e6),url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d32f2f' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tvkb-header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #ffeb3b;
    border-radius: 10px;
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px #d32f2f4d;
    position: relative;
    overflow: hidden;
}

.tvkb-header-title {
    margin: 0;
    font-size: 3rem;
    font-family: Playfair Display, serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
    color: #ffeb3b;
    text-align: center;
}

.tvkb-header-description {
    font-family: Dancing Script, cursive;
    font-size: 1.8rem;
    margin: 10px 0 0;
    color: #ffe082;
}

.tvkb-header-greeting-banner {
    margin-top: 15px;
    min-height: 1.5rem;
}

.tvkb-header-greeting-text {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
    display: none;
}

.tvkb-header-greeting-text.show {
    animation: fadeInUp 4s infinite;
    display: inline-block;
}

.tet-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.tet-decoration.left {
    left: 20px;
}

.tet-decoration.right {
    right: 20px;
}

/* Tử vi form an sao */
.tuvi-scope-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
}

.tuvi-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #ffcc80;
}

/* Header gradient đỏ */
.tuvi-header {
    background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
    padding: 20px 10px 1px;
    text-align: center;
    color: white;
}

.tuvi-icon {
    background: #7e57c2;
    width: 34px;
    height: 34px;
    margin: 0 auto 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tuvi-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: 1px;
    color: #fff176;
}

.tuvi-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-style: italic;
}

/* Form Body */
.tuvi-body {
    padding: 25px;
    color: #455a64;
}

.tuvi-field { margin-bottom: 20px; }

label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #546e7a;
}

.tuvi-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 5px 15px;
}

.tuvi-input-group input {
    border: none;
    background: transparent;
    margin-bottom: 0;
    outline: none;
    width: 100%;
    color: #263238;
    box-shadow: none !important;
    height: 26px;
}

/* Giới tính & Tabs */
.tuvi-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.tuvi-radio-box, .tuvi-tab {
    flex: 1;
    padding: 7px 12px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    cursor: pointer;
    font-size: 14px;
    background: #f8f9fa;
    transition: 0.3s;
}

.tuvi-tab {
    border: 0;
    background: transparent;
}

.tuvi-radio-box.active {
    border-color: #d32f2f;
    background: #fff1f1;
}

.tuvi-tabs {
    display: flex;
    background: #eceff1;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tuvi-tab.active {
    background: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #d32f2f;
    font-weight: bold;
}

/* Section Title với dấu chấm đỏ */
.tuvi-section-title {
    color: #b71c1c;
    font-weight: bold;
    font-size: 15px;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
}

.tuvi-section-title::before {
    content: "●";
    margin-right: 8px;
    font-size: 12px;
}

.tuvi-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
    margin-left: 15px;
}

/* Select boxes */
.tuvi-col { flex: 1; }

.tuvi-select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    outline: none;
    margin: 0;
}

/* Time Input & Tag */
.tuvi-time-input {
    flex: 2;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 5px 15px;
}

input.time-box {
    width: 56px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    height: 26px;
}

.separator { color: #d32f2f; font-weight: bold; margin: 0 5px; }

.tuvi-info-tag {
    flex: 1;
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tuvi-info-tag strong { color: #d32f2f; }

.tuvi-divider {
    margin: 25px 0 25px;
    display: block;
    background: red;
    height: 1px;
    width: 100%;
    border: 0;
}

/* Submit Button */
.tuvi-footer-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.tuvi-btn-submit {
    width: 100%;
    background: #c62828;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    transition: 0.3s;
    margin: 0;
    height: 38px;
}

.tuvi-btn-submit:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.tuvi-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    outline: none;
    font-size: 16px;
    color: #263238;
    box-shadow: none !important;
}

.tuvi-separator {
    color: red;
    font-size: 16px;
    font-weight: bold;
    margin: 0 5px;
}

.tuvi-lunar-date {
    display: none;
    align-items: center;
    gap: 10px;

    background-color: #e3f2fd;
    color: #1565c0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 20px;
    border: 1px solid #bbdefb;
    line-height: 1.5;
}

.tuvi-lunar-date.show {
    display: flex;
}

/* CSS Lá số */
.generating-laso-board-msg {
    display: none;
    background-color: #7fbbff;
    color: #000;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #448bdc;
    padding: 20px;
}

.generating-laso-board-msg.show {
    display: flex;
}

/* Container chính */
.lsv-wrapper {
    width: 100%;
    margin: 20px auto;
    font-family: "Times New Roman", Times, serif; /* Font đặc trưng của lá số */
    box-sizing: border-box;
    display: none;
}

.lsv-wrapper.show {
    display: block;
}

.lsv-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    background-color: #000; /* Đường kẻ đen mảnh */
    border: 2px solid #000;
    aspect-ratio: 4 / 3;
}

.lsv-box {
    background-color: #fff;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

/* Ô TRUNG TÂM - Phần quan trọng nhất */
.lsv-center-box {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid #000;
}

.lsv-main-title {
    color: #cc0000;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #cc0000;
    text-align: left;
}

.lsv-info-table {
    margin-top: 10px;
    width: 100%;
    border-collapse: collapse;
}

.lsv-info-row {
    display: flex;
    margin-bottom: 4px;
    font-size: 16px;
    line-height: normal;
}

.lsv-info-label {
    width: 100px;
    padding-right: 15px;
    min-width: 8em;
    font-weight: 600;
}

.lsv-info-value {
    width: 150px;
    text-align: left;
    font-weight: normal;
}

/* Dải màu xám chứa Mệnh, Cục */
.lsv-summary-bar {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    width: 100%;
}

.lsv-footer-note {
    margin-top: 20px;
    font-style: italic;
    font-size: 13px;
    color: #666;
    text-align: center;
    border-top: 1px dashed #cc0000;
    padding-top: 10px;
    width: 100%;
}

.lsv-insta-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}

/* Định dạng các cung xung quanh */
.lsv-box__header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 14px;
}

.lsv-cung-name { color: #cc0000; text-transform: uppercase; }

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.absolute-footer, #header {
    display: none !important;
}

@keyframes float {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-60%);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes fadeInUp {
    0%, 100% {
      opacity: 0;
      transform: translateY(10px);
    }
  
    20%, 80% {
      opacity: 1;
      transform: translateY(0);
    }
}