/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    color: #1c2a43;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Make images responsive globally */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #041e42;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Page Content Wrapper (Terms, Privacy, FAQ) */
.content-page {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 4rem;
    min-height: 60vh;
}

/* Navigation */
header {
    background-color: #041e42;
    color: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff; /* Ensure logo is white */
    text-decoration: none;
}

/* New Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Nav links removal/adjustment handled in HTML, but keeping styles if needed for footer */

.call {
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 0.5rem;
}

.call a {
    color: #ffffff;
    text-decoration: none;
}

.call .phone-icon {
    color: #00a8a5;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh; /* Changed from height to min-height for content */
    background-image: url('f3d75a4e-3801-456a-b811-460b77ca0ae8.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding-top: 100px; /* Increased for fixed header */
    padding-bottom: 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 30, 66, 0.8); /* Slightly darker for better contrast */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px; /* Increased width */
    padding: 0 1rem;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Split Actions in Hero */
.hero-actions-split {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: #ffffff;
    flex: 1 1 280px;
    max-width: 350px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: #00d29c;
}

.action-card.buy {
    border-top: 4px solid #00a8a5;
}

.action-card.sell {
    border-top: 4px solid #ffffff;
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #00d29c;
}

.action-text {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    margin-top: 0; /* Reset for h3 */
}

.action-sub {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Trustpilot Display */
.trustpilot-display {
    margin-top: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.15); /* Slightly clearer bg */
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.trustpilot-display a {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tp-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.tp-stars {
    color: #00b67a; /* Trustpilot Green */
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 2px;
    display: flex;
    gap: 2px;
}
.tp-stars i {
    font-size: 0.9rem;
}

.tp-score {
    font-weight: 600;
}

.tp-reviews {
    font-weight: 400;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-actions-split {
        flex-direction: column;
        align-items: center;
    }
    .action-card {
        width: 100%;
        max-width: 100%;
    }
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #00a8a5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #008b86;
}

.btn-xl {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #f5f8fb;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    flex: 1 1 280px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: #3a4a6b;
}

.feature-item i {
    color: #00a8a5;
}

/* Process Section */
.process {
    padding: 4rem 0;
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.process-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.step {
    flex: 1 1 280px;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #00a8a5;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
    background-color: #f5f8fb;
    overflow: hidden; /* Ensure no horizontal scroll on mobile */
}

.reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Sliding Reviews */
.reviews-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 3rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-reviews-container {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    margin-top: 1.5rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.review-item {
    width: 300px; /* Fixed width to control density */
    flex-shrink: 0;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    white-space: normal; /* Ensure text wraps */
}

.hero-review-item {
    width: 280px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: left;
    color: #ffffff;
    white-space: normal;
}

.hero-review-item p {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-review-item .review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00d29c;
    display: block;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-item {
        width: 260px;
        padding: 1.5rem;
    }
    .reviews-track {
        gap: 1.5rem;
    }
}

/* TrustIndex Widget Placeholder Styles */
.trust-box {
    text-align: center;
    margin: 0 auto 2.5rem;
    display: inline-block;
    background: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e6edf7;
}
.trust-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.trust-box a {
    text-decoration: none;
    color: #041e42;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.tb-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #041e42;
}
.tb-stars {
    color: #00d29c; /* TrustIndex Green-ish */
    font-size: 1.1rem;
}
.tb-text {
    font-size: 0.95rem;
    color: #3a4a6b;
    font-weight: 600;
}
.tb-logo {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-left: 1px solid #ddd;
    padding-left: 1rem;
}

@media (max-width: 600px) {
    .trust-box {
        border-radius: 12px;
        padding: 1rem;
        width: 100%;
        max-width: 320px;
    }
    .trust-box a {
        flex-direction: column;
        gap: 0.5rem;
    }
    .tb-logo {
        border-left: none;
        padding-left: 0;
        margin-top: 0.25rem;
    }
}

.review-item {
    flex: 1 1 300px;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.review-item p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #3a4a6b;
}

.review-author {
    font-weight: 600;
    color: #041e42;
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about p {
    max-width: 800px;
    margin: 0.5rem auto;
    color: #3a4a6b;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #f5f8fb;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
    color: #3a4a6b;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    flex: 1 1 330px;
    display: flex;
    flex-direction: column;
}

.form-group.full {
    flex: 1 1 100%;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #041e42;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #d0d8e4;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
    width: 100%; /* Ensure inputs don't overflow */
}

.contact-form button {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Footer */
footer {
    background-color: #041e42;
    color: #ffffff;
    padding: 1.5rem 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #00a8a5;
}

@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }
    .nav-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
    
    .call {
        /* no margin top needed if in nav-actions */
    }
    .feature-grid, .process-grid, .review-grid {
        flex-direction: column;
        align-items: center;
    }

    /* Adjust hero padding for taller mobile header */
    .hero {
        padding-top: 160px;
        height: auto;
        min-height: 80vh;
        padding-bottom: 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-page {
        padding-top: 200px; /* Increased top padding for pages like Terms/Privacy on mobile to prevent header overlap */
    }
}

/* Contact Details */
.contact-details {
    max-width: 700px;
    margin: 1rem auto;
    text-align: center;
    font-size: 0.95rem;
    color: #3a4a6b;
}
.contact-details a {
    color: #00a8a5;
    text-decoration: none;
}
.contact-details a:hover {
    text-decoration: underline;
}

/* Hero trust strip */
.trust-strip {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.25rem 0 0.5rem;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 0.95rem;
}
.trust-strip .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #00d29c;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Buttons */
.btn-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    border: 1px solid #00a8a5;
    color: #00a8a5;
    text-decoration: none;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #00a8a5;
    color: #ffffff;
}

/* Dark background overrides for secondary buttons */
.hero .btn-secondary,
.page-hero .btn-secondary,
.cta-band .btn-secondary {
    border: 1px solid rgba(255,255,255,0.65);
    color: #ffffff;
}
.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.cta-band .btn-secondary:hover {
    border-color: #00a8a5;
    color: #00d29c;
    background: transparent;
}

/* Card icons */
.feature-item .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #00a8a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

/* Benefits section */
.benefits {
    padding: 3rem 0;
    background: #ffffff;
}
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.benefit-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    background: #fbfdff;
}
.benefit-item i {
    color: #00a8a5;
    margin-top: 0.2rem;
}

/* About highlight */
.about .about-note {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid #00a8a5;
    background: #f5f8fb;
    border-radius: 8px;
}

/* CTA band */
.cta-band {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #041e42, #0a2f63);
    color: #ffffff;
}
.cta-band h2 {
    color: #ffffff;
}
.cta-band p {
    color: rgba(255,255,255,0.9);
}

/* How page hero */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #041e42, #0a2f63);
    color: #ffffff;
    padding: 3.25rem 0;
}
.page-hero h1 {
    color: #ffffff;
}
.page-hero .sub {
    max-width: 760px;
    margin: 0.75rem auto 0;
    color: rgba(255,255,255,0.9);
}

.details {
    padding: 3rem 0;
    background: #ffffff;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.25rem;
}
.detail-card {
    border: 1px solid #e6edf7;
    border-radius: 12px;
    padding: 1.25rem;
    background: #fbfdff;
}
.detail-card h3 {
    margin-bottom: 0.5rem;
}
.detail-card ul {
    padding-left: 1.1rem;
}
.detail-card li {
    margin: 0.35rem 0;
}

.reassurance {
    padding: 2.5rem 0;
    background: #f5f8fb;
}
.reassurance .box {
    border: 1px solid #e6edf7;
    border-radius: 12px;
    padding: 1.25rem;
    background: #ffffff;
}

/* Active nav link */
nav a.active {
    color: #00d29c;
}

@media (max-width: 900px) {
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility / section helpers */
.hero-sub {
    max-width: 820px;
    margin: 0.75rem auto 0;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
}
.hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.hero-cta.stacked {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.section-lead {
    max-width: 820px;
    margin: 0.75rem auto 1.75rem;
    color: #3a4a6b;
    text-align: center;
}
.center-actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Why section */
.why {
    padding: 3rem 0;
    background: #f5f8fb;
}
.why-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.75rem;
    align-items: start;
}
.tick-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.tick-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    color: #3a4a6b;
}
.tick-list i {
    color: #00d29c;
    margin-top: 0.25rem;
}
.why-card {
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(4, 30, 66, 0.08);
}
.why-card .btn-primary {
    display: inline-block;
    margin-top: 0.75rem;
}
.why-small {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #3a4a6b;
}
.why-small a {
    color: #00a8a5;
    text-decoration: none;
}
.why-small a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .why-inner {
        grid-template-columns: 1fr;
    }
}

/* Expanded steps checklist */
.process.expanded .process-grid {
    flex-wrap: wrap;
}
.checklist {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    text-align: left;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.35rem 0;
    color: #3a4a6b;
    font-size: 0.95rem;
}
.checklist i {
    color: #00a8a5;
    margin-top: 0.2rem;
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background-color: #ffffff;
}
.calculator-section h2 {
    text-align: center;
}
.calc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: #f5f8fb;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.calc-inputs, .calc-results {
    flex: 1 1 300px;
}
.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.calc-inputs label {
    font-weight: 600;
    color: #041e42;
    display: block;
    margin-bottom: 0.5rem;
}
.calc-inputs input, .calc-inputs select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d8e4;
    border-radius: 4px;
    font-size: 1rem;
}
.calc-results {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e6edf7;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.calc-results h3 {
    color: #3a4a6b;
    margin-bottom: 0.5rem;
}
.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00d29c;
    margin: 0.5rem 0;
}
.small-disclaimer {
    color: #7a8a9b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.result-details {
    margin-bottom: 1.5rem;
    text-align: left;
    background-color: #fbfdff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #eee;
}
.result-details p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #041e42;
    font-weight: 600;
}
.result-details span {
    color: #3a4a6b;
}
.disclaimer {
    font-size: 0.8rem;
    color: #7a8a9b;
    line-height: 1.4;
}

/* Detailed Content Sections */
.finance-content-section {
    padding: 4rem 0;
    background-color: #f5f8fb;
}
.content-block {
    margin-bottom: 3rem;
}
.content-block h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #041e42;
}
.content-block p {
    color: #3a4a6b;
    margin-bottom: 1.25rem;
}
.content-block ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.content-block li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: #3a4a6b;
}
.content-block li i {
    color: #00d29c;
    margin-top: 0.25rem;
}