:root {
    /* --- CSS Variables for Easy Tweaking --- */
    
    /* Colors */
    --primary-color: #2c3e50;    /* Dark Blue/Grey */
    --secondary-color: #34495e;  /* Slightly lighter */
    --accent-color: #188fbd;     /* Blue for highlights #0043d3*/
    --accent-color-highlight: #54b1d5;    
    --success-color: #27ae60;    /* Green for Valid/Progress */
    --error-color: #c0392b;      /* Red for Errors */
    --gradient-stop-1: #000336;
    --gradient-stop-2: #1C1D4B;
    --bg-gradient: linear-gradient(135deg, var(--gradient-stop-1) 0%, var(--gradient-stop-2) 100%);        /* Page Background */
    --card-bg: rgba(255, 255, 255, 0.05);          /* Glass effect background */
    --card-border: rgba(255, 255, 255, 0.1);
    --text-color: #dddddd;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: #e0e0e0;

    /* Typography */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;

    /* Spacing & Layout */
    --spacing-unit: 1rem;
    --input-height: 48px;
    --border-radius: 6px;
    --sidebar-width: 280px;

    --max-width: 1200px;
}

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-buttons {
    position: relative;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
    justify-content: left;
}

.cta-buttons > .ta-mark-hero {
    display: block;
    position: absolute;
    left: -605px; top: 0px; bottom: 0px;
    width: 555px; height: 100%;
}

.cta-buttons > .button {
    display: grid;
    place-items: center;
}

.cta-buttons > img {
   height: 60px; 
}

.about-card-decorative {
    padding: 40px;
}

.about-card-decorative .portrait {
    display: block;
    position: relative;
}

.about-card-decorative .portrait::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 0px;
    z-index: -1;
}

.about-card-decorative .portrait img {
    display: block;
    max-width: 100%;
    margin: 0px auto 1rem auto;
}

.adviser-title {
    color: var(--accent-color-highlight);
    font-weight: bold;
}

.adviser-quote {
    font-size: 0.9rem;
    margin-top: 20px;
}

.section-header-center {
    text-align: center;
}

/* --- Layout Container --- */
.container {
    width: 100%;
    padding: 0 20px;
    z-index: 10;
    position: relative;
}

/* --- Header / Logo --- */
header {
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo-placeholder {
    width: 200px;
    height: auto; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-placeholder > img {
    position: fixed;
    display: block;
    top: 10px; left: calc(50vw - 580px);
    max-width: 200px;
    max-height: 500px;
    width: 100%;
}

body[scroll="0"][js="true"] .logo-placeholder > img {
    top: max(212px,calc(50vh - 200px)); 
    left: calc(50vw - 580px);
    max-width: 555px;
}

/* --- Navigation --- */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
}

/* --- Main Content --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100vw;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 10; 
}

.hero-text h1 {
    font-size: 2.5rem;
}

.hero-label {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    padding-bottom: 25px;
}

p.subtext {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-image-area img {
    max-height: 100%;
    max-width: 100%;
    z-index: 2;
}

.trusted-advisor-tick {
    display: block;
    margin-top: var(--spacing-unit);
    text-align: center;
}

.trusted-advisor-tick img {
    max-width: 220px;
    width: 100%;
}

.cta-sublink {
    text-align: left;
    margin-top: var(--spacing-unit);
}

/* --- Generic Section Styles --- */
.section {
    padding: 80px 0;
}

.section-container {
    padding: 200px 0;
    max-width: var(--max-width);
    width: 100%;
    margin: 0px auto;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-header:not(:first-child) {
    margin-top: 60px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content ul {
    list-style: none;
    margin-top: 20px;
}

.about-content li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-content li svg {
    width: 20px;
    min-width: 20px;
    color: var(--accent-color-highlight);
    margin-top: 4px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* --- Process Section Custom Additions --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.process-card .step-number {
    position: absolute;
    top: -20px;
    right: 0px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
}

.process-card h3, .process-card p, .process-card ul {
    position: relative;
    z-index: 1;
}

.process-card h3 {
    color: var(--accent-color-highlight);
    font-size: 1.3rem;
}

.process-card ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.process-card li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.process-card li::before {
    content: '•';
    color: var(--accent-color-highlight);
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 1;
}

/* --- Fees Info --- */
.fee-section {
    margin-top: 40px;
    padding: 30px;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fee-item {
    text-align: center;
    padding: 20px;
}

.fee-price {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color-highlight);
    font-weight: bold;
    margin-top: 5px;
}

/* --- Testimonials --- */
.testimonials-grid, 
.testimonials-grid > span {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    min-height: 600px;
}

.testimonial-card {
    padding: 30px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-text {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--accent-color-highlight);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; 
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

select option {
    color: white;
}

.pdf-link > i,
.contact-icon > i {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    color: #fff;
}

textarea.form-control {
    min-height: 120px;
    max-height: 500px;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: white !important;
    font-weight: bold;
    font-size: 1rem;
}

.button-outline {
    background: transparent;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Footer --- */
footer {
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;

}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.fanz-membership {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.fanz-logo {
    display: inline-block;
    padding: 12px 18px;
    background: #fff;
    border-radius: var(--border-radius);
}

.fanz-logo img {
    display: block;
    width: 160px;
}

.copyright-area {
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: #fff;
    text-align: left;
    width: fit-content;
}

.disclosure-summary {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 20px;
    line-height: 1.5;
}

/* --- Widget and Component Stylings --- */
altcha-widget .altcha {
    max-width: 100%;
    margin-bottom: 20px;
}

altcha-widget .altcha-main {
    line-height: 30px;
}

altcha-widget .altcha-logo {
    display: inline-block;
    height: 30px;
    padding: 4px 0px;
}

altcha-widget .altcha-label {
    text-align: left;
    color: var(--text-color-alt);
    padding-left: var(--gap-normal);
}

altcha-widget .altcha-footer {
    display: none;
}

.input_wrapper {
    display: block;
    min-height: 50px;
    position: relative;
    margin: var(--gap-normal) 0px;
    padding: calc(var(--text-size-normal) + var(--gap-small)) 0px 0px 0px;
}

.fineprint {
    font-size: 12px;
}

/* --- Modals and Vouchers --- */
.modal[open] {
    position: fixed;
    display: block;
    top: 120px;
    width: calc(100% - 30px);
    max-width: 650px;
    margin: 0px auto;
    padding: 10px;
    background: var(--gradient-stop-2);
}

.modal-header {
    display: flex;
    align-items: top;
    gap: 10px;
}

.modal-header > h1 {
    width: 100%;
    display: block;
    max-width: calc(100% - 35px);
    line-height: 28px;
    font-size: 16px;
    padding: 0px 10px;
    margin: 0px;
}

.modal-header > i[onclick^="closeDialog"] {
    display: block;
    width: 30px; height: 30px;
    line-height: 30px;
    text-align: center;
    color: white;
}

.modal-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.modal-body > section {
    padding: 10px;
    color: var(--text-color);
}

.modal-body ul,
.modal-body ol {
    padding: 10px;
    padding-left: 30px;
}

.modal-body li {
    margin: 10px auto;
}

.modal::backdrop {
    background: black;
}

.voucher-preview {
    position: relative;
    margin: 0px auto;
    width: 100%;
    max-width: 400px;
}

.voucher-preview.large {
    width: 100%;
    max-width: 900px;
}

.voucher-preview:after {
    content: "";
    position: relative;
    display: block;
    padding-top: 50%;
    width: 100%;
}

.voucher-preview.large:after {
    padding-top: 100%;
}

.share-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.toast {
    position: fixed;
    bottom: 10px;
    left: 10px;
    padding: 20px;
    z-index: 9999;
    background: white;
    color: black;
}

.button_link {
    color: var(--accent-color);
}

.nav-button{
    display: none;
    width: 32px; height: 32px;
    background: none;
    border: none;
    position: fixed;
    top: 14px; right: 14px;
    z-index: 1;
    cursor: pointer;
    transition: opacity 200ms ease;
    color: var(--text-color);
}

.nav-button:hover{
    opacity: 0.6;
}

.nav-button:before,
.nav-button:after{
    content: "";
    position: absolute;
    top: 6px; left: 6px;
    width: 24px;
    height: 0px;
    border-top: 2px solid;
}

.nav-button:after{
    top: 16px;
    height: 8px;
    border-bottom: 2px solid;
}

/* --- Responsive Design --- */
@media (max-width: 2000px) {
    .section-container { padding: 150px 0; }
}

@media (max-width: 1100px) {
    .section-container { padding: 110px 0; }
    .hero-section { padding: 60px 0; min-height: 70vh; }
    header { padding: 20px 0; }
    .header-content { flex-direction: column; gap: 20px; }
    header .logo-placeholder { justify-content: center; }
        
    header .logo-placeholder > img {
        top: 10px; left: 10px;
        max-height: 40px;
    }

    body[scroll="0"][js="true"] header .logo-placeholder > img {
        left: 0px;
        top: 200px;
        max-width: 100vw;
        max-height: 240px;
    }

    .nav-button{
        display: block;
    }

    .nav-menu{
        display: block;
        height: 0px;
        overflow: hidden;
        transition: all 0.3s ease;
        transition-delay: 200ms;
        position: fixed;
        top: 60px; left: 0px; right: 0px;
        overflow: hidden;
        opacity: 0;
    }

    .nav-menu > li{
        text-align: center;
        background-color: var(--gradient-stop-1);
        color: var(--text-color);
    }

    .nav-menu > li > a{
        display: block;
        padding: 20px;
    }

    .nav-button:focus{
        color: var(--accent-color);
    }
    
    .nav-button:focus ~ .nav-menu{
        height: calc(100vh - 60px);
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0ms;
    }
    
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-text { margin: 0 auto; }
    
    .hero-label {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-area {
        width: 100%;
        min-height: 300px;
        margin-top: 20px;
    }

    .cta-buttons {
        display: block;
        justify-content: center;
    }

    .cta-buttons > .button {
        display: inline-block;
        margin-bottom: 20px;
        margin-left: 10px;
    }

    .cta-buttons > .ta-mark-hero {
        position: static;
        display: block;
        min-height: 50px;
        width: auto;
    }

    .cta-sublink {
        text-align: center;
    }

    .testimonials-grid,
    .services-grid,
    .fee-grid {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .fee-grid {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-container { padding: 80px 0; }
    .container { padding: 0 15px; }

    .button {
        padding: 12px 18px;
    }
    
    .container:before,
    .container:after {
        display: none;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-area {
        min-height: calc(220px + 30vh);
    }

    body[scroll-index="0"] .logo-placeholder > img {
        left: 0px;
        top: 30vh;
        max-width: calc(100vw - 20px);
        max-height: 260px;
    }

    .modal[open] { top: 60px; }
    .modal-body { max-height: calc(100vh - 160px); }
}

@media (max-width: 320px) {
    .share-options {
        flex-direction: column;
    }
}