/* ==========================================================================
   AfyaX website: typography, transitions and motion on top of MDB.
   The page layouts are unchanged; this sheet only adds the brand's type,
   colour accents and animation. Brand: navy #22356F, red #E51E25, lime #C0CD30.
   ========================================================================== */
:root {
    --primary-color: #22356F;
    --secondary-color: #E51E25;
    --secondary-color-2: #C0CD30;
    --ax-navy-deep: #17244d;
    --ax-ink: #0e1733;
    --ax-ease: cubic-bezier(.2, .8, .2, 1);
    --ax-body: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
    --ax-display: 'Sora', 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--ax-body) !important; font-weight: 500; color: #1e293b; -webkit-font-smoothing: antialiased; animation: ax-page-in .5s ease both; }
@keyframes ax-page-in { from { opacity: 0; } to { opacity: 1; } }
h1, h2, h3, h4, h5, .header-title, .modal-title, .ax-display { font-family: var(--ax-display); letter-spacing: -.02em; }
.header-title { font-size: clamp(36px, 6vw, 62px) !important; line-height: 1.08; }
::selection { background: rgba(192, 205, 48, .45); color: var(--ax-ink); }
a { transition: color .2s ease; }

/* Navigation: glass bar that tightens on scroll, animated underline */
.navbar.sticky-top { transition: box-shadow .3s ease, background-color .3s ease, padding .3s ease; backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); background-color: rgba(255, 255, 255, .86) !important; }
.navbar.sticky-top .navbar-brand img { transition: height .3s var(--ax-ease); }
.navbar.is-scrolled { box-shadow: 0 10px 30px -18px rgba(14, 23, 51, .45); padding-top: 2px; padding-bottom: 2px; }
.navbar.is-scrolled .navbar-brand img { height: 56px; }
.navbar .nav-link { position: relative; color: #334155 !important; }
.navbar .navbar-nav.mx-auto .nav-link::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--secondary-color-2), var(--secondary-color)); transition: left .3s var(--ax-ease), right .3s var(--ax-ease); }
.navbar .navbar-nav.mx-auto .nav-link:hover::after, .navbar .navbar-nav.mx-auto .nav-link.active::after { left: 12px; right: 12px; }
.navbar .nav-link:hover { color: var(--primary-color) !important; }

/* Buttons: lift and glow */
.btn { transition: transform .2s var(--ax-ease), box-shadow .25s ease, background-color .2s ease, color .2s ease !important; letter-spacing: .01em; font-weight: 600; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ct1:hover { box-shadow: 0 10px 24px -10px rgba(34, 53, 111, .7) !important; background-color: var(--ax-navy-deep) !important; }
.btn-ct2:hover { box-shadow: 0 10px 24px -10px rgba(229, 30, 37, .7) !important; }
.btn-ct3, .btn-ct3:hover, .btn-ct3:focus { color: var(--ax-ink) !important; }
.btn-ct3:hover { box-shadow: 0 10px 24px -10px rgba(192, 205, 48, .9) !important; }
.btn-outline-ct1:hover { background-color: var(--primary-color) !important; color: #fff !important; }
.btn-outline-ct2:hover { background-color: var(--secondary-color) !important; color: #fff !important; }
.btn-outline-ct3 { color: #8f9a14 !important; border-color: var(--secondary-color-2) !important; }
.btn-outline-ct3:hover { background-color: var(--secondary-color-2) !important; color: var(--ax-ink) !important; }

/* Hero (home): slow zoom on the photo, text rises in */
.bg-image { overflow: hidden; position: relative; border-radius: 0 0 28px 28px; }
.bg-image::before { content: ''; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; animation: ax-kenburns 22s ease-in-out infinite alternate; z-index: 0; }
.bg-image > .mask { position: relative; z-index: 1; background: linear-gradient(135deg, rgba(14, 23, 51, .82), rgba(34, 53, 111, .55) 55%, rgba(229, 30, 37, .35)) !important; }
@keyframes ax-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.bg-image .mask h1, .bg-image .mask h4, .bg-image .mask .btn { animation: ax-rise .9s var(--ax-ease) both; }
.bg-image .mask h4 { animation-delay: .15s; font-weight: 500; opacity: .95; }
.bg-image .mask .btn { animation-delay: .3s; }
.bg-image .mask .text-color-1 { color: #fff !important; background: linear-gradient(90deg, #fff 30%, var(--secondary-color-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes ax-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Cards: lift, image zoom */
.card { border-radius: 18px !important; transition: transform .35s var(--ax-ease), box-shadow .35s ease; border: 1px solid rgba(34, 53, 111, .06); }
.card:hover, .ax-card-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(14, 23, 51, .35) !important; }
.features-card { overflow: hidden; }
.features-card img { transition: transform .7s var(--ax-ease); border-radius: 12px; }
.features-card:hover img { transform: scale(1.06); }
.ax-stepper.card:hover { transform: none; }

/* Section headings get a brand underline */
h3.text-center.text-color-1, h2.text-center.text-color-1 { position: relative; padding-bottom: 14px; }
h3.text-center.text-color-1::after, h2.text-center.text-color-1::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 4px; background: linear-gradient(90deg, var(--secondary-color-2), var(--secondary-color)); transform: scaleX(0); transition: transform .8s var(--ax-ease) .2s; }
h3.text-center.text-color-1.is-in::after, h2.text-center.text-color-1.is-in::after { transform: scaleX(1); }

/* Scroll reveal ([data-ax-reveal], and cards/headings picked up by afyax-site.js) */
.ax-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ax-ease), transform .7s var(--ax-ease); }
.ax-reveal.is-in { opacity: 1; transform: none; }

/* Modals and accordions */
.modal.fade .modal-dialog { transition: transform .35s var(--ax-ease), opacity .3s ease; transform: translateY(20px) scale(.97); }
.modal.show .modal-dialog { transform: none; }
.modal-content { border-radius: 20px; border: 0; overflow: hidden; }
.modal-header { background: linear-gradient(135deg, rgba(34, 53, 111, .06), rgba(192, 205, 48, .1)); }
.accordion-button { transition: background-color .25s ease, color .25s ease; }
.accordion-button:not(.collapsed) { color: var(--primary-color) !important; background: rgba(192, 205, 48, .12) !important; box-shadow: inset 3px 0 0 var(--secondary-color-2); }

/* Forms */
.form-control, .form-select { border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-control:focus, .form-select:focus { border-color: var(--primary-color) !important; box-shadow: 0 0 0 4px rgba(34, 53, 111, .12) !important; }
.form-label { font-weight: 600; font-size: 14px; color: #334155; }

/* Footer */
footer { border-top: 1px solid rgba(34, 53, 111, .08); position: relative; }
footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color-2), var(--secondary-color)); }
footer .btn-floating { transition: transform .3s var(--ax-ease), color .2s ease; }
footer .btn-floating:hover { transform: translateY(-4px) rotate(-6deg); color: var(--primary-color) !important; }

/* Back to top */
.ax-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--primary-color); color: #fff; box-shadow: 0 12px 24px -12px rgba(14, 23, 51, .8); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ax-ease); z-index: 1030; }
.ax-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ax-top:hover { background: var(--secondary-color); }

/* Page heroes (seller registration and other inner pages) */
.ax-page-hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 120px; background: radial-gradient(700px 320px at 90% -10%, rgba(192, 205, 48, .35), transparent 60%), radial-gradient(600px 320px at -10% 120%, rgba(229, 30, 37, .4), transparent 60%), linear-gradient(135deg, var(--ax-ink), var(--primary-color)); }
.ax-page-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.ax-page-hero--compact { padding: 64px 0 90px; }
.ax-page-hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; max-width: 820px; }
.ax-page-hero .lead { color: rgba(236, 240, 255, .85); max-width: 680px; font-weight: 400; }
.ax-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-color-2); margin-bottom: 18px; }
.ax-gradient-text { background: linear-gradient(90deg, var(--secondary-color-2), #fff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ax-hero-checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 18px 28px; color: rgba(236, 240, 255, .9); font-size: 14.5px; }
.ax-hero-checks i { color: var(--secondary-color-2); margin-right: 6px; }
.ax-success-mark { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--ax-ink); background: var(--secondary-color-2); box-shadow: 0 0 0 12px rgba(192, 205, 48, .2); animation: ax-pop .7s var(--ax-ease) both; }
@keyframes ax-pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: none; opacity: 1; } }

/* Seller stepper */
.ax-stepper-wrap { margin-top: -80px; margin-bottom: 64px; position: relative; z-index: 2; }
.ax-stepper { border-radius: 24px !important; overflow: hidden; border: 0 !important; }
.ax-stepper__nav { display: flex; list-style: none; margin: 0; padding: 22px 22px 14px; gap: 6px; overflow-x: auto; background: #f8fafc; }
.ax-stepper__nav li { flex: 1; min-width: 92px; }
.ax-stepper__nav button { width: 100%; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #94a3b8; font-weight: 600; font-size: 13px; cursor: pointer; }
.ax-stepper__bubble { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 2px solid #e2e8f0; font-size: 16px; transition: all .35s var(--ax-ease); }
.ax-stepper__nav li.is-active button { color: var(--primary-color); }
.ax-stepper__nav li.is-active .ax-stepper__bubble { background: var(--primary-color); border-color: var(--primary-color); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(34, 53, 111, .9); }
.ax-stepper__nav li.is-done button { color: #475569; }
.ax-stepper__nav li.is-done .ax-stepper__bubble { background: var(--secondary-color-2); border-color: var(--secondary-color-2); color: var(--ax-ink); }
.ax-stepper__nav li.is-done .ax-stepper__bubble i::before { content: '\f00c'; }
.ax-stepper__bar { height: 4px; background: #eef1f6; }
.ax-stepper__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary-color-2), var(--secondary-color)); transition: width .5s var(--ax-ease); }
.ax-step { display: none; }
.ax-step.is-active { display: block; animation: ax-step-in .45s var(--ax-ease); }
@keyframes ax-step-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.ax-step__title { font-size: 24px; font-weight: 700; color: var(--ax-ink); margin-bottom: 4px; }
.ax-step__lead { color: #64748b; margin-bottom: 24px; }
.ax-stepper__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; border-top: 1px solid #eef1f6; background: #fcfdff; }
.ax-stepper__count { color: #94a3b8; font-size: 13px; font-weight: 600; }
.ax-upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 2px dashed #cbd5e1; background: #f8fafc; cursor: pointer; transition: all .25s ease; width: 100%; margin: 0; }
.ax-upload:hover, .ax-upload.is-over { border-color: var(--primary-color); background: rgba(34, 53, 111, .04); }
.ax-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ax-upload__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(34, 53, 111, .08); color: var(--primary-color); transition: transform .3s var(--ax-ease); }
.ax-upload:hover .ax-upload__icon { transform: translateY(-3px); }
.ax-upload__text strong { display: block; font-size: 14px; color: #0f172a; }
.ax-upload__text small { color: #64748b; word-break: break-all; }
.ax-upload.has-file { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.ax-upload.has-file .ax-upload__icon { background: #16a34a; color: #fff; }
.ax-upload.has-file .ax-upload__icon i::before { content: '\f00c'; }
.ax-upload.is-invalid { border-color: var(--secondary-color); background: #fef2f2; }
.ax-review { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ax-review__group { border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; }
.ax-review__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ax-review__head a { font-size: 13px; color: var(--secondary-color); font-weight: 600; }
.ax-review dl { display: grid; grid-template-columns: 42% 1fr; gap: 4px 10px; margin: 0; font-size: 13.5px; }
.ax-review dt { color: #64748b; font-weight: 500; }
.ax-review dd { margin: 0; font-weight: 600; color: #0f172a; word-break: break-word; }
.ax-next-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.ax-next-steps::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: #e2e8f0; }
.ax-next-steps li { position: relative; padding: 0 0 18px 44px; }
.ax-next-steps li::before { content: ''; position: absolute; left: 4px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; }
.ax-next-steps li.is-done::before { background: var(--secondary-color-2); border-color: var(--secondary-color-2); }
.ax-next-steps li.is-current::before { background: var(--primary-color); border-color: var(--primary-color); box-shadow: 0 0 0 5px rgba(34, 53, 111, .15); animation: ax-beat 2s ease-in-out infinite; }
@keyframes ax-beat { 50% { box-shadow: 0 0 0 9px rgba(34, 53, 111, .05); } }
.ax-next-steps strong { display: block; }
.ax-next-steps span { color: #64748b; font-size: 14px; }

@media (max-width: 767.98px) {
    .ax-stepper__label { display: none; }
    .ax-stepper__foot { padding: 14px 16px; }
    .ax-stepper__count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .ax-reveal { opacity: 1; transform: none; }
}

/* Inner-page heroes run edge to edge inside the layout's .container-fluid */
.container-fluid > .ax-page-hero { margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5); margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); }
