/*
 * Stylesheet for ReclaimGuard website
 *
 * This stylesheet defines the look and feel of the site.  It uses a simple
 * palette of blues and greens to reflect trust and recovery.  The layout is
 * responsive so it should render reasonably well on mobile devices.  Feel free
 * to tweak the colours or spacing to better suit your brand.
 */

html,
body {
    margin: 0;
    padding: 0;
    /* Use a modern sans-serif font for a cleaner look */
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    /* Rich, non-blank background: layered gradients give depth without reducing readability. */
    min-height: 100%;
    background-color: #eaf2ff;
    background-image:
        radial-gradient(1200px circle at 8% 0%, rgba(15, 76, 129, 0.22) 0%, rgba(15, 76, 129, 0) 60%),
        radial-gradient(1000px circle at 92% 10%, rgba(1, 121, 111, 0.18) 0%, rgba(1, 121, 111, 0) 55%),
        radial-gradient(900px circle at 50% 100%, rgba(66, 185, 131, 0.14) 0%, rgba(66, 185, 131, 0) 60%),
        linear-gradient(180deg, #f4f8ff 0%, #e5eeff 45%, #f4f8ff 100%);
    background-attachment: fixed;
    color: #222;
}

/* ------------------------------------------------------------------
   Footer co‑branding styles
   ------------------------------------------------------------------ */
/*
 * Defines a flexible footer layout that includes both the copyright
 * message and partner logos.  The footer uses the same dark blue
 * palette as the header to create a cohesive look.  Logos dim
 * slightly by default and brighten on hover.
 */
.site-footer {
    background: #0f4c81;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.site-footer .powered-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.site-footer .powered-by img {
    height: 20px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

/* Add a subtle white drop shadow to the Trust Wallet logo so it stands out against dark backgrounds */
/* Adjust brightness and saturation on the Trust Wallet logo so it pops against the dark footer */
.site-footer .powered-by img.trustwallet-logo {
    /* Increase brightness and saturation to avoid blending with the bar and add a light drop shadow */
    filter: brightness(1.3) saturate(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
}

.site-footer .powered-by img:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    /* iOS/Safari can be janky with fixed gradient backgrounds; use scroll on mobile for smoothness */
    html,
    body {
        background-attachment: scroll;
    }
}

/* Use border-box sizing everywhere so elements with width:100% (like form inputs)
   never overflow their containers due to padding/borders. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Header and navigation */
/* Header and navigation */
header {
    background-color: #0f4c81;
    color: white;
    /* Desktop header: logo on the left, navigation centered */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 22px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* soften the header with rounded bottom corners */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    /* Establish a positioning context so the mobile nav toggle can be absolutely positioned */
    position: relative;
}

/* Space below the logo */
.logo-container {
    /* Remove the frosted background around the logo (cleaner look) */
    margin: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

header img.logo {
    /* Make the logo more noticeable */
    height: 96px;
    width: auto;
    /* Subtle shadow to improve visibility on bright screens */
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

/* Home page: make the logo slightly larger so it stands out on first visit */
.home-page header img.logo {
    height: 104px;
    filter: drop-shadow(0 9px 20px rgba(0, 0, 0, 0.26));
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

nav a {
    /* Make the menu buttons match the 'Check Recovery Database' button style */
    color: #0a2e57;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

nav a:hover {
    filter: brightness(0.98);
    text-decoration: none;
}

/* Mobile navigation toggle (hamburger icon) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    /* Sharper, more modern gradient with subtle depth */
    background: radial-gradient(1200px 500px at 20% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%),
                linear-gradient(110deg, #0f4c81 0%, #0b3a63 35%, #01796f 100%);
    color: white;
    /* Use flex layout to properly centre the hero content both horizontally and vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    /* rounded corners and subtle shadow */
    border-radius: 18px;
    /* centre the hero container within the viewport */
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.14);
    /* ensure a minimum height so the content appears centred even on shorter pages */
    min-height: 380px;
}

/* ------------------------------------------------------------------
   Home page hero (modern split layout with stats card)
   ------------------------------------------------------------------ */
.home-hero {
    position: relative;
    margin: 22px auto;
    max-width: 1200px;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    background:
        radial-gradient(900px 420px at 15% 0%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 55%),
        radial-gradient(700px 380px at 85% 15%, rgba(80, 230, 200, 0.18) 0%, rgba(80, 230, 200, 0) 55%),
        linear-gradient(115deg, #0a2e57 0%, #0b3a63 42%, #0b6b69 100%);
}

/* subtle "chart" lines texture */
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.06) 0px,
            rgba(255,255,255,0.06) 1px,
            rgba(255,255,255,0) 1px,
            rgba(255,255,255,0) 90px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.045) 0px,
            rgba(255,255,255,0.045) 1px,
            rgba(255,255,255,0) 1px,
            rgba(255,255,255,0) 70px
        );
    opacity: 0.35;
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.55fr 0.9fr;
    gap: 34px;
    align-items: center;
    padding: 64px 56px;
}

.home-hero__content h1 {
    font-size: 3.35rem;
    line-height: 1.04;
    letter-spacing: -0.6px;
    margin: 0 0 16px;
}

.hero-highlight {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
}

.home-hero__content p {
    font-size: 1.18rem;
    max-width: 640px;
    margin: 0;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-quote {
    margin-top: 18px;
    opacity: 0.85;
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
    user-select: none;
}

.btn:active { transform: translateY(1px); }

.btn-light {
    background: rgba(255,255,255,0.92);
    color: #0a2e57;
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.btn-light:hover { filter: brightness(0.98); }

.btn-primary {
    background-image: linear-gradient(90deg, #42b983, #2ca572);
    color: #fff;
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 14px 28px rgba(0,0,0,0.20);
}

.btn-primary:hover { filter: brightness(1.03); }

.hero-stats {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 18px;
    padding: 22px 22px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

.hero-stats h3 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.stat-row:last-of-type { border-bottom: none; }

.stat-label {
    opacity: 0.92;
    font-size: 0.98rem;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
}

.stat-footnote {
    margin: 12px 0 0;
    opacity: 0.78;
    font-size: 0.92rem;
}

/* ------------------------------------------------------------------
   Home page: Why choose section (card list)
   ------------------------------------------------------------------ */
.why-section {
    max-width: 1200px;
}

.section-subtitle {
    margin: 10px auto 0;
    max-width: 760px;
    opacity: 0.85;
}

.why-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.why-card {
    display: flex;
    gap: 14px;
    text-align: left;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,76,129,0.10);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.why-card--wide {
    grid-column: span 3;
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,76,129,0.10);
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.why-card h3 {
    margin: 0 0 6px;
    font-size: 1.06rem;
}

.why-card p {
    margin: 0;
    color: #4a5568;
    line-height: 1.45;
}

/* ------------------------------------------------------------------
   Home page: How we work stepper
   ------------------------------------------------------------------ */
.work-section {
    max-width: 1200px;
}

.work-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.work-step {
    width: 180px;
    text-align: center;
}

.work-badge {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: #0a2e57;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    margin: 0 auto 14px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

.work-step h3 {
    margin: 0;
    font-size: 1.05rem;
}

.work-step p {
    margin: 8px 0 0;
    color: #55667a;
    line-height: 1.35;
}

.work-arrow {
    margin-top: 26px;
    color: #7b8794;
    font-size: 1.8rem;
    line-height: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 18px;
    letter-spacing: -0.6px;
    line-height: 1.05;
}

.hero p {
    font-size: 1.22rem;
    margin: 0 auto;
    max-width: 650px;
}

/* Call-to-action button */
.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    /* Use a gradient on the call‑to‑action button for a more modern look */
    background-image: linear-gradient(90deg, #42b983, #2ca572);
    color: white;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    text-decoration: none;
    font-weight: bold;
    transition: background-image 0.2s ease, filter 0.2s ease, transform 0.12s ease;
}

.cta-button:hover {
    /* Darken the gradient on hover for better feedback */
    background-image: linear-gradient(90deg, #369c6b, #228a57);
    filter: brightness(1.05);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Sections */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 40px auto;
    /* centre align text for a balanced appearance */
    text-align: center;
    /* white card background with rounded corners */
    background-color: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,76,129,0.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Subtle accent underline for section headings */
section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f4c81, #01796f);
    opacity: 0.85;
}

/* Alternate section backgrounds to add visual interest.  
   Odd sections retain a white card background, while even sections get a very light blue tint.  
   The selector excludes the hero section so the hero gradient remains untouched. */
section:not(.hero):nth-of-type(even) {
    background-color: #f4f9ff;
}

section h2 {
    color: #0f4c81;
    margin-bottom: 20px;
    font-size: 2rem;
}

section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.10);
}

.feature h3 {
    margin-top: 0;
    color: #0f4c81;
    text-align: center;
}

/* Centre the text within feature cards */
.feature p {
    text-align: center;
}

/* Contact form */
form {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

form input,
form select,
form textarea {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1rem;
    background-color: #f8fafd;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button {
    width: fit-content;
    padding: 12px 32px;
    background-color: #0f4c81;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: #0d406f;
}

/* Footer */
footer {
    background-color: #0f4c81;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Toast notification (used for copy-to-clipboard feedback and other small confirmations) */
.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    max-width: 560px;
    width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: linear-gradient(135deg, #d9534f, #b52b27);
}

@media (max-width: 600px) {
    .toast {
        bottom: 14px;
        border-radius: 12px;
        font-size: 0.98rem;
    }
}

/* Database table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* Display the amount column more prominently in the database.  
   Bold text and a slightly larger font size make the monetary values stand out. */
.amount-cell {
    font-weight: bold;
    font-size: 1.1rem;
    color: #0f4c81;
}

/* Testimonials / Reviews section */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.testimonial {
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial p {
    line-height: 1.6;
}

.testimonial .name {
    margin-top: 15px;
    font-weight: bold;
    color: #01796f;
}

/* Copy address button */
.copy-button {
    margin-top: 5px;
    padding: 6px 12px;
    background-color: #0f4c81;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

/* ------------------------------------------------------------------
   FAQ page (accordion)
   ------------------------------------------------------------------ */
.faq-page {
    padding: 0 20px 50px;
}

.faq-hero {
    max-width: 980px;
    margin: 0 auto;
    padding: 54px 0 24px;
    text-align: center;
}

.faq-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: #0b2f4f;
    letter-spacing: -0.02em;
}

.faq-subtitle {
    margin: 10px auto 0;
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(11, 47, 79, 0.68);
}

.faq-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.faq-accordion {
    display: grid;
    gap: 16px;
    padding-bottom: 10px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(11, 47, 79, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(8, 40, 73, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-weight: 750;
    font-size: 1.06rem;
    color: #0b2f4f;
}

.faq-question:hover {
    background: rgba(15, 76, 129, 0.04);
}

.faq-question:focus-visible {
    outline: 3px solid rgba(66, 185, 131, 0.45);
    outline-offset: -3px;
}

.faq-chevron {
    font-size: 1.15rem;
    color: rgba(11, 47, 79, 0.55);
    transition: transform 0.18s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 22px;
    color: rgba(11, 47, 79, 0.78);
    font-size: 1rem;
    line-height: 1.65;
}

.faq-answer p {
    margin: 0;
}

@media (max-width: 600px) {
    .faq-page {
        padding: 0 14px 36px;
    }

    .faq-hero {
        padding: 38px 0 18px;
    }

    .faq-question {
        padding: 18px 16px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 16px 18px;
        font-size: 0.98rem;
    }
}

.copy-button:hover {
    background-color: #0d406f;
}

/* Payment options styling */
.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.payment-option img {
    max-width: 180px;
    width: 100%;
    margin-bottom: 15px;
}

.payment-option code {
    display: block;
    word-break: break-all;
    font-size: 0.9rem;
    background-color: #eef5fb;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.payment-option .instructions {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
    text-align: center;
}

/* Wave separator below the hero section */
.wave-separator {
    position: relative;
    width: 100%;
    margin-top: -40px; /* pull the wave up slightly to overlap with the bottom of the hero */
    overflow: hidden;
    line-height: 0;
}
.wave-separator svg {
    display: block;
    width: 100%;
    height: 80px;
}

th {
    background-color: #0f4c81;
    color: white;
}

.status-inprogress {
    color: #d88c00;
    font-weight: bold;
}

.status-completed {
    color: #007f00;
    font-weight: bold;
}

.status-pending {
    color: #b00000;
    font-weight: bold;
}

/* Zebra striping for tables */
tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.code-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

/* Accessible utility: visually hidden labels for screen readers */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Database search bar (viewer mode) */
.db-search {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.db-search-field {
    width: min(620px, 92%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 76, 129, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
    box-shadow: 0 12px 28px rgba(15, 76, 129, 0.16);
    backdrop-filter: blur(8px);
}

.db-search-icon {
    font-size: 1.1rem;
    opacity: 0.75;
}

.db-search-field input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 10px 4px;
}

.db-search-field:focus-within {
    border-color: rgba(15, 76, 129, 0.75);
    box-shadow: 0 14px 34px rgba(15, 76, 129, 0.24);
}

@media (max-width: 600px) {
    .db-search-field {
        width: 100%;
        border-radius: 14px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(15, 76, 129, 0.14);
    }
    .db-search-field input {
        font-size: 1.1rem;
    }
}

/* Document-style sections used for legal and terms pages
   override the default centered alignment so text flows from left to right like a traditional document. */
section.document-style {
    text-align: left;
}
section.document-style h2,
section.document-style h3 {
    text-align: left;
}
section.document-style ul {
    text-align: left;
    padding-left: 20px;
}
section.document-style p {
    text-align: left;
}

.hidden {
    display: none;
}

/* Process steps list */
/* Style the recovery process list as simple bullet points for a cleaner, more modern appearance */
.process-steps {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
    /* Slight highlight for the whole list (subtle, modern) */
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 14px;
    padding: 18px 18px;
}

.process-steps li {
    position: relative;
    margin: 0;
    padding: 14px 0 14px 30px;
    line-height: 1.6;
}

/* Light separators between steps (keeps it clean but structured) */
.process-steps li + li {
    border-top: 1px solid #e0eaf5;
}

/* Emphasise the step labels slightly */
.process-steps strong {
    color: #0f4c81;
}

/* Use a simple coloured dot as the bullet for each step */
.process-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #42b983;
}

/* Expertise grid */
.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.expertise-item {
    flex: 1 1 250px;
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.expertise-item h3 {
    margin-top: 15px;
    color: #01796f;
}

.expertise-item p {
    margin-top: 10px;
    line-height: 1.5;
}

.expertise-item .illustration {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* -------------------------------------------------------
   Contact page styling

   The contact page uses a left‑aligned layout rather than the
   default centred alignment. A card surrounds the contact form
   and contact details are presented in small info cards with
   subtle backgrounds and icons.
*/
section.contact-section {
    text-align: left;
}

/* Card for the contact form */
.contact-form-card {
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin: 20px 0;
}

/* Info panel for other contact methods */
/* Info panel for other contact methods */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contact-info .info-item {
    /* Allow the contents of each contact info item to wrap to the next line on narrow screens.
       Using flex-wrap ensures long text (like phone numbers or email addresses) doesn't overflow
       the container on mobile devices. Align items to the start so wrapped lines stay left aligned. */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 1rem;
}

/* Prevent long email/phone strings from overflowing their cards on mobile */
.contact-info .info-item a,
.contact-info .info-item span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info .emoji {
    font-size: 1.4rem;
}

/* Layout for the contact page grid */
.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Give both cards equal footing and responsive width */
.contact-grid > div {
    flex: 1 1 320px;
    min-width: 280px;
}

/* Card for contact details: similar styling to the form card */
.contact-details-card {
    background-color: #f7fbff;
    border: 1px solid #e0eaf5;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Layout for country code and phone number inputs on the contact page */
.contact-form-card .phone-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Use flexible bases for the country code and phone number inputs so they do not overflow the form on smaller screens.
   Set min-width to zero so the flex items can shrink within the container. */
.contact-form-card .phone-group input:first-child {
    flex: 0 0 35%;
    min-width: 0;
}

.contact-form-card .phone-group input:last-child {
    flex: 1 1 65%;
    min-width: 0;
}

/* Align the form within its card to the left on the contact page */
.contact-form-card form {
    margin-left: 0;
    margin-right: auto;
}

/* Enhance the drop‑down select element on the contact page */
.contact-form-card select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #f8fafd;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    font-size: 1rem;
    /* Add a custom arrow using an inline SVG */
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><polygon points='0,0 10,0 5,6' fill='%23017a7f'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    cursor: pointer;
}

.contact-form-card select:focus {
    border-color: #017a7f;
    outline: none;
}

/* Ensure all form elements within the contact form card span the full available width for ease of use on both desktop and mobile */
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
}

/* Responsive styles for tablets + phones */
@media (max-width: 820px) {
    /* Use a simple grid so the logo stays left and the hamburger stays right (no awkward wrapping). */
    header {
        padding: 10px 12px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-auto-rows: auto;
        align-items: center;
        column-gap: 12px;
    }

    .logo-container {
        justify-self: start;
    }

    /* Reduce logo size on smaller screens so it doesn't dominate the header */
    header img.logo {
        height: 64px;
    }

    .home-page header img.logo {
        height: 68px;
    }

    /* Display the hamburger toggle on small screens */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: 46px;
        height: 46px;
        margin: 0;
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 14px;
        padding: 0;
        font-size: 2rem;
        line-height: 1;
        color: #fff;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    }

    /* Let the nav area take a full row underneath the header controls */
    nav {
        grid-column: 1 / -1;
        width: 100%;
        position: relative;
    }

    /* Mobile dropdown panel (prevents the "floating pills" overlap) */
    nav ul {
        display: none; /* hidden by default */
        position: absolute;
        left: 12px;
        right: 12px;
        top: 100%;
        margin: 12px 0 0 0;
        padding: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(15, 46, 87, 0.12);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        z-index: 9999;
    }

    /* Mobile menu items: full-width, evenly spaced, easy tap targets */
    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
        padding: 14px 16px;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid rgba(15, 46, 87, 0.12);
        box-shadow: 0 8px 18px rgba(15, 46, 87, 0.10);
        color: #0a2e57;
        font-weight: 800;
    }

    /* Keep any other links inside header consistent */
    nav a {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    /* When the nav has the .open class, reveal the list */
    nav.open ul {
        display: flex;
    }

    /* Make section cards fit comfortably on tablets/phones */
    section {
        margin: 22px 12px;
        padding: 44px 16px;
    }

    /* Ensure “Why choose ReclaimGuard?” stays centered and the cards never overflow */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .why-card--wide {
        grid-column: auto;
    }

    /* Each menu item fills the width of its container (handled above for mobile dropdown) */

    /* Slightly tighter heading sizing on mobile/tablet */
    section h2 {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    /* Home hero: stack content and keep primary message visible above the fold */
    .home-hero__inner {
        grid-template-columns: 1fr;
        padding: 42px 16px;
        gap: 18px;
    }

    .home-hero__content h1 {
        font-size: 2.35rem;
    }

    .hero-highlight {
        padding: 6px 10px;
        border-radius: 12px;
    }

    .home-hero__content p {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        border-radius: 16px;
    }

    .hero-stats {
        padding: 18px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Improve heading spacing + alignment on smaller screens */
    section h2 {
        font-size: 1.75rem;
        line-height: 1.15;
        margin-bottom: 16px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .section-subtitle {
        padding-left: 8px;
        padding-right: 8px;
    }

    .work-arrow {
        display: none;
    }

    .work-steps {
        gap: 14px;
    }

    .work-step {
        width: 46%;
        min-width: 150px;
    }

    /* Reduce spacing in the hero on small screens */
    .hero {
        padding: 48px 15px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    /* Reduce padding and margin for sections on mobile */
    section {
        padding: 40px 15px;
        margin: 20px auto;
    }

    /* Keep the recovery process list tidy on mobile */
    .process-steps {
        padding: 14px 14px;
    }
    .process-steps li {
        padding: 12px 0 12px 28px;
    }

    /* Stack feature cards vertically */
    .features {
        grid-template-columns: 1fr;
    }

    /* Stack expertise cards vertically */
    .expertise-grid {
        flex-direction: column;
    }

    /* Let the contact form occupy full width and align left */
    .contact-form-card form {
        margin-left: 0;
        max-width: 100%;
    }

    /* Stack the contact form and details cards vertically and tighten spacing */
    .contact-grid {
        flex-direction: column;
        gap: 20px;
    }
    .contact-grid > div {
        min-width: 0;
    }
    .contact-form-card,
    .contact-details-card {
        padding: 18px;
    }

    /* Make the submit button easier to tap on mobile */
    .contact-form-card form button {
        width: 100%;
        max-width: 360px;
        margin: 12px auto 0;
        display: block;
    }

    /* Stack phone code and number inputs vertically */
    .contact-form-card .phone-group {
        flex-direction: column;
    }
    .contact-form-card .phone-group input:first-child,
    .contact-form-card .phone-group input:last-child {
        flex: 1 1 100%;
    }

    /* Make tables horizontally scrollable on small screens */
    table {
        display: block;
        overflow-x: auto;
    }
}