/* Base Styles for All Calculators */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Background image container */
.background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Kitchen calculator background */
body.kitchen-calculator .background-image-container {
    background-image: url('/kitchenbackground.webp');
}

/* Bathroom calculator background */
body.bathroom-calculator .background-image-container {
    background-image: url('/bathroombackground.jpeg');
}

/* Home additions calculator background */
body.additions-calculator .background-image-container {
    background-image: url('/additionbackground.jpeg');
}

/* Overlay to ensure content remains readable */
.background-overlay {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.499);
    z-index: -1;
}

/* Enhance calculator card background for better readability */
.calculator-card {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.company-name {
    color: #000000;
    font-size: 2.7rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.calculator-title {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: bold;
}

.calculator-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.calculator-content {
    padding: 40px;
}

.question {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.options {
    margin-bottom: 30px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.radio-option label,
.checkbox-option label {
    font-size: 1.1rem;
}

.button-container {
    background-color: #007bff;
    padding: 15px 40px;
    text-align: right;
    display: flex;
    justify-content: space-between;
}

.prev-button, .next-button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.prev-button:before {
    content: "←";
    margin-right: 10px;
    font-size: 1.3rem;
}

.next-button:after {
    content: "→";
    margin-left: 10px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.required-field {
    color: #ee4036;
}

.hidden {
    display: none;
}

.progress-bar-container {
    width: 100%;
    max-width: 600px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

/* Final form styling */
.final-form-heading {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.policy-links {
    text-align: center;
    margin-top: 30px;
}

.policy-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 15px;
}
/* Dropdown styling */
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23888888' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-group select:focus {
    outline: none;
    border-color: #FCD798; /* Match your theme color */
    box-shadow: 0 0 0 2px rgba(252, 215, 152, 0.3);
}
@media (max-width: 600px) {
    .company-name {
        font-size: 2rem;
    }
    
    .calculator-title {
        font-size: 1.5rem;
    }
    
    .calculator-content {
        padding: 30px;
    }
}

/* Kitchen Calculator Specific Styles */
body.kitchen-calculator .company-name {
    color: #FCD798;
}

body.kitchen-calculator .button-container {
    background-color: #FCD798;
}

body.kitchen-calculator .progress-bar {
    background-color: #FCD798;
}

body.kitchen-calculator .policy-links a {
    color: #FCD798;
}

/* Bathroom Calculator Specific Styles */
body.bathroom-calculator .company-name {
    color: #FCD798;
}

body.bathroom-calculator .button-container {
    background-color: #FCD798;
}

body.bathroom-calculator .progress-bar {
    background-color: #FCD798;
}

body.bathroom-calculator .policy-links a {
    color: #FCD798;
}

/* Home Additions Calculator Specific Styles */
body.additions-calculator .company-name {
    color: #FCD798;
}

body.additions-calculator .button-container {
    background-color: #FCD798;
}

body.additions-calculator .progress-bar {
    background-color: #FCD798;
}

body.additions-calculator .policy-links a {
    color: #FCD798;
}

/* Mobile-specific adjustments */
@media only screen and (max-width: 767px) {
    .background-image-container {
        background-attachment: scroll;
        background-position: center top;
    }
}
