/* ./public/css/feedbackLanding.css */

/* Basic body layout using Flexbox */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.container {
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.card-img-top {
    width: 65px;
    height: auto;
    padding-top: 20px;
    padding-left: 10px;
    max-width: 100px;
    max-height: 100px;
}

.new-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    padding: 10px;
    font-size: 1rem;
    border-radius: 3px;
}

footer.bg-light {
    margin-top: 80px !important;
}

.article-separator {
    border-top: 2px solid #ccc;
    margin: 20px auto;
    width: 50%;
    min-height: 1px;
}

.card {
    border: none;
}

.hidden {
    display: none;
}

.feedback-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feedback-step {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
}

.feedback-step-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.feedback-step-text {
    padding: 20px;
    text-align: center;
}

.feedback-step-text h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.feedback-step-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* ===== New Abstract Hero Section ===== */
.hero.hero-abstract {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 260px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    color: #1e293b;
}

.hero.hero-abstract .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      radial-gradient(800px 400px at 20% 20%, rgba(59,130,246,0.15), transparent 60%),
      radial-gradient(600px 300px at 80% 80%, rgba(16,185,129,0.12), transparent 65%),
      radial-gradient(500px 250px at 50% 50%, rgba(139,92,246,0.1), transparent 70%);
}

.hero.hero-abstract .hero-bg::before {
    content: "";
    position: absolute;
    inset: -1px;
    opacity: 0.05;
    background:
      linear-gradient(transparent 95%, rgba(59,130,246,0.1) 96%),
      linear-gradient(90deg, transparent 95%, rgba(59,130,246,0.1) 96%);
    background-size: 24px 24px, 24px 24px;
    mask: linear-gradient(#000, transparent 90%);
}

.hero.hero-abstract .hero-bg::after {
    display: none;
}


.hero.hero-abstract > *:not(.hero-bg) {
    position: relative;
    z-index: 1;
}

.hero.hero-abstract h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero.hero-abstract .lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 2rem;
    /* Keep subtitle in a single line */
    white-space: nowrap;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.trust-badges .badge,
.glass-badge {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
    padding: .6rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Add green tick in front of each hero badge */
.trust-badges .badge::before,
.trust-badges .glass-badge::before {
    content: '✓';
    color: #10b981; /* emerald-500 */
    font-weight: 900; /* thicker */
    font-size: 1.05rem; /* slightly larger for thickness */
    margin-right: 0.5rem;
    /* subtle stroke to visually thicken the glyph across renderers */
    -webkit-text-stroke: 0.4px #10b981;
    text-shadow: 0 0 0 #10b981; /* fallback tightening */
}

/* Make the secondary hero button visually consistent with the green CTA */
.hero.hero-abstract .btn-outline-light {
    color: #059669; /* emerald-600 text */
    border-color: #10b981; /* emerald-500 border */
    border-width: 2px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.15);
    /* Match primary button micro-interactions */
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.hero.hero-abstract .btn-outline-light:hover {
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #059669;
    box-shadow: 0 6px 16px rgba(16,185,129,0.35);
    transform: translateY(-2px);
}

.hero.hero-abstract .btn-outline-light:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

/* Unify hover effect between primary and secondary hero buttons */
.hero.hero-abstract .btn-success:hover,
.hero.hero-abstract .btn-outline-light:hover {
    box-shadow: 0 6px 18px rgba(16,185,129,0.5); /* same shadow lift */
}

/* Consistent accessible focus ring for both hero buttons */
.hero.hero-abstract .btn-success:focus,
.hero.hero-abstract .btn-outline-light:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.25), 0 6px 12px rgba(16,185,129,0.25);
}

/* Increase gap between hero buttons and badges */
.hero.hero-abstract .trust-badges {
    margin-top: 1.25rem !important; /* override mt-2 from markup */
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero.hero-abstract h1 {
        font-size: 2.5rem;
    }
    
    .hero.hero-abstract .lead {
        font-size: 1.1rem;
    }
    
    .feature-card .card-body {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }
    
    #cta h2 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero.hero-abstract { 
        min-height: 320px;
        margin-bottom: 3rem;
    }
    
    .hero.hero-abstract .hero-bg::after { 
        width: 600px; 
        height: 600px; 
    }
    
    .hero.hero-abstract h1 {
        font-size: 2rem;
    }
    
    /* Allow subtitle to wrap on small screens */
    .hero.hero-abstract .lead {
        white-space: normal;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .container {
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .trust-badges .badge {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

/* ===== Section Spacing & Typography ===== */
section {
    margin-bottom: 5rem;
}

h2 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

#benefits-heading,
#how-heading,
#sample-heading,
#testimonials-heading,
#faq-heading {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}

#benefits-heading::after,
#how-heading::after,
#sample-heading::after,
#faq-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
}

/* ===== Sample Report (What you'll get) ===== */
#sample-report .report-card {
    /* Match feature-card aesthetic */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem 1rem;
    max-width: 720px;
}

#sample-report .report-block {
    padding: 0.75rem 0 0.25rem;
    margin-top: 0.25rem;
    position: relative;
}

#sample-report .report-block + .report-block {
    border-top: 1px solid #e2e8f0; /* match other section dividers */
    margin-top: 0.75rem;
    padding-top: 0.9rem;
}

#sample-report .report-block h6,
#sample-report .report-block .h6 {
    position: relative;
    padding-left: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

#sample-report .report-block .h6::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.05rem;
    transform: none;
    color: #10b981;
    font-weight: 800;
    font-size: 1rem;
    -webkit-text-stroke: 0.4px #10b981;
    text-shadow: 0 0 0 #10b981;
}

#sample-report .report-card p {
    color: #475569;
}

/* Inherit global .btn-outline-secondary styles for consistency */

/* ===== Accordion Improvements ===== */
.accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-button {
    background: #f8fafc;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: #1e293b;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: #64748b;
    line-height: 1.6;
}

/* ====================================== */

.text-white { color: white !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

.btn-success { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Hero-specific: increase contrast of primary button hover */
.hero.hero-abstract .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); /* lighter by default */
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
.hero.hero-abstract .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%); /* darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}
.hero.hero-abstract .btn-success:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}

.btn-primary { 
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid #64748b;
    color: #64748b;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #64748b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

#cta { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 4rem 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

#cta h2 {
    color: #1e293b;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#cta p {
    color: #64748b;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.testimonials { 
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-radius: 20px;
    margin: 3rem 0; /* slightly tighter vertical spacing */
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem !important; /* override py-5 to reduce height */
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials .blockquote {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.1rem 1rem; /* more compact */
    margin: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonials .blockquote:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.testimonials .blockquote-footer {
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: transparent;
    font-weight: 500;
    margin-top: 0.6rem;
}

/* Testimonials text sizing */
#testimonials-heading {
    font-size: 2rem; /* down from 2.5rem */
    margin-bottom: 1.25rem;
}

.testimonials .blockquote p {
    font-size: 1rem; /* compact quote text */
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

/* Reduce gutters inside testimonials grid */
.testimonials .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Even tighter on small screens */
@media (max-width: 768px) {
    #testimonials-heading { font-size: 1.75rem; }
    .testimonials { padding: 1.5rem 0.75rem !important; }
    .testimonials .blockquote { padding: 0.9rem 0.85rem; }
    .testimonials .blockquote p { font-size: 0.98rem; }
}

/* Prevent carousel indicators from overlapping testimonial footer on mobile */
.testimonials .carousel-indicators {
    position: static; /* take out of absolute overlay */
    margin-top: 0.75rem;
}

.testimonials .carousel-indicators [data-bs-target] {
    background-color: rgba(255,255,255,0.8);
}

.testimonials .carousel-item blockquote {
    margin-bottom: 0; /* keep compact */
}

.feedback-form { max-width: 600px; }

.info-icon {
    font-size: 0.9rem;
    color: #007bff;
    cursor: pointer;
    margin-left: 5px;
}

.max-width-container {
    max-width: 900px;
    margin: 0 auto;
}

.img-fluid { max-width: 65%; height: auto; }

.copy-icon { cursor: pointer; }
#copyMessage {
    font-size: 0.9rem;
    color: green;
    display: none;
    margin-top: 5px;
}
.visible { display: inline; }

.noUnderline { text-decoration: none; color: inherit; }

.form-control, .form-select, .btn {
    max-width: 100%;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.benefit-list {
    list-style: none;
    padding-left: 0;
}

.benefit-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.feature-card { 
    height: 100%; 
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .card-body {
    padding: 1.5rem 1.5rem 0.8rem; /* even tighter top/bottom space */
    /* Ensure consistent vertical structure inside cards */
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.25rem; /* tighter before description */
    font-size: 1.4rem;
    /* Normalize heading block height so rows align across cards */
    line-height: 1.2;
    min-height: 1.8rem; /* reduce reserved space */
    text-align: center; /* center the heading */
}

.feature-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.25rem; /* tighter before bullet list */
    /* Keep lists reasonably aligned across cards but prioritize compactness */
    min-height: 1rem; /* minimal reserve */
}

/* Tighten the top gap of the bullet list under the description within feature cards */
.feature-card .benefit-list {
    margin-top: 0.15rem; /* override browser default (~1em) */
}
.feature-card .benefit-list li { margin-bottom: 0.4rem; }
.feature-card .benefit-list li:last-child { margin-bottom: 0; }

/* On smaller screens, relax min-heights to avoid excessive whitespace */
@media (max-width: 576px) {
    .feature-card h3 { min-height: 1.6rem; }
    .feature-card p { min-height: 1rem; }
}

/* Make feature titles slightly smaller on md+ so long phrases fit on one line */
@media (min-width: 768px) {
    .feature-card h3 {
        font-size: 1.25rem; /* down from 1.4rem */
        letter-spacing: -0.01em; /* subtle tightening */
    }
}
.sample-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sample-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
}

.sample-card img { 
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.sample-card:hover img {
    transform: scale(1.02);
}

/* Ensure the sample report preview uses full width inside its card */
.sample-card .card-img-top {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
.logo-bar img { 
    max-height: 32px; 
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.logo-bar img:hover {
    opacity: 0.9;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===== PDF Modal Styles (replaces inline styles to satisfy CSP) ===== */
.modal-pdf-body {
    height: 80vh; /* large readable view */
}

.modal-pdf-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}