index.vue 23 KB

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