:root {
    --primary-green-dark: #1e824c; /* Darker green for header/main elements */
    --primary-green-light: #3cb371; /* Lighter green for header gradient */
    --light-bg-green: #eaf7ed; /* Very light green for background */
    --text-color: #333;
    --border-color: #ccc;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --disabled-bg: #f0f0f0; /* Color for disabled fields */
    --disabled-text: #888;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg-green);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-color);
    width: 100%;
    max-width: 750px;
    box-sizing: border-box;
    overflow: hidden; /* To ensure border-radius applies to header */
}

.header {
    background: linear-gradient(to right, var(--primary-green-dark), var(--primary-green-light));
    color: white;
    padding: 30px 20px;
    margin: -40px -40px 30px -40px; /* Adjust to extend to container edges */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-weight: 900; /* Extra bold */
    font-size: 2.8em;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: 400;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.05em;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: calc(100% - 24px); /* Adjust for padding and border */
    padding: 14px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-green-dark);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 400; /* Regular weight for radio labels */
    cursor: pointer;
}

.radio-group input[type="radio"],
.form-group input[type="checkbox"] { /* Apply to checkbox as well */
    margin-right: 12px;
    transform: scale(1.3); /* Larger radio buttons/checkboxes */
    accent-color: var(--primary-green-dark); /* Color for checked state */
}

.optional-section {
    margin-top: 15px;
    padding: 20px;
    border: 1px dashed var(--primary-green-light);
    border-radius: 8px;
    background-color: var(--light-bg-green);
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
    overflow: hidden;
    max-height: 0; /* Hidden by default */
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.optional-section.visible {
    max-height: 500px; /* Arbitrary large height to reveal content */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.optional-section .radio-group label {
    margin-bottom: 8px; /* Smaller margin within optional group */
}
.optional-section .radio-group label p {
    font-size: 0.9em;
    color: #555;
    margin-left: 30px; /* Indent the description */
    margin-top: -5px; /* Pull it closer to the radio button */
    line-height: 1.4;
}

/* Styling for disabled elements */
.form-group.disabled {
    opacity: 0.6;
    pointer-events: none; /* Disable clicks */
}
.form-group.disabled input,
.form-group.disabled select,
.form-group.disabled textarea {
    background-color: var(--disabled-bg);
    cursor: not-allowed;
}
.form-group.disabled label {
    color: var(--disabled-text);
}
.info-text {
    font-size: 0.9em;
    color: #d9534f; /* Red for warning/info */
    margin-top: -15px;
    margin-bottom: 15px;
    font-weight: 600;
}


.total-section {
    background-color: var(--light-bg-green);
    padding: 25px;
    border-radius: 10px;
    margin-top: 35px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-green-dark);
    border: 1px solid var(--primary-green-light);
}

.total-section span {
    font-size: 1.7em;
    color: #d9534f; /* A contrasting red for the total price */
    display: block;
    margin-top: 5px;
}

button {
    background-color: var(--primary-green-dark);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: 700;
    width: 100%;
    margin-top: 40px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: var(--primary-green-light);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    .header {
        padding: 25px 15px;
        margin: -25px -25px 25px -25px;
    }
    .header h1 {
        font-size: 2em;
    }
    .header p {
        font-size: 1em;
    }
    button {
        font-size: 1.1em;
        padding: 15px 20px;
    }
}