:root {
    --primary: #ff5864;
    --background: #ffffff; /* was #fff3f4 – now pure white sitewide */
    --text: #222;
    --subtext: #555;

    /* New tokens for consistent card visuals */
    --card-bg: #ffffff;
    --card-border: #d4d4d4;        /* darker border for visibility */
    --card-shadow: 0 10px 24px rgba(0,0,0,.08);
    --card-shadow-soft: 0 6px 18px rgba(0,0,0,.07);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header stays white across pages */
header {
    background: #ffffff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

nav a {
    margin-left: 20px;
    color: var(--subtext);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
    color: var(--primary);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

/* ===== Headings (black) ===== */
h1, h2, h3, h4 {
    color: #000 !important;
}

/* Split H1 styling */
.page-title {
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    letter-spacing: 0.01em;
}

.h1-title {
    display: block;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 6px;
}

.h1-subtitle {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Paragraph + Search box card */
.hero-card {
    width: 100%;
    max-width: 820px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 40px;
}

/* Description inside card */
.description {
    max-width: 100%;
    font-size: 1.05rem;
    color: #333;
    margin: 0 0 18px 0;
    text-align: left;
}

/* Search box (unchanged layout; just ensure it fills card width nicely) */
.search-box {
    width: 100%;
    max-width: 100%;
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Loading text */
#loading {
    margin-top: 20px;
    font-size: 1rem;
    color: #888;
}

/* ===== Result card block (kept; now with visible outline) ===== */
.result-card {
    border: 1px solid var(--card-border);
    margin-top: 50px;
    max-width: 920px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin: auto;
    display: none; /* will be toggled by JS */
    flex-wrap: wrap;
    text-align: left;
}

.result-left {
    background: #f9f9f9;
    padding: 32px 24px;
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-left img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    margin-bottom: 16px;
}

.result-right {
    flex: 2;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-right h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.detail-line {
    font-size: 1rem;
    color: #333;
}

.detail-line strong {
    margin-right: 5px;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.photo-gallery img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.profile-link {
    margin-top: 16px;
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.profile-link:hover {
    background: #e34857;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--subtext);
}

.spinner {
    display: none;
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive tweaks */
@media (max-width: 900px) {
    section div[style*='grid-template-columns'] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .result-card {
        flex-direction: column;
    }

    .result-left,
    .result-right {
        width: 100%;
        padding: 24px;
    }

    .result-left {
        border-bottom: 1px solid #eee;
        border-right: none;
    }

    .hero-card {
        border-radius: 14px;
        padding: 18px;
    }
}

@media (max-width: 600px) {
    section div[style*='grid-template-columns'] {
        grid-template-columns: 1fr !important;
    }
}

/* Space below the search result block */
#resultCard { margin-bottom: 56px; }
@media (max-width: 768px) { #resultCard { margin-bottom: 36px; } }

/* Testimonial name (kept) */
.testimonial-name {
  margin: 10px 0 5px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* How-it-works small cards (kept, now with stronger borders) */
.step-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-soft);
}

.step-card h3 {
  font-size: 1.4rem;
  color: #333333;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
}

/* === Stronger visibility for every inline-styled card on the page === */
/* Testimonials, guide cards, "Why Use Qipido?" blocks */
section div[style*="box-shadow:0 4px 12px"],
section div[style*="box-shadow:0 4px 16px"]{
  box-shadow: var(--card-shadow) !important;
  border: 1px solid var(--card-border) !important;
  background: var(--card-bg) !important;
}

/* FAQ <details> cards have inline style; bump contrast */
details[style]{
  box-shadow: var(--card-shadow-soft) !important;
  border: 1px solid var(--card-border) !important;
  background: var(--card-bg) !important;
}

/* =========================================================
   Qipido visual updates (2025-11-11) — appended as overrides
   - White body & header background sitewide
   - Headings (H1–H4) in black
   - Stronger borders + shadows on ALL cards (hero/search card,
     How It Works, testimonials, guides/why blocks, FAQs, result card)
   - NO JS or structural changes required
   ========================================================= */

:root{
  --background:#ffffff;
  --card-bg:#ffffff;
  --card-border:#d4d4d4;
  --card-shadow:0 10px 24px rgba(0,0,0,.08);
  --card-shadow-soft:0 6px 18px rgba(0,0,0,.07);
}

/* Force site & header to white */
body{background:#ffffff !important;}
header{background:#ffffff !important;}

/* Headings black (sitewide) */
h1,h2,h3,h4{color:#000 !important}

/* Optional split H1 styles (safe if not used) */
.page-title{margin-bottom:24px;letter-spacing:.01em}
.h1-title{display:block;font-weight:700;font-size:2.4rem;line-height:1.15;margin-bottom:6px}
.h1-subtitle{display:block;font-weight:600;font-size:1.2rem;opacity:.9}

/* Hero card around paragraph + search */
.hero-card{
  width:100%;max-width:820px;background:var(--card-bg);
  border:1px solid var(--card-border);border-radius:16px;
  box-shadow:var(--card-shadow);padding:24px;margin-bottom:40px;
}
.hero-card .description{max-width:100%;font-size:1.05rem;color:#333;margin:0 0 18px 0;text-align:left}

/* Search box visual consistency (unchanged behavior) */
.search-box{background:#fff !important;border-color:var(--primary) !important}

/* Result card outline boost */
.result-card{border:1px solid var(--card-border) !important;box-shadow:var(--card-shadow) !important}

/* How-it-works small cards */
.step-card{background:#fff !important;border:1px solid var(--card-border) !important;box-shadow:var(--card-shadow-soft) !important}

/* Testimonials / guide / why blocks use inline styles; strengthen via attribute selectors */
section div[style*="box-shadow:0 4px 12px"],
section div[style*="box-shadow:0 4px 16px"]{
  box-shadow:var(--card-shadow) !important;
  border:1px solid var(--card-border) !important;
  background:var(--card-bg) !important;
}

/* FAQ details blocks */
details[style]{
  box-shadow:var(--card-shadow-soft) !important;
  border:1px solid var(--card-border) !important;
  background:var(--card-bg) !important;
}


/* Mobile layout: stack search input and button vertically */
@media (max-width: 600px) {
    .search-box {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        overflow: visible;
    }

    .search-box input {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .search-box button {
        width: 100%;
        border-radius: 0 0 16px 16px;
    }
}
