﻿:root {
    --primary: #002d5a;
    --accent: #F2A900;
    --bg: #f4f6f8;
    --card-bg: #ffffff;
    --text: #333333;
    --color-primary: #0077aa;
    --color-header-bg: #002b3c;
    --color-header-text: #ffffff;
    --color-section-bg: #ffffff;
    --color-panel-bg: #f9fbfc;
    --color-border: #ccdce2;
    --color-text: #333333;
    --color-heading: #222222;
    --color-highlight: #fff8be;
    --font-base: 'Open Sans', Arial, sans-serif;
    --color-links: #005695;
    --color-header-border: #F2A900;
    --color-notification: #9E432F;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", var(--font-base), sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--color-links);
}

/* Header Styling */
.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 30px 0 20px 0;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 10px solid var(--color-header-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-home {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-header-text);
    background-color: var(--accent);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-home:hover {
    background-color: #e6a800;
    transform: translateY(-2px);
}

.btn-home:active {
    background-color: #cc9200;
    transform: translateY(0);
}

.logo {
    height: 4.5rem;
    margin: 0 0 0.5em 0;
}

.site-header h1 {
    margin: 0;
    font-size: 1.7rem;
    text-align: center;
    font-weight: 630;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items:center;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .card h2 {
        margin-top: 0;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 0.25rem;
        color: var(--primary);
    }

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-header-text);
    background-color: var(--color-header-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .btn:hover {
        background-color: #001f2a;
        transform: translateY(-2px);
    }

    .btn:active {
        background-color: #00151e;
        transform: translateY(0);
    }

.btn-primary {
    background-color: var(--color-header-bg);
}

    .btn-primary:hover {
        background-color: #001f2a;
    }

    .btn-primary:active {
        background-color: #00151e;
    }

/* Radio and Checkbox Styling */
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--color-header-bg);
    cursor: pointer;
}

/* Center the button horizontally */
.form-group-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group,
fieldset {
    margin-bottom: 1rem;
}

    .form-group label,
    fieldset legend {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .form-group input[type="number"],
    .form-group select {
        width: 100%;
        padding: 0.5rem;
        border: 1px solid var(--color-border);
        border-radius: 4px;
    }

fieldset {
    border: none;
    padding: 0;
}

    fieldset label {
        margin-right: 1.5rem;
        font-weight: normal;
    }

/* Results Table */
.results table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.results th,
.results td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--color-header-bg);
}

.results th {
    text-align: right;
}

.section-title {
    font-weight: bold;
    text-align: left;
    background-color: #f0f0f0;
    padding: 8px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
}

.total-row {
    font-weight: bold;
    background-color: #f3f3f3;
    border-top: 2px solid var(--color-header-bg);
    border-bottom: 2px solid var(--color-header-bg);
    text-align: right;
}

    .total-row td {
        padding: 10px;
    }

    .total-row:last-child {
        background-color: var(--color-header-bg);
        border-bottom: 2px solid var(--color-header-bg);
        color: var(--color-header-text);
    }

.sewer-row {
    display: none;
}

.min-fee-note {
    font-weight: normal;
    font-size: 0.8em;
    color: #666;
    display: inline;
}

/* Notification Banner Styling */
.notification-banner {
    background-color: var(--card-bg);
    color: var(--color-notification);
    padding: 1rem;
    border: 2px solid var(--color-header-bg);
    border-radius: 5px;
    margin: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .notification-banner p {
        margin: 0;
        line-height: 1.5;
    }

/* Responsive Design */
@media (max-width: 720px) {
    .btn-home {
        display: none;
    }
}
