/* ZodiacFeed Color Scheme */
:root {
    --primary-red: #D11919;
    --primary-red-hover: #b01515;
    --bg-white: #FFFFFF;
    --text-black: #1d1d1d;
    --text-gray: #666666;
    --border-gray: #e0e0e0;
    --light-gray-bg: #f9f9f9;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles removed to prevent conflict with WordPress theme */

.calculator-container {
    width: 100%;
    /* max-width: 800px; */
    /* Let it fill the available container width (e.g., post content) */
    max-width: 100%;
    margin: 20px auto;
}

.calculator-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    border-top: 5px solid var(--primary-red);
    transition: transform 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: var(--text-black);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header h1 i {
    color: var(--primary-red);
}

.header p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Form Styles */
.zodiac-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-black);
    background-color: var(--bg-white);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(209, 25, 25, 0.1);
}

.dropdown-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    pointer-events: none;
}

.calculate-btn {
    background-color: var(--primary-red);
    color: var(--bg-white);
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Result Styles */
.result-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-gray);
    animation: fadeIn 0.5s ease-in-out;
}

.result-container.hidden {
    display: none;
}

.result-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-black);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}

/* Table Styles */
.result-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background-color: var(--bg-white);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: left;
}

.result-table th,
.result-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-gray);
}

.result-table th {
    background-color: var(--light-gray-bg);
    color: var(--text-black);
    font-weight: 700;
    width: 35%;
    /* Fixed width for labels */
    white-space: nowrap;
}

.result-table td {
    color: var(--text-black);
}

.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr:hover {
    background-color: rgba(209, 25, 25, 0.02);
}

/* Description Block Styles */
.zodiac-description-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.zodiac-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* Optional: Box or Circle */
    /* background-color: rgba(209, 25, 25, 0.1); */
    /* Cleaner look without bg maybe? */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary-red);
}

.description-text {
    flex: 1;
}

.description-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 15px;
}

.description-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-black);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-container {
        max-width: 100%;
    }

    .calculator-card {
        padding: 20px 15px;
        /* Reduced side padding to prevent overflow */
        width: 100%;
        max-width: 100vw;
        /* Hard check for viewport width */
    }

    .zodiac-description-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .zodiac-icon-wrapper {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }

    .result-table th,
    .result-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
}