* {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  list-style: none !important;
}

:root {
  --light: #39a274;
  --dark: #286a4d;
  --primary_background: #f5f0e6;
  --secondary_background: #fff;
  --border_rad: 2rem;
  --nav_height: 5rem;
  --shadow: 3px 3px 3px var(--light);
}

/* common helper classes */
.theme {
  color: var(--dark);
}

.background {
  background: var(--primary_background);
}

.background_secondary {
  background: var(--secondary_background);
}

.scale_on_hover {
  transition: all 0.4s ease-in-out;
}

.scale_on_hover:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.translate_on_hover {
  transition: all 0.4s ease-in-out;
}

.translate_on_hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.height_100 {
  height: 100%;
}

/* hero images */
@media (max-width: 1024px) {
  #home_hero {
    padding-top: calc(var(--nav_height) + 2rem) !important;
  }
}

@media (max-width: 991px) {
  #home_hero {
      padding-bottom: 2rem !important;
  }
}

#hero_img {
    height: 70vh;
    max-width: 80%;
    transform: rotate(5deg);
}

@media (max-width: 1024px) {
  #hero_img {
      height: 40vh;
  }
}

@media (max-width: 1180px) and (orientation: landscape) {
  #hero_img {
      display: none;
  }
}

.hero_tiles {
  border-radius: var(--border_rad);
  padding: 0.75rem 0 !important;
  text-align: center;
}

/* sections used to hold body content */
.body_section {
  min-height: calc(80vh - var(--nav_height));
}

@media (max-width: 991px) AND (orientation: landscape) {
  .body_section {
    min-height: calc(150vh - var(--nav_height));
  }
}

/* feature section */
.feature_card {
  border-radius: var(--border_rad);
}

/* product snapshot */
#product_snapshot {
  position: relative;
}

.mySwiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
}

.product_snapshot_content {
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);
  z-index: 10;

  background: color-mix(in srgb, var(--primary_background) 50%, transparent);
  border-radius: var(--border_rad);
}

@media (max-width: 991px) AND (orientation: portrait) {
  .swiper-slide img {
    width: auto;
    height: 100%;
  }  
}

/* Contact section */
.contact_card {
  border-radius: var(--border_rad);
}

.contact_form {
  border-radius: var(--border_rad);
}

/* forms */
.inputs {
  height: 2.5rem;
}

.message_textarea {
  height: 10rem;
  resize: none;
}

.inputs:focus, .message_textarea:focus {
  box-shadow: var(--shadow);
}

/* products page */
.account_incentive_wrapper {
  border-radius: var(--border_rad);
}

/* faq page */
.accordion_item {
  border-radius: var(--border_rad);
}

/* dashboard elements */
#dash_hero {
  padding-top: calc(var(--nav_height)) !important;
}

@media(max-width: 991px) {
  #dash_hero {
    padding-top: calc(var(--nav_height) + 2rem) !important;
  }
}

#first_letter_wrapper {
  background: var(--light);
  border-radius: 100%;
  height: 5rem;
  width: 5rem;
}

.outer_shell {
  border-radius: var(--border_rad);
} 

#main_account_wrapper {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--light),
        var(--dark)
    );

    border-radius: var(--border_rad);

    color: white;

    box-shadow:
        0 12px 30px rgba(40, 106, 77, 0.18);
}


/* Keeps the content above the glow */

#main_account_wrapper > * {
    position: relative;
    z-index: 2;
}


/* Account reference */

.account_reference {
    display: inline-flex;
    align-items: center;

    padding: .45rem .75rem;

    border-radius: 50rem;

    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);

    color: white;

    font-size: .85rem;
    letter-spacing: .03em;
}


/* Account status */

.account_status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .45rem .75rem;

    border-radius: 50rem;

    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);

    color: white;

    font-size: .85rem;
}


.status_dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 0 8px rgba(255, 255, 255, .8);
}


/* Save-Safe icon */

.account_icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 1rem;

    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);

    color: white;

    font-size: 1.5rem;
}


/* Labels */

.account_label {
    color: rgba(255, 255, 255, .72);

    font-size: .85rem;
}


/* Save-Safe title */

.account_title {
    color: white;

    font-size: 1.75rem;
    font-weight: 700;
}


/* Balance */

.account_amount {
    color: white;

    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
}


/* Growth / Incentive */

.account_stat {
    display: flex;
    align-items: center;
    gap: .75rem;

    min-height: 62px;

    padding: .75rem 1rem;

    border-radius: .9rem;

    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
}


.account_stat_icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: .7rem;

    background: rgba(255, 255, 255, .12);

    color: white;

    font-size: 1rem;
}


.account_stat_label {
    display: block;

    color: rgba(255, 255, 255, .65);

    font-size: .75rem;
}


.account_stat_value {
    display: block;

    color: white;

    font-size: 1rem;
    font-weight: 700;
}


/* GLOW SWEEP */

#main_account_wrapper::after {
    content: "";

    position: absolute;

    top: -20%;
    left: -60%;

    width: 35%;
    height: 140%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .18),
        transparent
    );

    transform: skewX(-20deg);

    animation: account_glow 6s ease-in-out infinite;

    pointer-events: none;

    z-index: 1;
}


@keyframes account_glow {

    0% {
        left: -60%;
    }

    25% {
        left: 130%;
    }

    100% {
        left: 130%;
    }

}

/* goal accounts */
.goalSwiper {
    width: 100%;
    overflow: hidden;
}

.goalSwiper .swiper-wrapper {
    align-items: stretch;
}

.goalSwiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    margin-right: 0px !important;
}


/* =========================
   GOAL CARD
   ========================= */

.goalSwiper .accounts_wrapper {
    height: 100%;
    width: 100%;
    border-radius: var(--border_rad);
}


/* =========================
   GOAL BUTTON
   ========================= */

.goalSwiper .btn-light {
    border: none;
    border-radius: .6rem;
    font-weight: 600;
}

.goalSwiper .btn-light i {
    margin-left: .25rem;
    transition: transform .2s ease;
}

.goalSwiper .btn-light:hover i {
    transform: translateX(3px);
}


/* =========================
   PROGRESS
   ========================= */

.goalSwiper .progress {
    height: 9px;
    border-radius: 50rem;
    background: rgba(40, 106, 77, .12);
    overflow: hidden;
}

.goalSwiper .progress_bar {
    background: var(--dark);
    border-radius: 50rem;
}


/* =========================
   SMALL SCREENS
   ========================= */

@media (max-width: 575.98px) {

    .goalSwiper .accounts_wrapper {
        padding: 1rem !important;
    }

    .goalSwiper .accounts_wrapper .fs-4 {
        font-size: 1.35rem !important;
    }

    .goalSwiper .accounts_wrapper .fs-5 {
        font-size: .95rem !important;
    }

}

.quick_action {
  min-height: 95px;
  padding: 1rem .5rem;
  background: var(--background);
  border: 1px solid rgba(40, 106, 77, .15);
  border-radius: 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: var(--dark);

  transition: .25s ease;
}

.quick_action_icon {
  width: 42px;
  height: 42px;
  margin-bottom: .5rem;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(57, 162, 116, .12);
  color: var(--dark);

  font-size: 1.25rem;

  transition: .25s ease;
}

.quick_action span {
  font-size: .9rem;
  font-weight: 600;
}

.quick_action:hover {
  transform: translateY(-4px);
  border-color: var(--light);
  box-shadow: 0 8px 20px rgba(40, 106, 77, .10);
  color: var(--dark);
}

.quick_action:hover .quick_action_icon {
  background: var(--dark);
  color: white;
}

/* goal calculator */
#goal_result_wrapper {
  background: var(--light);
  border-radius: var(--border_rad);
}

.finish_line {
  background: var(--dark);
  border-radius: var(--border_rad);
}

#account_health_wrapper {
  background: var(--light);
  border-radius: var(--border_rad);
}

/* ------------------ */
/* financial healths section */
#account_health_wrapper {
    background: var(--light);
    border-radius: 1rem;
}


/* CHART */

.financial_chart {
    background: rgba(255, 255, 255, .08);
    border-radius: 1rem;
    padding: 1rem;
}

.chart_row {
    display: flex;
    align-items: center;
    margin-bottom: .75rem;
}

.chart_row:last-child {
    margin-bottom: 0;
}

.chart_month {
    width: 45px;
    color: white;
    font-size: .8rem;
}

.chart_bars {
    flex: 1;
    height: 22px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.bar {
    width: 10px;
    min-height: 4px;
    border-radius: 3px 3px 0 0;
}

.saved_bar {
    background: white;
}

.spent_bar {
    background: rgba(255, 255, 255, .35);
}


/* CURRENT MONTH */

.current_month {
    padding: .5rem;
    margin-left: -.5rem;
    margin-right: -.5rem;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .08);
}


/* LEGEND */

.financial_legend {
    display: flex;
    gap: 1.5rem;
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
}

.financial_legend span {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.legend_dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.saved_dot {
    background: white;
}

.spent_dot {
    background: rgba(255, 255, 255, .35);
}


/* SUMMARY */

.health_summary {
    background: var(--background);
    border-radius: 1rem;
    padding: 1rem;
}

.health_summary p,
.health_summary h6 {
    color: var(--dark);
}

.health_stat {
    background: white;
    border-radius: .75rem;
    padding: 1rem;
    height: 100%;
}

.health_stat p {
    font-size: .85rem;
    margin-bottom: .25rem;
}

.health_stat h6 {
    font-size: 1.4rem;
    margin-bottom: .25rem;
}

.health_stat small {
    color: var(--dark);
    font-size: .75rem;
}


/* BADGE */

.health_badge {
    background: var(--light);
    color: white;
    padding: .4rem .7rem;
    border-radius: 50rem;
    font-size: .75rem;
}


/* MESSAGE */

.health_message {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .10);
    color: white;
    font-size: .85rem;
}

.health_message i {
    font-size: 1.1rem;
}

/* ----------------- */

/* security section */
.alert_wrapper {
  background: red;
  border-radius: var(--border_rad);
}