
        /* Global box-sizing for easier padding calculations */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        /* Red Cross inspired colors and variables */
        :root {
            --red-cross-red: #e31b23;
            /* A common Red Cross red */
            --red-cross-darkred: #c0161d;
            --red-cross-grey: #f4f4f4;
            /* Light grey background */
            --red-cross-white: #fff;
            --red-cross-darkgrey: #333;
            /* Dark text */
            --border-color: #ddd;
            /* Slightly lighter border */
            --light-grey-bg: #f9f9f9;
            --section-header-bg: var(--red-cross-red);
            /* Background for section headers */
            --section-header-color: var(--red-cross-white);
            /* Text color for section headers */
        }

        body {
            /* Using a professional system font stack */
            font-family: 'Helvetica Neue', Arial, sans-serif;
            margin: 0;
            background-color: var(--red-cross-grey);
            color: var(--red-cross-darkgrey);
            line-height: 1.4;
            /* Reduced line height for compactness */
            font-size: 0.875rem;
            /* Base font size (approx 14px) */
        }

        .form-container {
            max-width: 900px;
            width: 98%;
            /* Increased width usage on larger screens */
            margin: 10px auto;
            /* Reduced top/bottom margin */
            background: var(--red-cross-white);
            padding: 20px;
            /* Reduced padding */
            border-radius: 6px;
            /* Slightly smaller border-radius */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            /* Softer, smaller shadow */
            border: 1px solid var(--border-color);
        }

        .header {
            position: relative;
            margin: auto 10%;
            padding: 20px;
            border-bottom: 3px solid var(--red-cross-red);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin-bottom: 30px;
        }

        .logo {
            width: 100px;
            height: 100px;
            margin-bottom: 20px;
            text-align: center;
        }

        .header-text {
            flex: 1;
            padding-left: 20px;
            text-align: center;
        }

        .header-text h1 {
            color: var(--red-cross-red);
            font-size: 22px;
            margin-bottom: 5px;
        }

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

        h1 {
            text-align: center;
            color: var(--red-cross-red);
            margin-bottom: 3px;
            /* Reduced margin */
            font-size: 1.8em;
            /* Adjusted size relative to new base */
            font-weight: bold;
        }

        .form-container>p {
            /* Style for the organization name below title */
            text-align: center;
            margin-top: 0;
            color: #555;
            font-size: 0.95em;
            /* Relative to body font size */
            margin-bottom: 15px;
            /* Reduced bottom margin */
        }

        /* Style for collapsible sections using <details> and <summary> */
        details.section {
            margin-bottom: 10px;
            /* Space between collapsed sections */
            border: 1px solid var(--border-color);
            border-radius: 5px;
            /* Slightly smaller rounded corners */
            background-color: var(--light-grey-bg);
        }

        details.section[open] {
            margin-bottom: 15px;
            /* More space when open */
        }

        details.section summary {
            background-color: var(--section-header-bg);
            color: var(--section-header-color);
            padding: 10px 15px;
            /* Reduced padding */
            font-size: 1.2em;
            /* Adjusted size relative to new base */
            font-weight: bold;
            cursor: pointer;
            border-radius: 5px 5px 0 0;
            list-style: none;
            display: flex;
            align-items: center;
        }

        details.section summary::-webkit-details-marker {
            display: none;
        }

        details.section summary::marker {
            display: none;
        }

        details.section summary::after {
            content: '+';
            margin-left: auto;
            font-size: 1.4em;
            /* Adjusted size */
            line-height: 1;
            transform: rotate(0deg);
            transition: transform 0.2s ease;
            transform-origin: center;
        }

        details.section[open] summary::after {
            content: '-';
            transform: rotate(180deg);
            /* Or less, like 90deg */
        }

        /* Content area within the details section */
        details.section .section-content {
            padding: 15px;
            /* Reduced padding */
            background-color: var(--red-cross-white);
            border-top: 1px solid #eee;
            border-radius: 0 0 5px 5px;
            /* Adjusted rounded bottom corners */
        }

        h3 {
            color: var(--red-cross-darkgrey);
            margin-top: 18px;
            /* Reduced top margin */
            margin-bottom: 6px;
            /* Reduced bottom margin */
            font-size: 1.1em;
            /* Adjusted size relative to new base */
            border-bottom: 1px solid rgba(227, 27, 35, 0.15);
            /* Thinner underline */
            padding-bottom: 4px;
            /* Reduced padding */
            font-weight: bold;
        }

        details.section .section-content h3:first-child {
            margin-top: 0;
        }


        h4 {
            color: #555;
            margin-top: 12px;
            /* Reduced top margin */
            margin-bottom: 5px;
            /* Reduced bottom margin */
            border-bottom: 1px dotted #bbb;
            /* Slightly lighter dotted line */
            padding-bottom: 3px;
            /* Reduced padding */
            font-size: 1em;
            /* Adjusted size relative to new base */
            font-weight: bold;
        }

        label {
            display: block;
            margin: 8px 0 4px;
            /* Reduced spacing */
            font-weight: bold;
            color: var(--red-cross-darkgrey);
            font-size: 1em;
            /* Relative to body font size */
        }

        input[type="text"],
        input[type="number"],
        select,
        textarea {
            width: 100%;
            padding: 8px;
            /* Reduced padding */
            margin-bottom: 10px;
            /* Reduced bottom margin */
            border: 1px solid var(--border-color);
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 1em;
            /* Relative to body font size */
            transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
            background-color: var(--red-cross-white);
        }

        input[type="text"]:focus,
        input[type="number"]:focus,
        select:focus,
        textarea:focus {
            border-color: var(--red-cross-red);
            box-shadow: 0 0 5px rgba(227, 27, 35, 0.1);
            /* Softer, smaller glow */
            outline: none;
        }

        select {
            appearance: none;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.2%2011.1-1%2016.5l139%20180c5.9%207.7%2015%2012.1%2024.1%2012.1s18.2-4.4%2024.1-12.1l139-180c3.3-5.4%202.9-11.6-1-16.5z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 8px center;
            /* Adjusted position */
            background-size: 9px;
            /* Slightly smaller arrow */
            padding-right: 22px;
            /* Make space for the arrow */
        }


        input[type="radio"],
        input[type="checkbox"] {
            margin-right: 6px;
            /* Reduced space */
            vertical-align: middle;
            transform: scale(0.95);
            /* Slightly smaller */
            accent-color: var(--red-cross-red);
        }

        .radio-group,
        .checkbox-group {
            margin-bottom: 12px;
            /* Reduced space below groups */
            padding: 6px 10px;
            /* Reduced padding */
            border: 1px solid #eee;
            border-radius: 4px;
            background-color: var(--light-grey-bg);
        }

        .radio-group label,
        .checkbox-group label {
            display: flex;
            align-items: center;
            margin: 4px 0;
            /* Reduced space between options */
            font-weight: normal;
            color: var(--red-cross-darkgrey);
            cursor: pointer;
            font-size: 0.95em;
            /* Slightly smaller text within groups */
        }

        .radio-group label input[type="radio"],
        .checkbox-group label input[type="checkbox"] {
            margin-right: 6px;
            /* Reduced space between input and text */
            margin-bottom: 0;
            flex-shrink: 0;
        }


        button {
            background-color: var(--red-cross-red);
            color: var(--red-cross-white);
            padding: 9px 18px;
            /* Reduced padding */
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: block;
            margin: 20px auto 0;
            /* Reduced top margin */
            font-size: 1em;
            /* Relative to body font size */
            transition: background-color 0.3s ease;
        }

        #get-location-btn {
            margin-bottom: 10px;
            /* Reduced margin */
            background-color: var(--red-cross-red);
        }

        #get-location-btn:hover {
            background-color: var(--red-cross-darkred);
        }

        button:hover {
            background-color: var(--red-cross-darkred);
        }

        /* .section-content { */
        /* Padding applied above */
        /* } */

        .sub-question {
            margin-left: 12px;
            /* Reduced indent */
            padding: 10px;
            /* Reduced padding */
            border-left: 3px solid #ddd;
            /* Thinner border */
            margin-bottom: 10px;
            /* Reduced space below */
            background-color: var(--red-cross-white);
            border-radius: 4px;
        }

        .sub-question>label {
            font-weight: bold;
            margin: 6px 0 3px;
            /* Reduced spacing */
            font-size: 0.95em;
            /* Relative to parent sub-question font size */
        }

        .sub-question input[type="text"],
        .sub-question input[type="number"],
        .sub-question select,
        .sub-question textarea {
            margin-bottom: 6px;
            /* Reduced bottom margin */
            padding: 7px;
            /* Reduced padding */
            font-size: 0.9em;
            /* Relative to parent sub-question font size */
        }

        .sub-question .radio-group,
        .sub-question .checkbox-group {
            padding: 5px 8px;
            /* Reduced padding within nested groups */
            margin-bottom: 8px;
            /* Reduced bottom margin */
            background-color: var(--light-grey-bg);
            border: 1px solid #eee;
        }

        .sub-question .radio-group label,
        .sub-question .checkbox-group label {
            margin: 3px 0;
            /* Reduced space between options */
            font-size: 0.85em;
            /* Smaller text */
        }


        label[required]:after {
            content: " *";
            color: var(--red-cross-red);
            margin-left: 2px;
        }

        .radio-group.required,
        .checkbox-group.required {
            border-left: 3px solid rgba(227, 27, 35, 0.5);
            /* Adjusted border thickness */
        }

        .radio-group.required label:first-child:before,
        .checkbox-group.required label:first-child:before {
            content: none;
        }

        /* Add a class to highlight invalid required groups */
        .radio-group.required.highlight-error,
        .checkbox-group.required.highlight-error {
            border: 2px solid var(--red-cross-darkred);
            /* Thicker red border */
            border-left: 3px solid var(--red-cross-darkred);
            /* Maintain left border thickness */
        }

        /* Highlight labels of invalid required checkboxes */
        .radio-group label.highlight-error,
        /* Apply to label */
        .checkbox-group label.highlight-error {
            color: var(--red-cross-darkred);
            font-weight: bold;
        }


        #location-status {
            margin-top: 5px;
            margin-bottom: 8px;
            /* Reduced margin */
            padding: 5px 8px;
            /* Reduced padding */
            border-radius: 4px;
            font-size: 0.8em;
            /* Slightly smaller font */
            color: #555;
            background-color: #f0f0f0;
            border: 1px solid #ddd;
        }

        #location-status.error {
            color: var(--red-cross-darkred);
            background-color: #fdeded;
            border-color: #fbc2c4;
            font-weight: bold;
        }

        #location-status.success {
            color: green;
            background-color: #e9fae3;
            border-color: #d4edda;
            font-weight: bold;
        }


        #map {
            height: 250px;
            /* Adjusted map height */
            width: 100%;
            margin-top: 10px;
            /* Reduced margin */
            margin-bottom: 10px;
            /* Reduced margin */
            border: 1px solid var(--border-color);
            border-radius: 4px;
        }

        #section-7a>p,
        #section-7b>p {
            font-style: italic;
            color: #555;
            margin-top: -3px;
            /* Pull up closer to h3 */
            margin-bottom: 10px;
            /* Reduced margin */
            font-size: 0.8em;
            /* Smaller font */
        }

        .price-input-group {
            margin-top: 6px;
            /* Reduced top margin */
        }

        .price-input-group label {
            font-weight: normal;
            margin: 2px 0;
            /* Reduced spacing */
            font-size: 0.9em;
            /* Smaller price labels */
        }

        .price-input-group input {
            margin-bottom: 5px;
            /* Reduced bottom margin */
            padding: 6px;
            /* Reduced padding */
            font-size: 0.9em;
            /* Smaller price inputs */
        }

        .price-input-group label[for$="_specify"] {
            margin-top: 8px;
            /* More space above specify label */
        }

        .submit-btn {
            background-color: var(--red-cross-red);
            color: var(--red-cross-white);
            border: none;
            padding: 8px 24px;
            border-radius: 4px;
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            display: block;
            margin: 20px auto;
        }

        .submit-btn:hover {
            background-color: var(--red-cross-darkred);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {

            /* Tablet and smaller */
            body {
                font-size: 0.85rem;
                /* Slightly smaller base font size */
            }

            .form-container {
                padding: 15px;
                margin: 8px auto;
            }

            #red-cross-logo {
                max-width: 80px;
                margin-bottom: 10px;
            }

            h1 {
                font-size: 1.5em;
            }

            .form-container>p {
                font-size: 0.9em;
                margin-bottom: 12px;
            }

            details.section summary {
                padding: 8px 12px;
                font-size: 1.1em;
            }

            details.section summary::after {
                font-size: 1.2em;
            }

            details.section .section-content {
                padding: 10px;
            }

            h3 {
                font-size: 1em;
                margin-top: 15px;
                padding-bottom: 3px;
            }

            h4 {
                font-size: 0.95em;
                margin-top: 10px;
            }

            label {
                font-size: 0.9em;
                margin: 6px 0 3px;
            }

            input[type="text"],
            input[type="number"],
            select,
            textarea {
                padding: 7px;
                margin-bottom: 8px;
                font-size: 0.9em;
            }

            select {
                background-position: right 5px center;
                background-size: 7px;
                padding-right: 18px;
            }

            .radio-group,
            .checkbox-group {
                padding: 5px 8px;
                margin-bottom: 10px;
            }

            .radio-group label,
            .checkbox-group label {
                font-size: 0.85em;
                margin: 3px 0;
            }

            input[type="radio"],
            input[type="checkbox"] {
                margin-right: 5px;
            }

            .sub-question {
                margin-left: 8px;
                padding: 8px;
                border-left-width: 2px;
                margin-bottom: 10px;
            }

            .sub-question input,
            .sub-question select,
            .sub-question textarea {
                padding: 6px;
                font-size: 0.85em;
                margin-bottom: 5px;
            }

            .sub-question .radio-group,
            .sub-question .checkbox-group {
                padding: 4px 6px;
                margin-bottom: 6px;
            }

            .sub-question .radio-group label,
            .sub-question .checkbox-group label {
                font-size: 0.8em;
                margin: 2px 0;
            }

            .price-input-group label {
                font-size: 0.8em;
                margin: 1px 0;
            }

            .price-input-group input {
                padding: 4px 6px;
                font-size: 0.8em;
                margin-bottom: 4px;
            }


            button {
                padding: 8px 15px;
                font-size: 0.9em;
                margin-top: 15px;
            }

            #get-location-btn {
                margin-bottom: 8px;
            }

            #map {
                height: 180px;
                margin-top: 8px;
                margin-bottom: 8px;
            }

            #location-status {
                font-size: 0.75em;
                padding: 4px 6px;
                margin-bottom: 6px;
            }
        }

        @media (max-width: 480px) {

            /* Phones */
            body {
                font-size: 0.8rem;
                /* Even smaller base font size */
            }

            .form-container {
                padding: 8px;
                margin: 5px auto;
            }

            h1 {
                font-size: 1.3em;
            }

            details.section summary {
                font-size: 0.95em;
                padding: 6px 8px;
            }

            details.section summary::after {
                font-size: 1.1em;
            }

            details.section .section-content {
                padding: 8px;
            }

            h3 {
                font-size: 0.95em;
                margin-top: 12px;
            }

            h4 {
                font-size: 0.9em;
                margin-top: 8px;
            }

            label {
                font-size: 0.8em;
                margin: 5px 0 2px;
            }

            input[type="text"],
            input[type="number"],
            select,
            textarea {
                font-size: 0.8em;
                padding: 6px;
                margin-bottom: 6px;
            }

            .radio-group label,
            .checkbox-group label {
                font-size: 0.8em;
            }

            input[type="radio"],
            input[type="checkbox"] {
                margin-right: 4px;
            }

            .sub-question input,
            .sub-question select,
            .sub-question textarea {
                font-size: 0.75em;
            }

            .sub-question .radio-group label,
            .sub-question .checkbox-group label {
                font-size: 0.7em;
            }

            .price-input-group label,
            .price-input-group input {
                font-size: 0.75em;
            }

            button {
                font-size: 0.85em;
                padding: 7px 12px;
            }

            #get-location-btn {
                margin-bottom: 6px;
            }

            #map {
                height: 150px;
                margin-top: 6px;
                margin-bottom: 6px;
            }

            #location-status {
                font-size: 0.7em;
                padding: 3px 5px;
                margin-bottom: 5px;
            }
        }


        /* Style for validation highlighting */
        .highlight-error {
            /* Apply to inputs, selects, textareas */
            border-color: var(--red-cross-darkred) !important;
            box-shadow: 0 0 4px rgba(192, 22, 29, 0.4) !important;
            /* Softer shadow */
        }

        /* Apply directly to radio/checkbox group borders */
        .radio-group.required.highlight-error,
        .checkbox-group.required.highlight-error {
            border-color: var(--red-cross-darkred) !important;
            border-left-color: var(--red-cross-darkred) !important;
            /* Ensure left border is also red */
        }

        /* Highlight labels of invalid required checkboxes/radios */
        .radio-group label.highlight-error,
        /* Apply to label */
        .checkbox-group label.highlight-error {
            color: var(--red-cross-darkred);
            font-weight: bold;
        }
