/* --- Global Styles & Variables --- */
:root {
    --primary-color: #005A9C; /* A professional blue */
    --secondary-color: #00A8E8; /* A vibrant light blue for accents */
    --dark-color: #2c3e50; /* Dark text color */
    --light-color: #ecf0f1; /* Light background */
    --white-color: #ffffff;
    --success-color: #2ecc71;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-highlight {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* --- Content Sections --- */
.content-section {
    padding: 3rem 0;
}

/* --- Calculator Section --- */
.calculator-container {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.calculator-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-options {
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}
.checkbox-container input { display: none; }
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.checkbox-container:hover .checkmark { background-color: #ccc; }
.checkbox-container input:checked ~ .checkmark { background-color: var(--primary-color); }
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark:after { display: block; }

.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #004a80;
}

/* --- Results --- */
.results-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-color);
}
.result-summary {
    background-color: var(--success-color);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}
.result-summary p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.result-summary span {
    font-size: 2.5rem;
    font-weight: 700;
}
.result-details h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}
.result-item span:last-child {
    font-weight: 600;
}
.total-cost {
    font-weight: 700;
    color: var(--primary-color);
}
.disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    text-align: center;
    color: #777;
}

/* --- Legal Page Styling --- */
.legal-page {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}
.legal-page h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}
.legal-page p, .legal-page ul {
    margin-bottom: 1rem;
}
.legal-page ul {
    padding-left: 20px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.social-links a {
    color: var(--light-color);
    font-size: 1.4rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
    }
    .social-links {
        margin-top: 1rem;
    }
    .social-links a {
        margin: 0 0.5rem;
    }
}