/* CPR/AED Signup Page Styles */

/* Smooth animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Header */
.cpr-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.4rem 2rem;
  background: transparent;
  transition:
    background var(--ease),
    box-shadow var(--ease);
}

.cpr-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.cpr-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.cpr-logo {
  height: 3.4rem;
  width: auto;
  animation: fadeIn 0.6s ease-out;
}

.cpr-logo-link {
  display: inline-block;
}

.cpr-header__btn {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  background: var(--crimson);
  color: var(--white);
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background var(--ease);
  text-decoration: none;
  display: inline-block;
  animation: slideInRight 0.6s ease-out 0.1s both;
}

.cpr-header__btn:hover,
.cpr-header__btn:focus-visible {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.cpr-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("../assets/imgs/backgrounds/herobg.webp") center/cover no-repeat;
  padding: 10rem 2rem 6rem;
  animation: fadeIn 0.8s ease-out;
}

.cpr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7, 30, 53, 0.93) 0%,
    rgba(12, 53, 90, 0.86) 55%,
    rgba(173, 43, 43, 0.38) 100%
  );
  pointer-events: none;
}

.cpr-hero__content {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
}

.cpr-hero__pill {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid rgba(212, 152, 41, 0.4);
  border-radius: 50px;
  animation: slideInUp 0.6s ease-out;
}

.cpr-hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 9vw, 7rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.6rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.cpr-hero__subtitle {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1.8rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cpr-hero__subtext {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.65;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cpr-hero .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cpr-hero .badges {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Container */
.cpr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Why CPR Matters Section */
.cpr-why {
  padding: 7rem 0;
  background: var(--white);
  animation: fadeIn 0.8s ease-out;
}

.cpr-why__content {
  animation: fadeInUp 0.8s ease-out;
}

.cpr-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cpr-benefit {
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-lt);
  text-align: center;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background var(--ease);
  animation: scaleIn 0.6s ease-out;
}

.cpr-benefit:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  background: var(--white);
}

.cpr-benefit__icon {
  width: 4rem;
  height: 4rem;
  color: var(--gold);
  margin: 0 auto 1.2rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

.cpr-benefit h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--navy);
}

.cpr-benefit p {
  font-size: 1.4rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* Class Details Section */
.cpr-details {
  padding: 7rem 0;
  background: linear-gradient(
    160deg,
    var(--navy-dark) 0%,
    var(--navy-mid) 100%
  );
}

.cpr-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cpr-detail-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2.8rem 2.4rem;
  position: relative;
  overflow: hidden;
  transition:
    background var(--ease),
    transform var(--ease),
    border-color var(--ease);
  animation: scaleIn 0.6s ease-out;
}

.cpr-detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}

.cpr-detail-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(212, 152, 41, 0.3);
}

.cpr-detail-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: rgba(212, 152, 41, 0.15);
  border: 1px solid rgba(212, 152, 41, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.cpr-detail-icon .ic {
  font-size: 2rem;
  color: var(--gold);
}

.cpr-detail-card h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cpr-detail-card p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

/* What You'll Learn Section */
.cpr-learn {
  padding: 7rem 0;
  background: var(--white);
}

.cpr-learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.4rem;
}

.cpr-learn-card {
  padding: 2.4rem;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  position: relative;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background var(--ease);
  animation: scaleIn 0.6s ease-out;
}

.cpr-learn-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
}

.cpr-learn-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--crimson);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.cpr-learn-card h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cpr-learn-card p {
  font-size: 1.4rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* Two Column Layout */
.cpr-two-col {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.cpr-img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  animation: slideInLeft 0.8s ease-out;
}

.cpr-img-frame img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--ease);
}

.cpr-img-frame:hover img {
  transform: scale(1.02);
}

/* About Section */
.cpr-about {
  padding: 7rem 0;
  background: var(--off-white);
}

.cpr-about > .cpr-two-col > div:last-child {
  animation: slideInRight 0.8s ease-out;
}

.cpr-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0;
}

.cpr-cred-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--gray-lt);
  border-radius: 50px;
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 500;
  transition:
    background var(--ease),
    border-color var(--ease),
    transform var(--ease);
}

.cpr-cred-tag:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.cpr-cred-tag .ic {
  color: var(--gold);
  font-size: 1.4rem;
}

.cpr-cred-tag:hover .ic {
  color: var(--white);
}

/* Signup Section */
.cpr-signup {
  padding: 7rem 0;
  background: linear-gradient(
    160deg,
    var(--navy-dark) 0%,
    var(--navy-mid) 100%
  );
}

.cpr-signup .section-header {
  animation: fadeInUp 0.8s ease-out;
}

.cpr-signup-sub {
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.cpr-signup-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: scaleIn 0.8s ease-out 0.2s both;
  max-width: 900px;
  margin: 0 auto;
}

.cpr-signup-card__head {
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-mid) 100%
  );
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.cpr-signup-card__head h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cpr-signup-card__head p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.4rem;
}

.cpr-signup-card__form {
  padding: 2.4rem;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reminders Section */
.cpr-reminders {
  position: relative;
  padding: 7rem 2rem;
  background: url("../assets/imgs/backgrounds/herobg.webp") center/cover
    no-repeat;
  text-align: center;
  color: var(--white);
  animation: fadeIn 0.8s ease-out;
}

.cpr-reminders__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7, 30, 53, 0.93) 0%,
    rgba(12, 53, 90, 0.86) 55%,
    rgba(173, 43, 43, 0.38) 100%
  );
  pointer-events: none;
}

.cpr-reminders__content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.cpr-reminders__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 4rem);
  color: var(--white);
  margin: 0 0 1.6rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cpr-reminders__text {
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 3rem;
  line-height: 1.75;
}

.cpr-reminders-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3rem;
  text-align: left;
}

.cpr-reminder-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 152, 41, 0.2);
  border-radius: 0.8rem;
  font-size: 1.5rem;
  animation: slideInUp 0.6s ease-out;
}

.cpr-reminder-item .ic {
  color: var(--gold);
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* Footer */
.cpr-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  border-top: 3px solid var(--gold);
}

.cpr-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.cpr-footer-logo {
  height: 3rem;
  width: auto;
  animation: fadeIn 0.6s ease-out;
}

.cpr-footer-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.cpr-footer-desc {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.cpr-footer-bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cpr-footer-copy {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
}

.cpr-footer-copy a {
  color: var(--gold);
  transition: color var(--ease);
}

.cpr-footer-copy a:hover {
  color: var(--white);
}

/* Responsive Design */
@media (min-width: 768px) {
  .cpr-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .cpr-learn-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cpr-reminders-list {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .cpr-footer__inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (min-width: 1024px) {
  .cpr-details-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cpr-footer__inner {
    gap: 4rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .cpr-benefit {
    background: var(--navy-dark);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .cpr-benefit:hover {
    background: var(--navy-mid);
  }

  .cpr-cred-tag {
    background: var(--navy-mid);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .cpr-cred-tag,
  .cpr-benefit,
  .cpr-detail-card,
  .cpr-learn-card {
    transition: background var(--ease), color var(--ease);
  }
}
