{"version":3,"file":"FAQS.C2lkcloc.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/uRsibDS1ErWuLrp7Jql1/futZK8BZzW2waVZdoHv1/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 ---\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: 32px;\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 10px 30px -10px rgba(0, 0, 0, 0.05); /* Softened shadow */\n    border: 1px solid #E2E8F0;\n    box-sizing: border-box;\n}\n\n/* Accordion Item */\n.faq-item {\n    border-bottom: 1px solid #F1F5F9;\n}\n.faq-item:last-child {\n    border-bottom: none;\n}\n\n.faq-trigger {\n    width: 100%;\n    padding: 24px 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: 600;\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: 15px;\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: 40px; } \n    .faq-card { border-radius: 24px; padding: 32px 40px; } \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:\"#F8FAFC\"},brandDark:{type:ControlType.Color,title:\"Dark Color\",defaultValue:\"#0F4C5C\"},brandPrimary:{type:ControlType.Color,title:\"Primary Color\",defaultValue:\"#2D6A6A\"},brandAccent:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#ECFDF5\"},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, low-pressure medical vacuum to clear wax. It is completely painless, though you will hear a slight rushing sound. Unlike outdated syringing, no water is used, completely eliminating the risk of ear infections.\"},{id:\"faq-2\",question:\"How long does the appointment take?\",answer:\"A standard appointment typically takes 30 minutes. In our private clinic, we never rush you. This allows plenty of time for a thorough unhurried examination, the microsuction procedure itself, and a before & after video check of your eardrum.\"},{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 comfortably.\"},{id:\"faq-4\",question:\"Do I need to do anything to prepare?\",answer:\"Using medicinal olive oil drops (available at pharmacies) for 2-3 days prior to your appointment is highly recommended. It softens the wax, making the procedure even 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 with our HD cameras and find they are entirely clear, the consultation is completely free.\"},{id:\"faq-6\",question:\"What areas do you service?\",answer:\"Our primary service is conducted in our private, dedicated clinic located in Roxburgh Park. For patients with mobility issues or who are completely unable to travel, we also offer a premium mobile service covering the Northern Suburbs of Melbourne.\"},{id:\"faq-7\",question:\"How can I pay?\",answer:\"We accept all major credit and debit cards via a secure terminal at the clinic. 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. Our Roxburgh Park clinic has free parking right outside the door, making it incredibly easy and safe for elderly patients to access.\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQS.map"],"mappings":"iLA4IE,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAe,IAAI,EAAQ,EAAa,GAAO,CAAC,EAAa,IAAY,EAAM,KAAK,CAAK,CAAE,EAAE,OAAoB,EAAM,UAAU,CAAC,UAAU,cAAc,MAAM,CAC1O,aAAa,EAAM,gBAAgB,eAAe,EAAM,UAAU,kBAAkB,EAAM,aAAa,iBAAiB,EAAM,WAAW,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAG,CAAC,CAAC,EAAe,EAAM,MAAM,CAAC,UAAU,gBAAgB,SAAS,CAAc,EAAM,MAAM,CAAC,UAAU,qBAAqB,SAAS,CAAc,EAAK,OAAO,CAAC,UAAU,cAAc,SAAS,EAAM,UAAU,CAAC,EAAe,EAAK,KAAK,CAAC,UAAU,iBAAiB,SAAS,EAAM,YAAY,CAAC,CAAC,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,WAAW,SAAS,EAAM,KAAK,KAAK,EAAI,IAAQ,CAAC,IAAM,EAAO,IAAY,EAAM,OAAoB,EAAM,MAAM,CAAC,UAAU,YAAY,EAAO,UAAU,KAAK,SAAS,CAAc,EAAM,SAAS,CAAC,UAAU,cAAc,YAAY,EAAa,CAAK,EAAE,gBAAgB,EAAO,SAAS,CAAc,EAAK,OAAO,CAAC,UAAU,oBAAoB,SAAS,EAAI,QAAQ,CAAC,EAAe,EAAK,OAAO,CAAC,UAAU,mBAAmB,SAA6B,EAApB,EAAyB,EAAuC,EAA7B,CAAC,KAAK,EAAE,CAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,kBAAkB,SAAsB,EA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