/* Fully inherit site typography, no external font imports */
.zodiac-search-container {
    font-family: inherit;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 4rem 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgb(255, 154, 158), rgb(250, 208, 196), rgb(251, 194, 235)) fixed;
    border: none !important;
    border-radius: 0 !important; /* Spans full width like a true hero section */
    position: relative;
    overflow: hidden;
}

/* Centered container to align search box and results like other section elements */
.zodiac-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2; /* Sits above background particles */
    box-sizing: border-box;
}

/* Inner box - Frosted light glassmorphic, centered and optimized width */
.zodiac-search-box {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: none !important;
    text-align: center;
    width: 100%;
    max-width: 600px; /* Perfectly sized inside container */
    box-sizing: border-box;
}

/* Crimson Red (#a6120d) for title with excellent contrast */
.zodiac-search-title {
    color: #a6120d !important; 
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    margin-top: 0;
    letter-spacing: -0.025em;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.zodiac-form {
    width: 100%;
}

.zodiac-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Input field - Crimson Red (#a6120d) text color */
.zodiac-input {
    flex: 1;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(166, 18, 13, 0.2) !important;
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    font-size: 1.1rem;
    color: #a6120d !important;
    font-weight: 800;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
    box-shadow: none !important;
}

/* Chrome, Safari, Edge, Opera: Remove spin buttons */
.zodiac-input::-webkit-outer-spin-button,
.zodiac-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox: Remove spin buttons */
.zodiac-input[type=number] {
    -moz-appearance: textfield;
}

.zodiac-input::placeholder {
    color: rgba(166, 18, 13, 0.5) !important;
    font-weight: 500;
}

.zodiac-input:focus {
    background: #ffffff !important;
    border-color: #a6120d !important;
    box-shadow: 0 0 10px rgba(166, 18, 13, 0.15) !important;
}

/* Button - Crimson gradients, no heavy shadow */
.zodiac-button {
    background: linear-gradient(135deg, #a6120d 0%, #7f0d09 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none !important;
    font-family: inherit;
}

.zodiac-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #be1813 0%, #90100c 100%) !important;
}

.zodiac-button:active {
    transform: translateY(0);
}

.zodiac-icon {
    transition: transform 0.3s ease;
    stroke: #ffffff !important;
}

.zodiac-button:hover .zodiac-icon {
    transform: translateX(3px);
}

/* ---------------------------------------------------- */
/* Result Card Wrapper & Content (Displayed outside Hero) */
/* ---------------------------------------------------- */
.zodiac-result-wrapper {
    width: 100%;
    padding: 2.5rem 0;
    box-sizing: border-box;
    display: block;
}

/* Sized exactly like the search box, using clean solid white background for the page body */
.zodiac-result-card {
    background: #ffffff !important;
    border: 1px solid rgba(166, 18, 13, 0.12) !important;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: none !important; /* Removed shadow */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 600px; /* Sized exactly like the search box */
    box-sizing: border-box;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zodiac-result-card.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

/* Element indicators - borders & colored text optimized for white body */
/* Mệnh Kim */
.zodiac-result-card.menh-kim {
    border-left: 6px solid #d97706 !important;
}
.zodiac-result-card.menh-kim .zodiac-result-zodiac {
    color: #d97706 !important;
}

/* Mệnh Mộc */
.zodiac-result-card.menh-moc {
    border-left: 6px solid #059669 !important;
}
.zodiac-result-card.menh-moc .zodiac-result-zodiac {
    color: #059669 !important;
}

/* Mệnh Thủy */
.zodiac-result-card.menh-thuy {
    border-left: 6px solid #2563eb !important;
}
.zodiac-result-card.menh-thuy .zodiac-result-zodiac {
    color: #2563eb !important;
}

/* Mệnh Hỏa */
.zodiac-result-card.menh-hoa {
    border-left: 6px solid #dc2626 !important;
}
.zodiac-result-card.menh-hoa .zodiac-result-zodiac {
    color: #dc2626 !important;
}

/* Mệnh Thổ */
.zodiac-result-card.menh-tho {
    border-left: 6px solid #ea580c !important;
}
.zodiac-result-card.menh-tho .zodiac-result-zodiac {
    color: #ea580c !important;
}

.zodiac-result-header {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(166, 18, 13, 0.08);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.zodiac-result-year-label {
    color: rgba(166, 18, 13, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.35rem;
}

.zodiac-result-year-label strong {
    color: #a6120d;
    font-weight: 800;
}

/* Default Zodiac title - falls back to crimson if not styled by element */
.zodiac-result-zodiac {
    color: #a6120d;
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.zodiac-result-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.zodiac-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(166, 18, 13, 0.06);
    padding-bottom: 0.8rem;
}

.zodiac-result-item:last-child {
    border: none;
    padding: 0;
}

.zodiac-item-label {
    color: rgba(166, 18, 13, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
}

.zodiac-item-val {
    color: #a6120d;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: right;
    max-width: 60%;
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .zodiac-search-container {
        padding: 3rem 0;
    }
    
    .zodiac-container {
        padding: 0 1rem;
    }

    .zodiac-search-box {
        padding: 2rem 1.25rem;
    }
    
    .zodiac-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .zodiac-input {
        max-width: 100%;
        width: 100%;
    }
    
    .zodiac-button {
        width: 100%;
        justify-content: center;
    }
    
    .zodiac-result-card {
        padding: 1.75rem 1.25rem;
    }
    
    .zodiac-result-zodiac {
        font-size: 1.65rem;
    }
    
    .zodiac-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .zodiac-item-val {
        text-align: left;
        max-width: 100%;
    }
}
