/* ================================================
   ILO ROBOT - MODERN HELP STYLES
   Clean, Readable, Accessible FAQ
   ================================================ */

:root {
    /* Colors */
    --ilo-blue: #24b4b1;
    --ilo-blue-hover: #1d9996;
    --ilo-black: #17272d;
    --ilo-dark-grey: #4a5568;
    --ilo-grey: #8d9da8;
    --ilo-light-grey: #e2e8f0;
    --ilo-white: #ffffff;
    --ilo-bg-light: #f8fafc;
    
    /* Gradients */
    --ilo-gradient-hero: linear-gradient(135deg, #f1f7fb 0%, #ffffff 100%);
    --ilo-gradient-accent: linear-gradient(135deg, #24b4b1 0%, #1d9996 100%);
    
    /* Shadows & Effects */
    --ilo-shadow-sm: 0 4px 6px rgba(23, 39, 45, 0.02);
    --ilo-shadow-hover: 0 10px 25px rgba(23, 39, 45, 0.08);
    --ilo-glass: blur(12px);
    
    /* Radius */
    --ilo-radius-md: 20px;
    --ilo-radius-lg: 32px;
    
    /* Transitions */
    --ilo-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'poppins', sans-serif;
    color: var(--ilo-black);
    background-color: var(--ilo-white);
    margin: 0;
    line-height: 1.6;
}

/* ---------- Layout Wrapper ---------- */
.help-wrapper {
    max-width: 1000px; /* Text needs to be readable, not too wide */
    margin: 0 auto;
    padding: 0 20px 100px;
}

/* ---------- HERO SECTION ---------- */
.help-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px 60px; /* Top padding for navbar space */
    background: var(--ilo-gradient-hero);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 60px;
    gap: 40px;
}

.help-hero__content {
    flex: 1;
    max-width: 600px;
    margin-left: auto; /* Center alignment logic */
}

.help-hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--ilo-black);
}

.help-hero__text {
    font-size: 1.2rem;
    color: var(--ilo-dark-grey);
    margin: 0;
}

.help-hero__img-container {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin-right: auto;
}

.help-hero__img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(36, 180, 177, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 800px) {
    .help-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
    }
    .help-hero__content, .help-hero__img-container {
        margin: 0 auto;
    }
    .help-hero__title { font-size: 2.2rem; }
}

/* ---------- FAQ LIST ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- FAQ ITEM (Accordion) ---------- */
.faq-item {
    background: var(--ilo-white);
    border: 1px solid var(--ilo-light-grey);
    border-radius: var(--ilo-radius-md);
    transition: all 0.3s var(--ilo-ease);
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--ilo-blue);
    box-shadow: var(--ilo-shadow-sm);
    transform: translateY(-2px);
}

/* Header (Label which acts as button) */
.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ilo-black);
    transition: color 0.2s;
}

.faq-header:hover {
    color: var(--ilo-blue);
}

.faq-icon {
    width: 24px;
    height: 24px;
    fill: var(--ilo-grey);
    transition: transform 0.4s var(--ilo-ease), fill 0.2s;
    flex-shrink: 0;
    margin-left: 20px;
}

/* Input Checkbox Logic */
.faq-toggle {
    display: none; /* Hidden checkbox */
}

/* Child Content (Answer) */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s;
    background: var(--ilo-bg-light);
}

.faq-content {
    padding: 0 32px 32px;
    color: var(--ilo-dark-grey);
    font-size: 1rem;
}

.faq-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-content li {
    margin-bottom: 8px;
}

.faq-content a {
    color: var(--ilo-blue);
    text-decoration: none;
    font-weight: 500;
}

.faq-content a:hover {
    text-decoration: underline;
}

/* Open State */
.faq-toggle:checked ~ .faq-body {
    max-height: 500px; /* Arbitrary large height */
}

.faq-toggle:checked + .faq-header .faq-icon {
    transform: rotate(180deg);
    fill: var(--ilo-blue);
}

.faq-toggle:checked + .faq-header {
    color: var(--ilo-blue);
}
