/**
 * How It Works & FAQ - Aiero Complete Styling
 * Date: October 2, 2025
 */

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.mm-how-it-works {
    background: var(--mm-surface-2);
}

.mm-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

/* Step Cards - Aiero Style */
.mm-step {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(91, 81, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mm-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 81, 255, 0.15);
    border-color: rgba(91, 81, 255, 0.3);
}

/* Numbered Badge - Aiero Gradient */
.mm-step__label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #5B51FF 0%, #00D4FF 100%);
    color: white;
    border-radius: 50%;
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(91, 81, 255, 0.3);
    margin-bottom: 16px;
}

.mm-step__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mm-step h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--mm-text);
    margin: 0;
}

.mm-step p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--mm-text-muted);
    line-height: 1.6;
    margin: 16px 0 0 0;
}

/* Step Icons (optional enhancement) */
.mm-step__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 8px rgba(91, 81, 255, 0.2));
}

.mm-step__icon--anamnesis {
    background-image: url('/assets/design_1/images/medical-icons/Medical Record.png');
}

.mm-step__icon--investigation {
    background-image: url('/assets/design_1/images/medical-icons/DNA.png');
}

.mm-step__icon--therapy {
    background-image: url('/assets/design_1/images/medical-icons/Pills.png');
}

/* Dosage Strip */
.mm-dosage-strip {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 32px;
    align-items: center;
    margin-top: 48px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(91, 81, 255, 0.1);
    border-radius: 24px;
}

.mm-dosage-strip h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--mm-text);
    margin: 0 0 8px 0;
}

.mm-dosage-strip h4 {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--mm-text);
    margin: 0 0 12px 0;
}

.mm-dosage-strip p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--mm-text-muted);
    margin: 0;
}

.mm-dosage-strip .mm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mm-dosage-strip .mm-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--mm-text);
}

.mm-dosage-strip .mm-feature-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Responsive - How It Works */
@media (max-width: 960px) {
    .mm-steps__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .mm-dosage-strip {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (min-width: 768px) and (max-width: 960px) {
    .mm-steps__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FAQ SECTION - AIERO STYLE
   ============================================ */

.mm-faq {
    background: var(--mm-surface-1);
}

.mm-faq__list {
    max-width: 800px;
    margin: 48px auto 0;
}

.mm-faq__item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(91, 81, 255, 0.1);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mm-faq__item[open] {
    border-color: #5B51FF;
    background: rgba(91, 81, 255, 0.03);
    box-shadow: 0 4px 16px rgba(91, 81, 255, 0.12);
}

.mm-faq__item summary {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--mm-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 32px;
    position: relative;
    transition: color 0.3s ease;
}

.mm-faq__item[open] summary {
    color: #5B51FF;
    margin-bottom: 16px;
}

/* Hide default marker */
.mm-faq__item summary::-webkit-details-marker {
    display: none;
}

/* Custom + Icon with Rotation */
.mm-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(91, 81, 255, 0.1);
    color: #5B51FF;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.mm-faq__item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    background: #5B51FF;
    color: white;
}

.mm-faq__item summary:hover::after {
    background: rgba(91, 81, 255, 0.2);
}

.mm-faq__item[open] summary:hover::after {
    background: #4940CC;
}

.mm-faq__item p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--mm-text-muted);
    line-height: 1.7;
    margin: 0;
    padding-left: 0;
}

/* Smooth height transition */
.mm-faq__item[open] {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* Responsive - FAQ */
@media (max-width: 768px) {
    .mm-faq__item {
        padding: 20px 24px;
    }
    
    .mm-faq__item summary {
        font-size: 16px;
        padding-right: 40px;
    }
}






