:root {
    --primary-color: #2F4858;
    --primary-hover: #1e3340;
    --accent-color: #007E48;
    --bg-gradient-start: #f2F3F2;
    --bg-gradient-end: #f2F3F2;
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-main: #2F4858;
    --text-muted: #576b77;
    --border-color: #e2e8f0;
    --highlight-bg: #e6f2ed;
    --highlight-text: #007E48;

}

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

html {
    overflow: hidden;
    height: auto;
}


body {
    font-family: 'Saira Semi Condensed', sans-serif;

    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to top */
    position: relative;
    overflow-x: hidden;
    padding-top: 2rem;
    /* Add some top spacing instead of centering */
    padding-bottom: 2rem;
}


.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    color: #007e48;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;


    gap: 2rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Input Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.unit {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8em;
}

input,
select {
    width: 100%;
    padding: 0.75rem 1rem;

    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    color: var(--text-main);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 126, 72, 0.1);

}

.select-wrapper {
    position: relative;
}

/* Results Styles */
.result-card {
    display: flex;
    flex-direction: column;
}

.result-group {
    text-align: center;
    padding: 1rem;
    border-radius: 1rem;
    transition: background 0.3s;
}

.result-group.highlight {
    background: var(--highlight-bg);
    margin-top: auto;
}

.result-group h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.result-group.highlight h3 {
    color: var(--highlight-text);
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.result-group.highlight .result-value {
    color: var(--highlight-text);
}

.result-value .unit {
    font-size: 1rem;
    vertical-align: baseline;
    font-weight: 500;
}

.result-sub {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.result-group.highlight .result-sub {
    color: var(--highlight-text);
}

.unit-text {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-group.highlight .unit-text {
    color: rgba(0, 126, 72, 0.8);

}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* Product Display Styles */
.product-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.product-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 100%;
}

.product-image-wrapper {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 0.5rem;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-details h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-sku {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: inherit;

}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

.cta-button:hover {
    background-color: #006035;
    /* Darker shade of accent */
    transform: translateY(-1px);
}

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

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

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

@media (max-width: 600px) {
    .product-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .product-details {
        align-items: center;
    }
}