/* define global variables, e.g. colors */
:root {
  --color-primary: #00535b;
  --color-secondary: #00838f;
  --color-accent: #ff3400;
  --color-heading: #1b0760;
  --color-body: #918ca4;
  --color-body-darker: #5c5577;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

/* Page Wrapper */
.page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

body {
  position: relative;
  background: linear-gradient(to right, #e0f7fa, #e0f2f1);
  min-height: 100vh;
  padding: 2rem;
  padding-top: 80px;
  overflow-x: hidden;
}

.index__body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* zoom in */
  height: 100%;
  background: url("../images/bg.svg") no-repeat center;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: floatLoop 10s linear infinite;
  transform-origin: center;
}

.how-it-works__body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* zoom in */
  height: 100%;
  background: url("../images/bg.svg") no-repeat center;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: floatLoop 10s linear infinite;
  transform-origin: center;
}

/* Logo */
.logo-img {
  width: 100px;
  object-fit: contain;
  margin-right: 10px;
}

/* Navigation */
.navbar {
  width: 100%;
  background-color: var(--color-primary);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links a {
  color: #e0f7fa;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #555;
  font-size: 0.9rem;
}

.site-footer .green-text {
  color: #4caf50;
  font-weight: bold;
}

.footer-link {
  display: inline-block;
  color: #00838f;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.75rem;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-note {
  text-align: center;
  margin-top: 1rem;
}

/* Container */
.signup-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 100%;
  margin-top: 3rem;
  padding: 2.5rem 2rem;
}

.signup-container h2 {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #004d40;
}

.signup-container p {
  margin-bottom: 1.5rem;
  color: #555;
}

.signup-container h2 {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #004d40;
}

.signup-container h2::before {
  content: "";
  background-image: url("../images/logo-only.svg"); /* adjust if needed */
  background-size: contain;
  background-repeat: no-repeat;
  width: 32px;
  height: 32px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 0.75rem;
  display: inline-block;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9f9f9;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #00acc1;
  background-color: #fff;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.55rem; /* space between checkbox and text */
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space between radio and label text */
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.address-group input[type="text"],
.address-group select {
  margin-bottom: 0.75rem;
  display: block;
}

/* Submit Button */
.submit-btn {
  background-color: #00acc1;
  color: white;
  border: none;
  padding: 0.9rem;
  width: 100%;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--color-secondary);
}

/* How It Works Section */

.how-it-works .container {
  background: white;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 4rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.how-it-works h1 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.how-it-works .intro,
.how-it-works .outro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  color: var(--color-body);
}

.step {
  margin-bottom: 2rem;
  padding: 1.25rem 1rem;
  border-left: 4px solid var(--color-accent);
  background: #f9fafa;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.step h2 {
  color: var(--color-secondary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body-darker);
}

/* Animation */
@keyframes floatLoop {
  0% {
    transform: translate(0, 0) scale(1.1);
  }
  25% {
    transform: translate(10px, -10px) scale(1.1);
  }
  50% {
    transform: translate(20px, 0px) scale(1.1);
  }
  75% {
    transform: translate(10px, 10px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1.1);
  }
}

/* Lists */
.list {
  list-style: none;
  color: var(--color-heading);
  padding-left: 0;
}

.list--inline .list__item {
  display: inline-block;
  margin-right: 1rem;
}

.list--tick {
  list-style-image: url(../images/tick.svg);
  padding-left: 1.5rem;
}

.list--tick .list__item {
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

@media screen and (min-width: 1024px) {
  .list--tick .list__item {
    padding-left: 0;
  }
}

/* Cards */
.card {
  border-radius: 15px;
  box-shadow: 0 0 20px grey;
  overflow: hidden;
}

.card .card__header {
  padding: 1rem 1.5rem;
}

.card .card__body {
  padding: 1rem 1.5rem;
}

.card--primary .card__header {
  background: var(--color-primary);
  color: #fff;
}

.card--secondary .card__header {
  background: var(--color-secondary);
  color: #fff;
}

/* Plans Container */
.plans--container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* keeps all three on the same line */
  margin: 0.5rem;
  justify-content: center;
}

/* Plans */
.plan__name {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 500;
  margin-top: 0;
}

.plan__price {
  font-size: 2.4rem;
}

.plan__billing-cycle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.8;
  margin-right: 1rem;
}

.card--secondary .badge--secondary {
  background: #02cdf1;
  padding: 0.5rem 1.5rem;
}

.plan__description {
  font-size: 1rem;
  font-weight: 300;
  display: block;
}

.plan .list__item {
  margin-bottom: 1rem;
}

.plan--popular .card__header {
  position: relative;
}

.plan--popular .card__header::before {
  content: url(../images/popular.svg);
  width: 40px;
  display: inline-block;
  position: absolute;
  top: -6px;
  right: 5%;
}

@media screen and (min-width: 1024px) {
  .plan__name {
    font-size: 1.4rem;
  }

  .plan__price {
    font-size: 2.4rem;
  }

  .plan__billing-cycle {
    font-size: 1rem;
  }
}

/* Badges */
.badge {
  border-radius: 20px;
  font-size: 2rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  white-space: nowrap;
}

.badge--primary {
  background: var(--color-primary);
  color: #fff;
}

.badge--secondary {
  background: var(--color-secondary);
  color: #fff;
}

.badge--small {
  font-size: 1rem;
}

/* Buttons */
.btn {
  border-radius: 40px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn--outline {
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-secondary);
  color: #fff;
}

.btn--block {
  width: 100%;
}
