/*
 * Elepa Consulting brand overrides.
 * The Glorify theme drives its accent colour off these CSS custom properties
 * (see landing_assets/assets/css/style.css :root). Overriding them here,
 * loaded after style.css/responsive.css, re-themes every component (buttons,
 * links, icon backgrounds, borders) without touching the vendor CSS.
 */
/* :root {
  --glorify-base: #C8102E;
  --glorify-base-rgb: 200, 16, 46;
  --glorify-black: #241417;
  --glorify-black-rgb: 36, 20, 23;
  --glorify-primary: #FBEFEE;
  --glorify-primary-rgb: 200, 16, 46;
} */

/*
 * Banner circle/photo (.banner-one__slider-outer) and the floating
 * "Leaders Coached" card sit at position: absolute relative to
 * .banner-one__left (see style.css), so on desktop they don't add to its
 * height — the section's overall height is driven purely by how tall the
 * left-column text happens to be. The original Glorify demo copy was
 * long/multi-line enough to accidentally clear the ~600px circle + card
 * underneath it; Elepa's shorter banner copy isn't, so the circle
 * overflows past the section's bottom padding and gets squeezed against
 * (or overlapped by) the next section. Reserving min-height here — sized
 * to the circle's own fixed offset/height/card-overhang from style.css,
 * not to any particular copy length — fixes this regardless of how long
 * the banner text is. Below 991px the theme already switches
 * .banner-one__slider-outer back to position: relative (see
 * responsive.css), so it's back in normal flow and doesn't need this.
 */
@media only screen and (min-width: 1320px) {
  .banner-one__left {
    min-height: 620px;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1319px) {
  .banner-one__left {
    min-height: 550px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .banner-one__left {
    min-height: 500px;
  }
}

/*
 * Typed.js phrase in the banner heading (.typed-effect) sits inline
 * right after the static title text. While it's typing, each phrase
 * starts back at zero characters and initially fits on the same line as
 * the title, then jumps down to its own line once it's typed enough
 * characters to no longer fit — a visible reflow/"flicker" every time a
 * new phrase starts. This is fixed with a hard <br> before the span in
 * home/index.html.twig (deterministic, content-length-independent)
 * rather than here, since forcing .typed-effect to display:block would
 * also push its blinking cursor — which typed.js inserts as a plain
 * inline sibling right after the span — onto its own line, breaking the
 * "text|" cursor look.
 *
 * The typed text also needs a z-index above .banner-one__slider-outer:
 * both .banner-one__title-box and .banner-one__slider-outer are
 * position:relative/absolute with z-index:auto inside
 * .banner-one__left's stacking context (see style.css), so whichever
 * comes later in the DOM — the circle — paints on top by default,
 * letting long typed phrases disappear behind it instead of sitting
 * above it.
 */
.banner-one__title-box {
  position: relative;
  z-index: 5;
}

/*
 * .banner-one__title has no max-width in the vendor theme at all — the
 * original demo relied entirely on short, hand-picked words ("We Build
 * Digital") plus manual <br> tags to keep every line well clear of the
 * circle photo, rather than any actual layout constraint. Elepa's real
 * copy is longer, so at 70px/bold it can run wide enough to reach past
 * the circle's left edge before wrapping on its own — worse on the
 * narrower end of the desktop range, since Bootstrap's own container
 * caps at 1140px until the viewport hits 1400px, well before our
 * 1320px circle-size breakpoint kicks in. Constraining the width (and
 * trimming the font-size slightly at the top breakpoint) keeps the
 * heading wrapping safely inside the left column across that whole
 * range. The z-index fix above remains as a backstop for any edge case
 * this doesn't fully cover, so text is never actually invisible even if
 * it brushes the photo.
 */
.banner-one__title-box,
.banner-one__text {
  max-width: 680px;
}

@media only screen and (min-width: 1320px) {
  .banner-one__title {
    font-size: 58px;
  }
}

/*
 * The typed.js phrase (.typed-effect) inherits the same font-size as the
 * static title text. That's fine for short phrases ("Leaders show up"),
 * but a longer one ("Cultures include everyone") can be wide enough to
 * wrap onto a second line within the max-width above. Sizing it down
 * slightly relative to the title (rather than a fixed px value) keeps it
 * proportional at every breakpoint and gives longer phrases typed into
 * this field later some extra room before they wrap, without it looking
 * mismatched against the static heading.
 */
.banner-one__title .typed-effect {
  font-size: 0.85em;
}

/*
 * Product detail page price badge — not part of the original Glorify
 * theme (which only ships a full e-commerce price/discount layout tied to
 * banner/pricing-table markup), so this is a small custom addition rather
 * than misusing an unrelated theme class.
 */
.product-details__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.product-details__header .service-details__title-1 {
  margin-bottom: 0;
}

.product-details__price {
  display: inline-block;
  background-color: var(--glorify-base);
  color: var(--glorify-white);
  font-family: var(--glorify-font-two);
  font-size: 22px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--glorify-bdr-radius);
  white-space: nowrap;
}

/*
 * Contact form input boxes — the theme's .contact-one__input-box styling
 * assumes a plain <input>/<textarea> as the only child. Symfony's form
 * widgets add a wrapping <div class="form-group"> by default even with a
 * custom block, so this keeps the theme look regardless of exactly how
 * the widget renders.
 */
/*
 * Contact form input boxes — the theme's .contact-one__input-box /
 * .contact-page__input-box / .team-details-contact__input-box styling
 * only targets input[type="text"|"email"|"number"]. Symfony's TelType
 * renders <input type="tel">, which none of those selectors match, so
 * phone fields fell back to unstyled browser defaults. Patching the type
 * list here (once, shared across all three forms) rather than switching
 * the field to plain text and losing the mobile numeric-keypad benefit.
 */
.contact-one__input-box input[type="tel"],
.contact-page__input-box input[type="tel"],
.team-details-contact__input-box input[type="tel"] {
  height: 60px;
  width: 100%;
  background-color: transparent;
  border: 1px solid rgba(var(--glorify-black-rgb), .10);
  padding-left: 30px;
  padding-right: 30px;
  outline: none;
  font-size: 16px;
  font-weight: 400;
  color: var(--glorify-gray);
  display: block;
  border-radius: var(--glorify-bdr-radius);
}

.contact-one__input-box .form-group,
.contact-page__input-box .form-group {
  margin-bottom: 0;
}

.contact-one__input-box .form-text,
.form-error-list ul {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--glorify-base);
}

/*
 * Review-form star rating — the theme's .review-form-one__rate markup is
 * decorative-only in the static template (five plain <i> icons, no real
 * input), since the demo form never actually submits anywhere. We need a
 * real rating value, so ReviewType renders an expanded ChoiceType (radio
 * buttons) inside this container, and this is the classic CSS-only star
 * widget: radios in reverse DOM order + row-reverse layout so the
 * `~` sibling combinator can fill stars leftward from whichever one is
 * checked/hovered.
 */
.review-form-one__rate > div {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.review-form-one__rate input[type="radio"] {
  display: none;
}

.review-form-one__rate label {
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: rgba(var(--glorify-black-rgb), .15);
  transition: color 150ms ease;
}

.review-form-one__rate label:before {
  content: "\f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.review-form-one__rate input[type="radio"]:checked ~ label,
.review-form-one__rate label:hover,
.review-form-one__rate label:hover ~ label {
  color: var(--glorify-base);
}

/*
 * Combined login / sign-up / forgot-password switcher
 * (templates/security/auth.html.twig). Reuses the theme's existing
 * .login-one__form styling for each panel and just adds the tab bar +
 * the animated cross-fade/slide between panels. All three panels are
 * always in the DOM (so no page reload / flash of unstyled content when
 * switching); only one is visible at a time via .is-active.
 */
.auth-switcher__tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.auth-switcher__tab {
  border: 2px solid rgba(var(--glorify-black-rgb), .10);
  background-color: transparent;
  color: var(--glorify-black);
  font-family: var(--glorify-font-two);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 34px;
  border-radius: var(--glorify-bdr-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-switcher__tab.is-active {
  background-color: var(--glorify-base);
  border-color: var(--glorify-base);
  color: var(--glorify-white);
}

.auth-switcher__stage {
  position: relative;
}

.auth-switcher__panel {
  display: none;
  opacity: 0;
  transform: translateY(16px);
}

.auth-switcher__panel.is-active {
  display: block;
  animation: authPanelIn 0.45s ease forwards;
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-switcher__hint {
  color: rgba(var(--glorify-black-rgb), .65);
  max-width: 420px;
  margin: 0 auto 30px;
}

.auth-switcher__flash {
  max-width: 600px;
  margin: 0 auto 30px;
  padding: 16px 24px;
  border-radius: var(--glorify-bdr-radius);
  font-family: var(--glorify-font-two);
  font-size: 15px;
  text-align: center;
}

.auth-switcher__flash--success {
  background-color: rgba(40, 167, 69, .1);
  border: 1px solid rgba(40, 167, 69, .3);
  color: #1e7e34;
}

.auth-switcher__flash--error {
  background-color: rgba(var(--glorify-base-rgb), .08);
  border: 1px solid rgba(var(--glorify-base-rgb), .3);
  color: var(--glorify-base);
}

/*
 * Client portal (templates/portal/*). Reuses .login-one section padding
 * and .wishlist-table for order tables, so this only needs to style the
 * pieces that are genuinely new: the welcome header, the summary cards,
 * and order-status badges.
 */
.portal-welcome {
  text-align: center;
  margin-bottom: 40px;
}

.portal-welcome h2 {
  font-size: 34px;
  color: var(--glorify-black);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.portal-welcome p {
  color: rgba(var(--glorify-black-rgb), .65);
}

.portal-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 60px;
}

.portal-card {
  background-color: var(--glorify-white);
  border: 1px solid rgba(var(--glorify-black-rgb), .08);
  border-radius: var(--glorify-bdr-radius);
  padding: 30px;
  min-width: 220px;
  text-align: center;
  box-shadow: 0px 10px 60px 0px rgb(0 0 0 / 5%);
}

.portal-card__count {
  font-size: 36px;
  font-weight: 700;
  color: var(--glorify-base);
  font-family: var(--glorify-font-two);
  margin-bottom: 6px;
}

.portal-card__label {
  font-size: 15px;
  text-transform: uppercase;
  color: rgba(var(--glorify-black-rgb), .6);
  margin-bottom: 14px;
}

.portal-card__link {
  font-weight: 600;
  color: var(--glorify-black);
}

.portal-card__link:hover {
  color: var(--glorify-base);
}

.portal-section {
  margin-bottom: 40px;
}

.portal-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.portal-section__header h3 {
  font-size: 24px;
  text-transform: uppercase;
  color: var(--glorify-black);
}

.portal-order-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(var(--glorify-black-rgb), .08);
}

.portal-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.portal-status--paid {
  background-color: rgba(40, 167, 69, .12);
  color: #1e7e34;
}

.portal-status--pending {
  background-color: rgba(255, 193, 7, .15);
  color: #a8790a;
}

.portal-status--failed,
.portal-status--cancelled {
  background-color: rgba(var(--glorify-base-rgb), .1);
  color: var(--glorify-base);
}
