:root {
    --header-bg: #111111; /* Dark grey / Almost Black */
    --footer-bg: #222; /* Dark grey */
    --text-light: #ffffff;
    --text-dark: #333;
    --accent-color: #ED1C24; /* Trans cash Red */
    --link-color: #ffffff;
    --link-hover: #dddddd;
    --footer-link-color: #cccccc;
    --footer-link-hover: #ffffff;
    --border-radius: 8px;
    --secure-green: #28a745; /* Added secure color */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Needed for absolute positioning of flag if desired */
}

.logo {
    display: flex; /* Align logo and tagline */
    align-items: center;
    gap: 10px; /* Space between logo and tagline */
}

/* Renamed from .neosurf-logo */
.logo .brand-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light); /* Make logo text white */
    /* margin-right: 5px; */ /* Removed margin, using gap instead */
}

.logo .tagline {
    font-size: 0.7rem;
    color: var(--link-color);
    /* display: inline-block; */ /* Flex handles this */
    /* vertical-align: middle; */ /* Flex handles this */
    line-height: 1.2;
}

.flag-container {
    /* Adjust positioning as needed */
    /* Example: Position it next to the logo */
    margin-left: 15px; /* Space between logo group and flag */
    order: -1; /* Move flag before nav on flex container */
    display: flex; /* To align svgs properly */
    align-items: center; /* Center svgs vertically */
    gap: 5px; /* Add space between the flags */
}

.flag-container svg {
    display: block; /* Remove extra space below svg */
    border: 1px solid #ccc; /* Optional: add a border */
}

header nav {
    display: flex;
    align-items: center;
    gap: 25px; /* Space between nav items and secure indicator */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li:first-child {
    margin-left: 0; /* Remove margin for the first item if nav is separate */
}

header nav ul li a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
header nav ul li a:hover {
    color: var(--link-hover);
}

header nav ul li a i {
    margin-right: 5px;
    color: var(--text-light);
}

/* Secure Connection Indicator in Header */
.secure-connection-indicator {
    font-size: 0.8rem;
    color: var(--secure-green);
    display: flex;
    align-items: center;
    /* margin-left: 30px; Add margin if needed */
    white-space: nowrap; /* Prevent wrapping */
}

.secure-connection-indicator i {
    margin-right: 5px;
}

/* Main Content Styles */
main {
    padding-bottom: 50px; /* Space above footer */
}

.background-section {
    background-image: url('/a/c5e9296a-081f-47f8-aec3-682bb62cbf24'); /* Consider if background needs changing */
    background-size: cover;
    background-position: center;
    min-height: 70vh; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    position: relative;
    /* Add a subtle overlay if needed */
    /* background-color: rgba(0, 0, 0, 0.1); */
    /* background-blend-mode: overlay; */
}

.content-box {
    background-color: var(--text-light);
    /* Remove padding, let the inner elements handle it */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 60%;
    max-width: 800px;
    display: flex;
    flex-direction: column; /* Stack header and form */
    justify-content: flex-start; /* Align items to the top */
    align-items: stretch; /* Stretch children width */
    overflow: hidden;
}

/* Form Header Styles */
.form-header {
    width: 100%;
    text-align: center; /* Center align text elements like MA CARTE */
}

.header-bar {
    background-color: var(--header-bg); /* Use header background */
    color: var(--text-light);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    border-top-left-radius: var(--border-radius); /* Match container */
    border-top-right-radius: var(--border-radius); /* Match container */
}

.header-bar .icon {
    font-size: 1.8rem; /* Adjust icon size */
    margin-right: 15px;
    color: var(--text-light); /* Changed to light for contrast */
}

.header-bar .header-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Renamed from .pink-divider */
.accent-divider {
    background-color: var(--accent-color);
    height: 8px; /* Adjust height as needed */
    width: 100%;
}

.card-title {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.description-box {
    background-color: #f7f7f7; /* Light grey background */
    padding: 15px 25px;
    margin: 0 25px 20px 25px; /* Add horizontal margin */
    border-radius: 4px;
    border-left: 4px solid var(--header-bg); /* Use header background color for border */
}

.description-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left; /* Left align the paragraph text */
    margin: 0;
    margin-bottom: 10px; /* Space before security note */
}

.security-note {
    font-size: 0.85rem;
    color: var(--secure-green);
    text-align: left;
    margin: 0;
    font-weight: 500;
}

.security-note i {
    margin-right: 5px;
}

#formkeep-embed {
    padding: 0 20px 20px 20px; /* Add padding around the form itself */
    flex-grow: 1; /* Allow form embed to take remaining space if needed */
}

#formkeep-embed iframe {
    width: 100%;
    border: none;
    min-height: 400px; /* Keep minimum height */
}

/* Discover Section Styles */
#discover-section {
    display: none;
    padding: 0; /* Remove padding as inner elements will handle it */
}

.discover-header {
    background-color: var(--header-bg); /* Use header background */
    color: var(--text-light);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    border-top-left-radius: var(--border-radius); /* Match container */
    border-top-right-radius: var(--border-radius); /* Match container */
}

.discover-header .icon {
    font-size: 1.8rem; /* Adjust icon size */
    margin-right: 15px;
    color: var(--text-light);
}

.discover-header .header-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.discover-content {
    padding: 20px 25px;
    text-align: left;
}

.discover-content h3 {
    color: var(--header-bg); /* Use header background color */
    margin-top: 20px;
    margin-bottom: 10px;
}

.discover-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.discover-content li {
    margin-bottom: 8px;
}

/* Style for link within discover content */
.discover-content a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}
.discover-content a:hover {
    text-decoration: none;
}

.important-note {
    background-color: #fff8e1; /* Light yellow */
    border-left: 5px solid #ffc107; /* Amber */
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.important-note h4 {
    color: #856404; /* Dark yellow/brown */
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.important-note h4 i {
    margin-right: 8px;
    color: #ffc107; /* Match border */
}

.important-note p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #856404;
}

.return-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.return-button:hover {
    background-color: #c50000; /* Darker red */
}

.return-button i {
    margin-right: 8px;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 40px 0 10px 0; /* Added padding bottom */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
}

.footer-logo {
    flex-basis: 25%; /* Adjust as needed */
    min-width: 200px;
}

/* Updated from .neosurf-logo */
.footer-logo .brand-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-light);
}
.footer-logo .twenty-years {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color); /* Or a specific red */
    margin-left: -5px; /* Overlap slightly */
}
.footer-logo .years-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-light);
    margin-left: 5px;
    vertical-align: text-bottom;
}

.footer-logo .footer-tagline {
    display: block;
    font-size: 0.8rem;
    color: var(--footer-link-color);
    margin-top: 5px;
}
.footer-logo .since {
    font-weight: normal;
    color: #aaa;
}

/* Footer Security Info */
.footer-security {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--secure-green);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.footer-security i {
    margin-right: 6px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 20px; /* Spacing between columns */
}

.link-column {
    flex: 1;
    min-width: 150px; /* Increased min-width slightly */
}

.link-column h4 {
    color: var(--accent-color); /* Use accent for headings */
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Added letter spacing */
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column ul li {
    margin-bottom: 8px;
}

.link-column ul li a {
    color: var(--footer-link-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.link-column ul li a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline; /* Add underline on hover for footer links */
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #444;
    font-size: 0.75rem; /* Slightly smaller */
    color: #aaa;
    line-height: 1.4; /* Improve readability */
}

/* Responsive adjustments (basic example) */
@media (max-width: 992px) {
    header nav {
        /* Keep nav visible but move secure indicator below */
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    header nav ul {
        order: 1; /* Ensure menu comes first */
    }
    .secure-connection-indicator {
        order: 2; /* Place indicator below menu */
        margin-left: 0; /* Remove margin */
        margin-top: 5px; /* Add space */
        font-size: 0.75rem;
    }

    .header-container {
        /* Adjust flex layout for smaller screens if needed */
        justify-content: space-between; /* Keep logo/flag left, maybe burger right */
    }
    .flag-container {
        /* Position flag relative to logo on smaller screens */
        order: 0; /* Reset order or adjust as needed */
        margin-left: 10px; /* Adjust spacing */
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-logo {
        margin-bottom: 30px;
        flex-basis: auto;
        display: flex; /* Center logo content */
        flex-direction: column; /* Stack logo items */
        align-items: center; /* Center align */
    }
    .footer-links {
        width: 100%;
        justify-content: space-around; /* Better distribution when wrapped */
    }
}

@media (max-width: 768px) {
    header nav {
        /* Stack nav items vertically on small screens */
        align-items: center; /* Center nav items */
        width: 100%; /* Take full width */
        margin-top: 10px; /* Add space below logo/flag */
        gap: 10px;
    }
    header nav ul {
        justify-content: center; /* Center nav links */
        flex-wrap: wrap; /* Allow wrapping */
        gap: 15px; /* Spacing between links */
        margin-left: 0; /* Reset margin */
    }
    header nav ul li {
        margin-left: 0; /* Reset margin */
    }
    .secure-connection-indicator {
        margin-top: 0; /* Reset margin */
    }

    .header-container {
        flex-wrap: wrap; /* Allow wrapping if needed */
        justify-content: center; /* Center items */
        gap: 10px; /* Add gap between wrapped items */
    }
    .logo {
        order: 1; /* Logo first */
        flex-basis: 100%; /* Take full width when wrapped */
        justify-content: center;
    }
    .flag-container {
        order: 2; /* Flag after logo */
        margin-left: 0; /* Remove margin when centered */
    }
    header nav {
        order: 3; /* Nav comes last */
    }

    .content-box {
        min-width: 90%; /* Use more width on small screens */
    }
    .header-bar {
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
    }
    .header-bar .icon {
        margin-right: 0;
        margin-bottom: 8px; /* Increased space */
    }
    .header-bar .header-text {
        font-size: 1rem;
    }
    .card-title {
        font-size: 1.2rem;
        margin-top: 20px;
    }
    .description-box {
        margin: 0 15px 15px 15px;
        padding: 12px 15px;
    }
    .description-text {
        font-size: 0.85rem;
    }
    #formkeep-embed {
        padding: 0 15px 15px 15px;
    }
    .footer-links {
        flex-direction: column; /* Stack columns on very small screens */
        align-items: center;
    }
    .link-column {
        margin-bottom: 20px;
        width: 100%;
        max-width: 250px; /* Limit width when stacked */
    }
    .footer-bottom {
        padding: 15px 10px; /* Add horizontal padding */
    }
}

@media (max-width: 480px) {
    header nav ul {
        flex-direction: column; /* Stack links */
        align-items: center; /* Center align */
        gap: 10px;
    }
    .logo .brand-logo {
        font-size: 1.8rem; /* Slightly smaller logo on mobile */
    }
    .header-bar .icon {
        font-size: 1.5rem;
    }
    .header-bar .header-text {
        font-size: 0.9rem;
    }
    .discover-header .icon {
        font-size: 1.5rem;
    }
    .discover-header .header-text {
        font-size: 0.9rem;
    }

    .important-note {
        padding: 10px;
    }
    .important-note h4 {
        font-size: 0.95rem;
    }
    .important-note p {
        font-size: 0.85rem;
    }
    .return-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .footer-logo .brand-logo,
    .footer-logo .twenty-years {
        font-size: 2rem;
    }
}