index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. <template>
  2. <div>
  3. <section
  4. id="quem-somos"
  5. class="relative min-h-screen flex flex-col bg-cover lg:bg-left"
  6. :style="{ backgroundImage: `url(${heroBackground})` }"
  7. >
  8. <div class="absolute inset-0 bg-violet-normal/45"/>
  9. <div class="relative z-10 flex-1 flex items-center">
  10. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full pt-8 pb-20 lg:py-18">
  11. <div class="flex flex-col lg:flex-row gap-4 lg:gap-12">
  12. <div class="max-w-2xl justifyBetween">
  13. <h1
  14. class="reveal text-h2 text-white font-black mb-10"
  15. style="font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900;"
  16. >
  17. {{ settings.hero_title }}
  18. </h1>
  19. <p class="reveal reveal-delay-1 text-white/90 mb-6 leading-relaxed" style="font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 600;">
  20. {{ settings.hero_subtitle }}
  21. </p>
  22. <div class="reveal reveal-delay-2 flex flex-col sm:flex-row gap-4">
  23. <button
  24. class="btn-primary"
  25. @click="scrollTo('associe-se')"
  26. >
  27. ASSOCIE-SE AGORA
  28. </button>
  29. <button
  30. class="btn-outline"
  31. @click="scrollTo('beneficios')"
  32. >
  33. CONHEÇA OS BENEFÍCIOS
  34. </button>
  35. </div>
  36. </div>
  37. <div class="reveal reveal-delay-3 flex flex-row lg:flex-col gap-6 lg:gap-8 shrink-0">
  38. <div class="flex flex-col items-start gap-1">
  39. <span class="material-icons text-white/90 text-3xl lg:text-4xl">group</span>
  40. <span class="text-white font-bold" style="font-size: clamp(1.25rem, 2.5vw, 1.75rem);">{{ settings.stat1_value }}</span>
  41. <span class="text-white/80 text-sm">{{ settings.stat1_label }}</span>
  42. </div>
  43. <div class="flex flex-col items-start gap-1">
  44. <span class="material-icons text-white/90 text-3xl lg:text-4xl">handshake</span>
  45. <span class="text-white font-bold" style="font-size: clamp(1.25rem, 2.5vw, 1.75rem);">{{ settings.stat2_value }}</span>
  46. <span class="text-white/80 text-sm">{{ settings.stat2_label }}</span>
  47. </div>
  48. <div class="flex flex-col items-start gap-1">
  49. <span class="material-icons text-white/90 text-3xl lg:text-4xl">favorite_border</span>
  50. <span class="text-white font-bold" style="font-size: clamp(1.25rem, 2.5vw, 1.75rem);">{{ settings.stat3_value }}</span>
  51. <span class="text-white/80 text-sm">{{ settings.stat3_label }}</span>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </section>
  58. <section id="beneficios" class="bg-neutral-light py-16 lg:py-24">
  59. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  60. <div class="reveal text-center mb-12 lg:mb-16">
  61. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  62. Benefícios para você
  63. </h2>
  64. </div>
  65. <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
  66. <div
  67. v-for="(benefit, index) in benefits"
  68. :key="benefit.id"
  69. :class="`reveal reveal-delay-${index + 1}`"
  70. class="benefit-card"
  71. >
  72. <div class="benefit-icon-wrap">
  73. <i :class="`mdi ${benefit.icon} text-violet-normal`" style="font-size: 1.5rem;" />
  74. </div>
  75. <h3 class="text-subtitle-1 font-semibold text-text mt-4 mb-2">
  76. {{ benefit.title }}
  77. </h3>
  78. <p class="text-body-2 text-text-2 leading-relaxed">
  79. {{ benefit.description }}
  80. </p>
  81. </div>
  82. </div>
  83. </div>
  84. </section>
  85. <section v-if="hasAbout" id="sobre-nos" class=" py-16 lg:py-24">
  86. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  87. <div v-if="aboutCards.length" class="reveal text-center mb-12 lg:mb-16">
  88. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  89. Quem somos
  90. </h2>
  91. </div>
  92. <div v-if="aboutCards.length" class="grid grid-cols-1 gap-6">
  93. <div
  94. v-for="(card, index) in aboutCards"
  95. :key="card.title"
  96. :class="`reveal reveal-delay-${index + 1}`"
  97. class="benefit-card"
  98. >
  99. <div class="benefit-icon-wrap">
  100. <i :class="`mdi ${card.icon} text-violet-normal`" style="font-size: 1.5rem;" />
  101. </div>
  102. <h3 class="text-subtitle-1 font-semibold text-text mt-4 mb-2">
  103. {{ card.title }}
  104. </h3>
  105. <p
  106. v-for="(paragraph, paragraphIndex) in card.paragraphs"
  107. :key="paragraphIndex"
  108. lang="pt-BR"
  109. class="text-body-2 text-text-2 text-justify hyphens-auto about-text"
  110. :class="{ 'mt-3': paragraphIndex > 0 }"
  111. >
  112. {{ paragraph }}
  113. </p>
  114. </div>
  115. </div>
  116. <template v-if="settings.about_history">
  117. <div
  118. class="reveal text-center mb-10 lg:mb-12"
  119. :class="{ 'mt-16 lg:mt-24': aboutCards.length }"
  120. >
  121. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  122. História
  123. </h2>
  124. </div>
  125. <div class="reveal reveal-delay-1 benefit-card history-card">
  126. <div class="benefit-icon-wrap">
  127. <i class="mdi mdi-book-open-page-variant-outline text-violet-normal" style="font-size: 1.5rem;" />
  128. </div>
  129. <p
  130. v-for="(paragraph, index) in historyParagraphs"
  131. :key="index"
  132. lang="pt-BR"
  133. class="text-body-1 text-text-2 text-justify hyphens-auto history-text"
  134. :class="index === 0 ? 'mt-5' : 'mt-4'"
  135. >
  136. {{ paragraph }}
  137. </p>
  138. </div>
  139. </template>
  140. </div>
  141. </section>
  142. <section v-if="events.length" id="eventos" class="bg-neutral-light py-16 lg:py-24">
  143. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  144. <div class="reveal text-center mb-12 lg:mb-16">
  145. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  146. Eventos
  147. </h2>
  148. </div>
  149. <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 items-start">
  150. <EventCard
  151. v-for="(event, index) in events"
  152. :key="event.id"
  153. :class="`reveal reveal-delay-${(index % 2) + 1}`"
  154. :event="event"
  155. />
  156. </div>
  157. </div>
  158. </section>
  159. <section id="associe-se" class="bg-violet-light py-16 lg:py-24">
  160. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  161. <div class="reveal text-center mb-10 lg:mb-12">
  162. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  163. Associe-se
  164. </h2>
  165. </div>
  166. <div class="reveal reveal-delay-1 max-w-3xl mx-auto">
  167. <div class="mb-0">
  168. <button class="tab-active">
  169. NOVA ASSOCIAÇÃO
  170. </button>
  171. </div>
  172. <div class="bg-white rounded-b-2xl rounded-tr-2xl shadow-md p-6 lg:p-10">
  173. <form novalidate @submit.prevent="handleSubmit" >
  174. <div class="grid grid-cols-1 sm:grid-cols-2 gap-5 mb-6">
  175. <div class="field-group">
  176. <label class="field-label">Nome</label>
  177. <div :class="['field-input-wrap', { 'field-error': errors.nome }]">
  178. <span class="material-icons field-icon">person</span>
  179. <input
  180. v-model="form.nome"
  181. type="text"
  182. placeholder="Seu nome"
  183. class="field-input"
  184. >
  185. </div>
  186. </div>
  187. <div class="field-group">
  188. <label class="field-label">Sobrenome</label>
  189. <div :class="['field-input-wrap', { 'field-error': errors.sobrenome }]">
  190. <span class="material-icons field-icon">person</span>
  191. <input
  192. v-model="form.sobrenome"
  193. type="text"
  194. placeholder="Seu sobrenome"
  195. class="field-input"
  196. >
  197. </div>
  198. </div>
  199. <div class="field-group">
  200. <label class="field-label">CPF</label>
  201. <div :class="['field-input-wrap', { 'field-error': errors.cpf }]">
  202. <span class="material-icons field-icon">badge</span>
  203. <input
  204. :value="form.cpf"
  205. type="text"
  206. placeholder="000.000.000-00"
  207. maxlength="14"
  208. class="field-input"
  209. @input="handleCPF"
  210. @blur="onCPFBlur"
  211. >
  212. </div>
  213. </div>
  214. <div class="field-group">
  215. <label class="field-label">Crachá</label>
  216. <div :class="['field-input-wrap', { 'field-error': errors.cracha }]">
  217. <span class="material-icons field-icon">credit_card</span>
  218. <input
  219. v-model="form.cracha"
  220. type="text"
  221. placeholder="Número do seu crachá"
  222. class="field-input"
  223. >
  224. </div>
  225. </div>
  226. <div class="field-group">
  227. <label class="field-label">E-mail</label>
  228. <div :class="['field-input-wrap', { 'field-error': errors.email }]">
  229. <span class="material-icons field-icon">email</span>
  230. <input
  231. v-model="form.email"
  232. type="email"
  233. placeholder="nome@conta.com"
  234. class="field-input"
  235. @blur="onEmailBlur"
  236. >
  237. </div>
  238. </div>
  239. <div class="field-group">
  240. <label class="field-label">Telefone</label>
  241. <div :class="['field-input-wrap', { 'field-error': errors.telefone }]">
  242. <span class="material-icons field-icon">phone</span>
  243. <input
  244. :value="form.telefone"
  245. type="tel"
  246. placeholder="(00) 00000-0000"
  247. maxlength="15"
  248. class="field-input"
  249. @input="handlePhone"
  250. @blur="onPhoneBlur"
  251. >
  252. </div>
  253. </div>
  254. <div class="field-group">
  255. <label class="field-label">Cargo</label>
  256. <div :class="['field-input-wrap', { 'field-error': errors.cargoId }]">
  257. <span class="material-icons field-icon">work</span>
  258. <select v-model="form.cargoId" class="field-input">
  259. <option :value="null" disabled>Selecione seu cargo</option>
  260. <option v-for="position in positions" :key="position.id" :value="position.id">
  261. {{ position.name }}
  262. </option>
  263. </select>
  264. </div>
  265. </div>
  266. <div class="field-group">
  267. <label class="field-label">Setor</label>
  268. <div :class="['field-input-wrap', { 'field-error': errors.setorId }]">
  269. <span class="material-icons field-icon">business</span>
  270. <select v-model="form.setorId" class="field-input">
  271. <option :value="null" disabled>Selecione seu setor</option>
  272. <option v-for="sector in sectors" :key="sector.id" :value="sector.id">
  273. {{ sector.name }}
  274. </option>
  275. </select>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="flex justify-center">
  280. <button type="submit" class="btn-submit" :disabled="isLoading" :style="isLoading ? 'opacity: 0.7; cursor: not-allowed;' : ''">
  281. {{ isLoading ? 'ENVIANDO...' : 'ENVIAR SOLICITAÇÃO' }}
  282. </button>
  283. </div>
  284. </form>
  285. </div>
  286. </div>
  287. </div>
  288. </section>
  289. <Transition name="toast">
  290. <div
  291. v-if="showSuccess"
  292. class="fixed bottom-6 right-6 z-50 max-w-sm bg-violet-normal text-white px-5 py-4 rounded-xl shadow-xl flex items-start gap-3"
  293. >
  294. <span class="material-icons text-xl">check_circle</span>
  295. <span class="text-sm font-medium">
  296. Solicitação enviada com sucesso! Assim que a administração aprovar seu cadastro,
  297. use a opção "Meu Primeiro Acesso" no login para criar sua senha.
  298. </span>
  299. </div>
  300. </Transition>
  301. <Transition name="toast">
  302. <div
  303. v-if="showError"
  304. class="fixed bottom-6 right-6 z-50 bg-red-600 text-white px-5 py-4 rounded-xl shadow-xl flex items-center gap-3"
  305. >
  306. <span class="material-icons text-xl">error_outline</span>
  307. <span class="text-sm font-medium">{{ errorMessage }}</span>
  308. </div>
  309. </Transition>
  310. </div>
  311. </template>
  312. <script setup lang="ts">
  313. import heroBgFallback from '~/assets/images/imagem_fundo.png'
  314. useHead({ title: 'Serprati' })
  315. definePageMeta({ layout: 'default' })
  316. const { settings, benefits } = useCompanyData()
  317. const { events } = useEvents()
  318. const heroBackground = computed(() => settings.value.hero_background_url ?? heroBgFallback)
  319. const toParagraphs = (raw: string | null): string[] => {
  320. const content = raw?.trim()
  321. if (!content) return []
  322. const paragraphs: string[] = []
  323. let startNewParagraph = true
  324. for (const line of content.split(/\r?\n/)) {
  325. const text = line.trim()
  326. if (!text) {
  327. startNewParagraph = true
  328. continue
  329. }
  330. const previous = paragraphs[paragraphs.length - 1]
  331. const isWrappedLine = !!previous && previous.length >= 60 && !/[.!?:;]$/.test(previous)
  332. if (!startNewParagraph && isWrappedLine) {
  333. paragraphs[paragraphs.length - 1] = `${previous} ${text}`
  334. } else {
  335. paragraphs.push(text)
  336. }
  337. startNewParagraph = false
  338. }
  339. return paragraphs
  340. }
  341. const aboutCards = computed(() =>
  342. [
  343. { title: 'Visão', icon: 'mdi-eye-outline', text: settings.value.about_vision },
  344. { title: 'Missão', icon: 'mdi-bullseye-arrow', text: settings.value.about_mission },
  345. { title: 'Valores', icon: 'mdi-heart-outline', text: settings.value.about_values },
  346. ]
  347. .filter((card) => !!card.text?.trim())
  348. .map((card) => ({ ...card, paragraphs: toParagraphs(card.text) }))
  349. )
  350. const hasAbout = computed(() => aboutCards.value.length > 0 || !!settings.value.about_history?.trim())
  351. const historyParagraphs = computed(() => toParagraphs(settings.value.about_history))
  352. const scrollTo = (id: string) => {
  353. document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' })
  354. }
  355. const form = reactive({
  356. nome: '',
  357. sobrenome: '',
  358. cpf: '',
  359. cracha: '',
  360. email: '',
  361. telefone: '',
  362. cargoId: null as number | null,
  363. setorId: null as number | null,
  364. })
  365. const formatCPF = (value: string): string => {
  366. return value
  367. .replace(/\D/g, '')
  368. .replace(/(\d{3})(\d)/, '$1.$2')
  369. .replace(/(\d{3})(\d)/, '$1.$2')
  370. .replace(/(\d{3})(\d{1,2})$/, '$1-$2')
  371. .slice(0, 14)
  372. }
  373. const validateCPF = (cpf: string): boolean => {
  374. const d = cpf.replace(/\D/g, '')
  375. if (d.length !== 11 || /^(\d)\1{10}$/.test(d)) return false
  376. const calc = (n: number): number => {
  377. let sum = 0
  378. for (let i = 0; i < n; i++) sum += parseInt(d.charAt(i)) * (n + 1 - i)
  379. const rem = sum % 11
  380. return rem < 2 ? 0 : 11 - rem
  381. }
  382. return calc(9) === parseInt(d.charAt(9)) && calc(10) === parseInt(d.charAt(10))
  383. }
  384. const validateEmail = (email: string): boolean =>
  385. /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)
  386. const formatPhone = (value: string): string =>
  387. value
  388. .replace(/\D/g, '')
  389. .replace(/^(\d{2})(\d)/, '($1) $2')
  390. .replace(/(\d{5})(\d{1,4})$/, '$1-$2')
  391. .slice(0, 15)
  392. const errors = reactive({
  393. nome: '',
  394. sobrenome: '',
  395. cpf: '',
  396. cracha: '',
  397. email: '',
  398. telefone: '',
  399. cargoId: '',
  400. setorId: '',
  401. })
  402. const clearErrors = () => {
  403. Object.keys(errors).forEach((key) => { errors[key as keyof typeof errors] = '' })
  404. }
  405. const validateRequired = (): boolean => {
  406. errors.nome = form.nome.trim() ? '' : 'Campo obrigatório'
  407. errors.sobrenome = form.sobrenome.trim() ? '' : 'Campo obrigatório'
  408. errors.cracha = form.cracha.trim() ? '' : 'Campo obrigatório'
  409. errors.cargoId = form.cargoId ? '' : 'Campo obrigatório'
  410. errors.setorId = form.setorId ? '' : 'Campo obrigatório'
  411. errors.cpf = form.cpf.trim() ? errors.cpf : 'Campo obrigatório'
  412. errors.email = form.email.trim() ? errors.email : 'Campo obrigatório'
  413. errors.telefone = form.telefone.trim() ? errors.telefone : 'Campo obrigatório'
  414. return !Object.values(errors).some(Boolean)
  415. }
  416. const handleCPF = (e: Event) => {
  417. form.cpf = formatCPF((e.target as HTMLInputElement).value)
  418. if (errors.cpf) errors.cpf = ''
  419. }
  420. const handlePhone = (e: Event) => {
  421. form.telefone = formatPhone((e.target as HTMLInputElement).value)
  422. if (errors.telefone) errors.telefone = ''
  423. }
  424. const onCPFBlur = () => {
  425. errors.cpf = form.cpf && !validateCPF(form.cpf) ? 'CPF inválido' : ''
  426. }
  427. const onEmailBlur = () => {
  428. errors.email = form.email && !validateEmail(form.email) ? 'E-mail inválido' : ''
  429. }
  430. const onPhoneBlur = () => {
  431. errors.telefone = form.telefone && form.telefone.replace(/\D/g, '').length < 10 ? 'Telefone inválido' : ''
  432. }
  433. watch(() => form.email, () => { if (errors.email) errors.email = '' })
  434. watch(() => form.nome, () => { if (errors.nome) errors.nome = '' })
  435. watch(() => form.sobrenome, () => { if (errors.sobrenome) errors.sobrenome = '' })
  436. watch(() => form.cracha, () => { if (errors.cracha) errors.cracha = '' })
  437. watch(() => form.cargoId, () => { if (errors.cargoId) errors.cargoId = '' })
  438. watch(() => form.setorId, () => { if (errors.setorId) errors.setorId = '' })
  439. const { registerLandingUser, positions, sectors } = useRegisterApi()
  440. const isLoading = ref(false)
  441. const showSuccess = ref(false)
  442. const showError = ref(false)
  443. const errorMessage = ref('')
  444. const resetForm = () => {
  445. Object.assign(form, {
  446. nome: '',
  447. sobrenome: '',
  448. cpf: '',
  449. cracha: '',
  450. email: '',
  451. telefone: '',
  452. cargoId: null,
  453. setorId: null,
  454. })
  455. clearErrors()
  456. }
  457. const handleSubmit = async () => {
  458. errors.cpf = form.cpf && !validateCPF(form.cpf) ? 'CPF inválido' : ''
  459. errors.email = form.email && !validateEmail(form.email) ? 'E-mail inválido' : ''
  460. errors.telefone = form.telefone && form.telefone.replace(/\D/g, '').length < 10 ? 'Telefone inválido' : ''
  461. if (!validateRequired()) return
  462. isLoading.value = true
  463. showError.value = false
  464. try {
  465. await registerLandingUser({
  466. name: form.nome,
  467. last_name: form.sobrenome,
  468. cpf: form.cpf,
  469. registration: form.cracha,
  470. email: form.email,
  471. phone: form.telefone,
  472. position_id: form.cargoId,
  473. sector_id: form.setorId,
  474. })
  475. showSuccess.value = true
  476. setTimeout(() => { showSuccess.value = false }, 9000)
  477. resetForm()
  478. } catch (err: unknown) {
  479. const error = err as { data?: { errors?: Record<string, string[]>; message?: string } }
  480. const firstError = error?.data?.errors
  481. ? Object.values(error.data.errors)[0]?.[0]
  482. : error?.data?.message
  483. errorMessage.value = firstError || 'Erro ao enviar solicitação. Tente novamente.'
  484. showError.value = true
  485. setTimeout(() => { showError.value = false }, 5000)
  486. } finally {
  487. isLoading.value = false
  488. }
  489. }
  490. onMounted(() => {
  491. const observer = new IntersectionObserver(
  492. (entries) => {
  493. entries.forEach((entry) => {
  494. if (entry.isIntersecting) {
  495. entry.target.classList.add('is-visible')
  496. observer.unobserve(entry.target)
  497. }
  498. })
  499. },
  500. { threshold: 0.1, rootMargin: '0px 0px -40px 0px' }
  501. )
  502. document.querySelectorAll('.reveal').forEach((el) => observer.observe(el))
  503. })
  504. </script>
  505. <style scoped>
  506. @media (max-width: 1023px) {
  507. #quem-somos {
  508. background-position: 8% 65%;
  509. }
  510. }
  511. .btn-primary {
  512. background: linear-gradient(90deg, #4d1658 0%, #8b30a5 100%);
  513. color: #ffffff;
  514. font-family: "Nunito", sans-serif;
  515. font-weight: 800;
  516. font-size: 0.875rem;
  517. letter-spacing: 1px;
  518. padding: 0.75rem 1.75rem;
  519. border-radius: 0.5rem;
  520. transition: opacity 0.2s;
  521. cursor: pointer;
  522. white-space: nowrap;
  523. }
  524. .btn-primary:hover {
  525. opacity: 0.88;
  526. }
  527. .btn-outline {
  528. background-color: rgba(102, 29, 117, 0.18);
  529. color: #ffffff;
  530. font-family: "Nunito", sans-serif;
  531. font-weight: 700;
  532. font-size: 0.875rem;
  533. letter-spacing: 1px;
  534. padding: 0.75rem 1.75rem;
  535. border-radius: 0.5rem;
  536. border: 2px solid #a855c8;
  537. transition: background-color 0.2s, border-color 0.2s;
  538. cursor: pointer;
  539. white-space: nowrap;
  540. }
  541. .btn-outline:hover {
  542. background-color: rgba(102, 29, 117, 0.32);
  543. border-color: #ffffff;
  544. }
  545. .benefit-card {
  546. background-color: #ffffff;
  547. border-radius: 1rem;
  548. padding: 1.75rem;
  549. box-shadow: 0 2px 12px rgba(102, 29, 117, 0.07);
  550. transition: box-shadow 0.2s, transform 0.2s;
  551. }
  552. .benefit-card:hover {
  553. box-shadow: 0 6px 24px rgba(102, 29, 117, 0.13);
  554. transform: translateY(-2px);
  555. }
  556. .history-card {
  557. padding: 2rem 1.75rem;
  558. }
  559. @media (min-width: 1024px) {
  560. .history-card {
  561. padding: 2.5rem 3rem;
  562. }
  563. }
  564. .about-text {
  565. line-height: 1.7;
  566. }
  567. .history-text {
  568. font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  569. line-height: 1.85;
  570. }
  571. .benefit-icon-wrap {
  572. display: inline-flex;
  573. align-items: center;
  574. justify-content: center;
  575. width: 48px;
  576. height: 48px;
  577. background-color: #f0e8f1;
  578. border-radius: 0.75rem;
  579. }
  580. .tab-active {
  581. background-color: #661d75;
  582. color: #ffffff;
  583. font-family: "Nunito", sans-serif;
  584. font-weight: 600;
  585. font-size: 0.75rem;
  586. letter-spacing: 1.25px;
  587. padding: 0.625rem 1.5rem;
  588. border-radius: 0.5rem 0.5rem 0 0;
  589. cursor: default;
  590. }
  591. .field-group {
  592. display: flex;
  593. flex-direction: column;
  594. gap: 0.375rem;
  595. }
  596. .field-label {
  597. font-family: "Nunito", sans-serif;
  598. font-size: 0.8125rem;
  599. font-weight: 600;
  600. color: #505050;
  601. }
  602. .field-input-wrap {
  603. display: flex;
  604. align-items: center;
  605. gap: 0.5rem;
  606. border: 1.5px solid #C0C0C0;
  607. border-radius: 0.5rem;
  608. padding: 0.5rem 0.75rem;
  609. background-color: #fefefe;
  610. transition: border-color 0.2s;
  611. }
  612. .field-input-wrap:focus-within {
  613. border-color: #661d75;
  614. }
  615. .field-input-wrap.field-error {
  616. border-color: #dc2626;
  617. }
  618. .field-icon {
  619. font-size: 1.125rem;
  620. color: #b6b6b6;
  621. flex-shrink: 0;
  622. }
  623. .field-input {
  624. flex: 1;
  625. border: none;
  626. outline: none;
  627. background: transparent;
  628. font-family: "Nunito", sans-serif;
  629. font-size: 0.875rem;
  630. color: #161616;
  631. }
  632. .field-input::placeholder {
  633. color: #b6b6b6;
  634. }
  635. .btn-submit {
  636. background-color: #661d75;
  637. color: #ffffff;
  638. font-family: "Nunito", sans-serif;
  639. font-weight: 600;
  640. font-size: 0.875rem;
  641. letter-spacing: 1.25px;
  642. padding: 0.875rem 3rem;
  643. border-radius: 0.5rem;
  644. transition: background-color 0.2s;
  645. cursor: pointer;
  646. }
  647. .btn-submit:hover {
  648. background-color: #5c1a69;
  649. }
  650. .toast-enter-active,
  651. .toast-leave-active {
  652. transition: opacity 0.4s ease, transform 0.4s ease;
  653. }
  654. .toast-enter-from,
  655. .toast-leave-to {
  656. opacity: 0;
  657. transform: translateY(12px);
  658. }
  659. .justifyBetween {
  660. display: flex;
  661. flex-direction: column;
  662. justify-content: space-between;
  663. }
  664. </style>