/* Basic Reset & Variables */
:root {
    --color-primary: #FFA500; /* Bright Orange */
    --color-accent: #20B2AA;  /* Teal/Turquoise */
    --color-text: #333333;
    --color-background: #FFFFFF;
    --color-light-grey: #f4f4f4;
    --color-medium-grey: #e0e0e0;
    --color-dark-grey: #666;
    --font-primary: 'Open Sans', sans-serif; /* Example: Use a clean sans-serif */
}

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header & Footer */
.main-header {
    background-color: var(--color-primary);
    padding: 0.5rem 0; /* Adjust padding as needed for logo */
}

.main-header .container {
    display: flex;
    justify-content: flex-start; /* Align logo left */
    align-items: center;
}

.logo-img { /* Style for the logo image */
    max-height: 50px; /* Adjust height as needed */
    width: auto;
}

.main-footer {
    background-color: var(--color-light-grey);
    color: var(--color-text);
    text-align: center;
    padding: 0.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.main-footer a {
    color: var(--color-primary);
}

/* hide all “Learn More” description boxes by default */
.details-box {
  display: none;
}


/* Headlines */
h1 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem; /* Add some space below header */
}
.sub-headline {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

/* Form Styling */
form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    /* Optional: Add a light border or shadow */
    /* border: 1px solid #ddd; */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

fieldset {
    border: 1px solid #ddd;
    padding: 1rem 1.5rem; /* Slightly more horizontal padding */
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

legend {
    font-weight: bold;
    color: var(--color-primary);
    padding: 0 0.5rem;
    font-size: 1.1em; /* Slightly larger legend */
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: var(--color-text);
}

/* Input fields, selects, textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.7rem; /* Slightly larger padding */
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
    font-family: inherit; /* Inherit font */
    font-size: 1rem; /* Standard font size */
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
    width: auto; /* Override default full width */
    margin-bottom: 0; /* Override default bottom margin */
    accent-color: var(--color-primary); /* Style check/radio color */
}


textarea {
    min-height: 80px;
    resize: vertical; /* Allow vertical resize */
}

/* Submit Button */
.submit-btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem; /* Slightly larger button */
    background-color: var(--color-accent);
    color: var(--color-background);
    font-size: 1.15rem; /* Slightly larger text */
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.submit-btn:hover {
    background-color: #1a8c83; /* Darker Teal */
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Conditional Section Styling */
.conditional-section {
    padding-top: 1rem;
    border-top: 2px dashed var(--color-light-grey);
    margin-top: 1.5rem; /* More space above conditional sections */
}

/* Info Boxes & Teasers */
.info-box, .bundle-teaser {
    background-color: var(--color-light-grey);
    border: 1px solid var(--color-medium-grey);
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem; /* More space below info boxes */
    border-radius: 4px;
    font-size: 0.95rem;
}
.info-box p, .bundle-teaser p { margin: 0.5rem 0;}
.info-box strong, .bundle-teaser strong { color: var(--color-primary); }
.bundle-teaser label { /* Style checkbox label inside teaser */
    font-weight: normal;
    display: block; /* Ensure checkbox is on its own line */
    margin-top: 0.5rem;
    cursor: pointer; /* Make label clickable */
}

/* Note below form fields */
.field-note {
    font-size: 0.85em;
    color: var(--color-dark-grey);
    margin-top: -0.7rem; /* Pull up slightly */
    margin-bottom: 1rem;
}

/* Checkbox and Radio Group Styling */
.checkbox-group div, .radio-group div {
    margin-bottom: 0.6rem; /* Space between options */
}
.checkbox-group label, .radio-group label {
    font-weight: normal; /* Normal weight for options */
    display: inline-flex; /* Align checkbox/radio with text neatly */
    align-items: center;
    cursor: pointer; /* Make label clickable */
}

/* Nested Fieldset (Business Address) */
.nested-fieldset {
    border: 1px solid var(--color-medium-grey);
    margin-top: 1.5rem; /* Space above */
    margin-bottom: 1.5rem; /* Space below */
    padding: 0.8rem 1rem;
    background-color: #fdfdfd; /* Slightly different background */
    border-radius: 3px; /* Slightly rounded corners */
}

.nested-fieldset legend {
    font-size: 0.95em; /* Slightly smaller legend */
    color: #555; /* Less prominent legend color */
    font-weight: bold;
}


/* Owner Block Styling */
#ownerInfoContainer {
    background-color: #fdfdfd; /* Match nested fieldset */
    border: 1px dashed #ccc; /* Differentiate owner section */
    padding-top: 0.5rem;
    margin-top: 1.5rem; /* Consistent spacing */
}
.owner-block {
    border-bottom: 1px solid #eee;
    padding: 1rem 0; /* Adjust padding */
    margin-bottom: 1rem;
}
.owner-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0.5rem; /* Add some padding at the end */
}
.owner-block h4 { margin-top: 0; color: var(--color-accent); }

/* Styling for the autofill checkbox in owner section */
.owner-block .checkbox-option {
    margin-bottom: 1rem; /* Space below autofill checkbox */
    background-color: #f0f0f0; /* Highlight it slightly */
    padding: 0.6rem 0.8rem;
    border-radius: 3px;
    border: 1px solid #ddd;
}
.owner-block .checkbox-option label {
    font-weight: normal;
    margin: 0; /* Remove default label margin */
}

/* Add/Remove Owner Buttons */
#addOwnerBtn {
    background-color: #e9e9e9;
    color: #333;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem; /* Space above button */
    transition: background-color 0.2s ease;
}
#addOwnerBtn:hover {
    background-color: #ddd;
}
button.removeOwnerBtn { /* Style remove button */
     background-color: #f8d7da; /* Light red */
     color: #721c24;
     border: 1px solid #f5c6cb;
     padding: 0.3rem 0.6rem;
     font-size: 0.8rem;
     border-radius: 3px;
     cursor: pointer;
     margin-top: 0.5rem;
     transition: background-color 0.2s ease;
}
button.removeOwnerBtn:hover { background-color: #f1b0b7; }

/* Security Note */
.security-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-dark-grey);
    margin-top: 0.8rem; /* More space above note */
    padding-left: 5px;
}

/* Additional Services Options */
#additionalServices h4 { margin-top: 1.5rem; } /* Space above options */
.option-item {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--color-light-grey);
    border-radius: 4px;
}
.option-item label {
    margin-bottom: 0; /* Remove bottom margin from label */
    margin-right: 5px;
    display: inline-flex; /* Keep label content together */
    align-items: center;
    cursor: pointer;
    font-weight: normal; /* Options are not titles */
}
.option-item input[type="checkbox"] {
     flex-shrink: 0; /* Prevent checkbox from shrinking */
}
.option-item .price { font-weight: bold; color: green; margin-left: 5px; white-space: nowrap; }
.option-item .description {
    font-size: 0.9rem;
    color: #555;
    margin-left: 26px; /* Indent under checkbox */
    display: block; /* Ensure it takes its own line */
    margin-top: 0.3rem;
}
.option-item .learn-more {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    margin-left: 10px;
    cursor: pointer;
    white-space: nowrap; /* Prevent wrap */
    display: inline-block; /* Allow margin */
    vertical-align: middle;
}
.option-item .learn-more:hover { text-decoration: underline; }

.details-box {
    display: none; /* Hidden by default */
    background-color: #f5f5f5; /* Slightly darker background */
    border: 1px solid var(--color-medium-grey);
    padding: 0.8rem 1rem;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    border-radius: 3px;
    line-height: 1.5;
}
.details-box strong { display: block; margin-bottom: 0.3rem; color: var(--color-text); }

/* Info text in consulting section */
.info-text {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 1rem;
    font-style: italic;
    background-color: var(--color-light-grey);
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    border: 1px solid var(--color-medium-grey);
}