:root {
    --brand-red: #ee2c31;
    --brand-red-dark: #c41f24;
    --brand-red-darker: #991519;
    --brand-red-darkest: #620c10;
    --brand-red-light: #fdf0f0;
    --brand-red-lighter: #fef7f7;
    --brand-salmon: #f48589;
}

.btn-pharmacy {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: #fff !important;
}

.btn-pharmacy:hover {
    background-color: var(--brand-red-dark) !important;
    border-color: var(--brand-red-dark) !important;
    color: #fff !important;
}

.btn-pharmacy:disabled,
.btn-pharmacy[disabled] {
    background-color: #c8cdd6 !important;
    border-color: #c8cdd6 !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

.btn-soft-pharmacy {
  border-color: var(--brand-red-light);
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  &:hover {
    @media (hover: hover) {
      border-color: var(--brand-red-light);
    }
  }
  &:hover {
    @media (hover: hover) {
      background-color: var(--brand-red-light);
    }
  }
  &:hover {
    @media (hover: hover) {
      color: var(--brand-red);
    }
  }
  &:active {
    border-color: var(--brand-red-light);
  }
  &:active {
    background-color: var(--brand-red-light);
  }
  &:active {
    color: var(--brand-red);
  }
}
.btn-soft-pharmacy.btn-expand {
  color: var(--brand-red);
  &::before {
    content: var(--tw-content);
    background-color: var(--brand-red-light);
  }
}
.btn-soft-pharmacy.btn-expand i,.btn-soft-pharmacy.btn-expand:before,.btn-soft-pharmacy.btn-expand:hover,.btn-soft-pharmacy.btn-expand:hover:before {
  color: var(--brand-red);
}

.btn-outline-pharmacy {
  border-color: var(--brand-red);
  color: var(--brand-red);
  &:hover {
    @media (hover: hover) {
      border-color: var(--brand-red);
    }
  }
  &:hover {
    @media (hover: hover) {
      background-color: var(--brand-red);
    }
  }
  &:active {
    border-color: var(--brand-red);
  }
  &:active {
    background-color: var(--brand-red);
  }
  &:disabled {
    border-color: var(--brand-red);
  }
  &:disabled {
    background-color: var(--brand-red);
  }
}

a {
  color: var(--brand-red);
}

a[href^=mailto] {
  color: inherit;
  text-decoration: inherit;
}

a:hover {
  color: var(--brand-red-dark);
}

.text-pharmacy {
    color: var(--brand-red) !important;
}

.focus\:text-pharmacy {
    &:focus {
      color: var(--brand-red) !important;
    }
}

.hover\:text-pharmacy {
    &:hover {
      @media (hover: hover) {
        color: var(--brand-red) !important;
      }
    }
  }

.text-pharmacy-alt {
    color: var(--brand-salmon) !important;
}

.bg-pharmacy {
    background-color: var(--brand-red) !important;
}

.bg-pharmacy-light {
    background-color: var(--brand-red-light) !important;
}

.bg-pharmacy-lighter {
    background-color: var(--brand-red-lighter) !important;
}

.bg-pharmacy-dark {
    background-color: var(--brand-red-dark) !important;
}

.accordion-wrapper .card-header button {
    color: var(--brand-red);
    &::before {
        color: var(--brand-red);
    }
}

.form-check-input {
    &:checked {
        background-color: var(--brand-red);
        border-color: var(--brand-red);
    }
}

/* Service card cycling backgrounds */
.bg-card-azure {
    background-color: #edf5fa !important;
}

.bg-card-sage {
    background-color: #eff7f2 !important;
}

.bg-card-cream {
    background-color: #fdf8f0 !important;
}

.bg-salmon {
    background-color: var(--brand-salmon) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-red) !important;
}

.icon.text-pharmacy i {
    color: var(--brand-red) !important;
}

.progress-circle path {
    stroke: var(--brand-red) !important;
}

.progress-wrap:after {
    color: var(--brand-red) !important;
}

.counter {
    color: var(--brand-red) !important;
}

a.hover-red:hover {
    color: var(--brand-red) !important;
}

.topbar {
    background: var(--brand-red);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 0;
}

.topbar a {
    color: rgba(255, 255, 255, 0.9);
}

.topbar a:hover {
    color: #fff;
}

.hours-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 10px;
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 158, 106, 0.1) !important;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2.5rem rgba(26, 158, 106, 0.15) !important;
    border-color: rgba(26, 158, 106, 0.3) !important;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--pharmacy-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--pharmacy-green);
}

.cta-transfer {
    background: linear-gradient(135deg, #8b0000, var(--brand-red));
    position: relative;
    overflow: hidden;
}

.cta-transfer::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.why-card {
    transition: box-shadow 0.3s;
}

.why-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(26, 158, 106, 0.12) !important;
}

a.footer-location {
    color: #fff;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

a.footer-location.selected {
    font-weight: bold;
    color: var(--brand-salmon);
}

a.footer-location:hover {
    color: var(--brand-salmon);
    transform: translateX(0.2rem);
}

a.contact-location {
    color: #3d3b3b;
    font-size: 0.75rem;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

a.contact-location.selected {
    font-weight: bold;
    color: var(--brand-red);
}

a.contact-location:hover {
    color: var(--brand-red);
    transform: translateX(0.2rem);
}

a.footer-link,
.footer-fax {
    color: #fff;
    font-size: 0.72rem;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

a.footer-link:hover {
    color: var(--brand-red-light);
    transform: translateX(0.175rem);
}

a.footer-link i.uil::before {
    position: relative;
    top: 0.08rem;
    margin-right: 0.35rem;
}

.page-hero {
    position: relative;
    z-index: 1;
    background-color: var(--brand-red-darkest);
    padding: 150px 0;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/img/photos/bg2.jpg') center/cover no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.value-icon {
    width: 56px; height: 56px;
    background: var(--brand-red-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.value-icon i {
    font-size: 1.4rem;
    color: var(--brand-red);
}

.annex {
    background-color: #edf2fc;
    border-radius: 1rem;
    padding: 2.5rem 1rem;
}

@media (max-width: 991.98px) {
    .max-md\:text-center {
        text-align: center;
    }

    .max-md\:mt-\[50px\] {
        margin-top: 50px !important;
    }

    .max-md\:mt-\[60px\] {
        margin-top: 60px !important;
    }
}

@media (min-width: 992px) {
    .lg\:top-\[8rem\] {
        top: 8rem !important;
    }
}

/* ─── Active nav link ────────────────────────────────────────────────────── */
.navbar-expand-lg .navbar-collapse .nav-item.active .nav-link {
    color: var(--brand-salmon) !important;
    font-weight: 600;
}

/* ─── Toast notification ──────────────────────────────────────────────────── */
@keyframes toast-in {
    from { opacity: 0; transform: translateX(calc(100% + 2.5rem)); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(calc(100% + 2.5rem)); }
}
@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

.form-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 0 0 1px rgba(30,34,40,0.07),
                0 4px 16px rgba(30,34,40,0.10),
                0 12px 40px rgba(30,34,40,0.08);
    overflow: hidden;
    animation: toast-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.form-toast.toast-hiding {
    animation: toast-out 0.3s ease forwards;
}
.form-toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.05rem 1.15rem 1.05rem 1.15rem;
}
.form-toast-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
}
.form-toast-body {
    flex: 1;
    min-width: 0;
}
.form-toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.2rem;
}
.form-toast-text {
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
    opacity: 0.8;
}
.form-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    color: #aab4c4;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.form-toast-close:hover { color: #36496d; }
.form-toast-bar {
    height: 3px;
    border-radius: 0 0 0.75rem 0.75rem;
    animation: toast-progress 6s linear forwards;
}

/* ─── Inline alert messages ───────────────────────────────────────────────── */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
}
.form-alert-icon {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.05rem;
}
.form-alert.form-alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-left: 3px solid #22c55e;
    color: #166534;
}
.form-alert.form-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-left: 3px solid #ef4444;
    color: #991b1b;
}