{"version":3,"file":"FAQS.B5ttZosI.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/uRsibDS1ErWuLrp7Jql1/b3TBQwQ3Rzc3jaVAgHe8/FAQS.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// --- PURE INLINE SVGS ---\nconst PlusIcon=({size=16})=>/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12 5v14\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14\"})]});const MinusIcon=({size=16})=>/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14\"})});// --- STATIC CSS (No JS variable injection needed here) ---\nconst css=`\n.faq-wrapper {\n    font-family: 'Inter', sans-serif;\n    padding: 64px 24px;\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    background-color: var(--bg-color);\n    box-sizing: border-box;\n}\n\n.faq-container {\n    max-width: 800px;\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n}\n\n/* Header Section */\n.faq-header-section {\n    text-align: center;\n    margin-bottom: 48px;\n}\n\n.faq-subhead {\n    color: var(--brand-primary);\n    font-size: 12px;\n    font-weight: 700;\n    text-transform: uppercase;\n    letter-spacing: 0.1em;\n    margin-bottom: 12px;\n    display: block;\n}\n\n.faq-main-title {\n    font-family: 'Merriweather', serif;\n    font-size: 323px;\n    color: var(--brand-dark);\n    line-height: 1.1;\n    margin: 0;\n}\n\n/* FAQ Card */\n.faq-card {\n    background: white;\n    border-radius: 16px;\n    padding: 16px;\n    width: 100%;\n    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n    border: 1px solid #F1F5F9;\n    box-sizing: border-box;\n}\n\n/* Accordion Item */\n.faq-item {\n    border-bottom: 1px solid #E2E8F0;\n}\n.faq-item:last-child {\n    border-bottom: none;\n}\n\n.faq-trigger {\n    width: 100%;\n    padding: 20px 0;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    background: none;\n    border: none;\n    text-align: left;\n    cursor: pointer;\n    gap: 16px;\n}\n\n.faq-question-text {\n    font-size: 16px;\n    font-weight: 500;\n    transition: color 0.2s ease;\n    font-family: 'Inter', sans-serif;\n    color: #1E293B;\n}\n\n.faq-icon-wrapper {\n    padding: 6px;\n    border-radius: 50%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    transition: all 0.2s ease;\n    background-color: var(--brand-accent);\n    color: var(--brand-dark);\n}\n\n/* --- THE ZERO-JS HEIGHT ANIMATION TRICK --- */\n.faq-answer-grid {\n    display: grid;\n    grid-template-rows: 0fr;\n    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.faq-answer-inner {\n    overflow: hidden;\n}\n\n.faq-answer-text {\n    padding-bottom: 24px;\n    color: #475569;\n    line-height: 1.6;\n    font-size: 14px;\n    max-width: 650px;\n    margin: 0;\n}\n\n/* Active State Overrides */\n.faq-item.is-open .faq-question-text {\n    color: var(--brand-primary);\n}\n\n.faq-item.is-open .faq-icon-wrapper {\n    background-color: var(--brand-primary);\n    color: white;\n}\n\n.faq-item.is-open .faq-answer-grid {\n    grid-template-rows: 1fr;\n}\n\n/* Desktop Styles */\n@media (min-width: 768px) { \n    .faq-subhead { font-size: 14px; } \n    .faq-main-title { font-size: 48px; } \n    .faq-card { border-radius: 24px; padding: 32px; } \n    .faq-question-text { font-size: 18px; } \n    .faq-answer-text { font-size: 16px; } \n}\n`;export default function FAQSection(props){const[openIndex,setOpenIndex]=React.useState(null);const handleToggle=index=>{setOpenIndex(openIndex===index?null:index);};return /*#__PURE__*/_jsxs(\"section\",{className:\"faq-wrapper\",style:{// Pass props to CSS seamlessly\n\"--bg-color\":props.backgroundColor,\"--brand-dark\":props.brandDark,\"--brand-primary\":props.brandPrimary,\"--brand-accent\":props.brandAccent},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),/*#__PURE__*/_jsxs(\"div\",{className:\"faq-container\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"faq-header-section\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"faq-subhead\",children:props.sectionTag}),/*#__PURE__*/_jsx(\"h2\",{className:\"faq-main-title\",children:props.sectionTitle})]}),/*#__PURE__*/_jsx(\"div\",{className:\"faq-card\",children:props.faqs.map((faq,index)=>{const isOpen=openIndex===index;return /*#__PURE__*/_jsxs(\"div\",{className:`faq-item ${isOpen?\"is-open\":\"\"}`,children:[/*#__PURE__*/_jsxs(\"button\",{className:\"faq-trigger\",onClick:()=>handleToggle(index),\"aria-expanded\":isOpen,children:[/*#__PURE__*/_jsx(\"span\",{className:\"faq-question-text\",children:faq.question}),/*#__PURE__*/_jsx(\"span\",{className:\"faq-icon-wrapper\",children:isOpen?/*#__PURE__*/_jsx(MinusIcon,{size:16}):/*#__PURE__*/_jsx(PlusIcon,{size:16})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"faq-answer-grid\",children:/*#__PURE__*/_jsx(\"div\",{className:\"faq-answer-inner\",children:/*#__PURE__*/_jsx(\"p\",{className:\"faq-answer-text\",children:faq.answer})})})]},faq.id||index);})})]})]});}addPropertyControls(FAQSection,{backgroundColor:{type:ControlType.Color,title:\"Bg Color\",defaultValue:\"#FFFFFF\"},brandDark:{type:ControlType.Color,title:\"Dark Color\",defaultValue:\"#113A3A\"},brandPrimary:{type:ControlType.Color,title:\"Primary Color\",defaultValue:\"#2D6A6A\"},brandAccent:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#E6F4F1\"},sectionTag:{type:ControlType.String,defaultValue:\"FAQ\"},sectionTitle:{type:ControlType.String,defaultValue:\"Answers to your most common questions\"},faqs:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{id:{type:ControlType.String,title:\"ID\",hidden:true,defaultValue:()=>`faq-${Math.random().toString(36).substring(2,9)}`},question:{type:ControlType.String},answer:{type:ControlType.String,displayTextArea:true}}},defaultValue:[{id:\"faq-1\",question:\"What is microsuction? Is it painful?\",answer:\"Microsuction is the gold standard for earwax removal. It uses a gentle medical vacuum to remove wax. It is generally painless, though it can be a bit noisy. Unlike syringing, no water is used, reducing infection risk.\"},{id:\"faq-2\",question:\"How long does the appointment take?\",answer:\"A standard appointment typically takes between 20 to 30 minutes. This allows time for examination, the procedure, and post-procedure check.\"},{id:\"faq-3\",question:\"Is there an age limit?\",answer:\"We treat patients of almost all ages, from children (usually 4+) to the elderly. For young children, we assess on a case-by-case basis depending on their ability to sit still.\"},{id:\"faq-4\",question:\"Do I need to do anything to prepare?\",answer:\"Using olive oil drops (specifically for ears) for 2-3 days prior to your appointment is highly recommended. It softens the wax, making the procedure quicker and more comfortable.\"},{id:\"faq-5\",question:\"What happens if you find no wax?\",answer:\"We operate on a strict 'No Wax? No Fee' policy. If we examine your ears and find they are clear, the consultation is free. We believe in honest healthcare, not unnecessary bills.\"},{id:\"faq-6\",question:\"What areas do you service?\",answer:\"We currently service the greater metropolitan area. Please check our 'Service Areas' page for a detailed map of our coverage.\"},{id:\"faq-7\",question:\"How can I pay?\",answer:\"We accept all major credit/debit cards via a secure portable terminal. Cash is also accepted.\"},{id:\"faq-8\",question:\"Can I book for my parents?\",answer:\"Absolutely. Many of our clients book on behalf of elderly parents. You can handle the booking and payment online or on-site.\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# s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