:root {
  --primary-color: #1a54cc; /* PPT blue color */
  --hover-color: #143c96; /* Darker blue for hover */
  --secondary-color: #143c96; /* Same as hover-color for consistency */
  --border-color: #d1d5db; /* Light gray for borders */
  --background-color: #f3f4f6; /* Light background */
  --text-color: #111827; /* Dark text color */
  --accent-color: #ff6b00; /* PPT orange accent color */
  --light-gray: #f3f4f6;
  --success-color: #10b981;
  --danger-color: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
}

body {
  font-family: "Gothic A1", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin-top: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  max-width: 340px;
  margin-bottom: 1rem;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h2 {
  color: var(--secondary-color);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-gray);
}

.product-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-card-header {
  background-color: var(--primary-color);
  color: white;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  padding: 0;
  height: 80px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-header h2 {
  color: white;
  margin: 0;
  padding: 0;
  border-bottom: none;
  font-size: 2rem;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.product-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.one-time-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.product-description {
  color: #4b5563;
  margin-bottom: 1rem;
}

.info-icon {
  color: var(--primary-color);
  margin-left: 0.5rem;
  cursor: help;
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  width: 250px;
  background-color: #1f2937;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.875rem;
  font-weight: normal;
}

.info-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.form-check-input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}

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

.form-check-input:hover {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.form-check-input.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
}

.form-check-label {
  flex: 1;
}

.form-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 0.5rem;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 2rem auto 0;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.required-license {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

/* Toast notification styles */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  min-width: 300px;
  max-width: 350px;
  background-color: #fff9db; /* Light yellow background */
  border-left: 5px solid #ffab00; /* Amber accent */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
  transform: translateX(400px); /* Start off-screen */
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  display: none;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
  display: block;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  padding: 16px;
}

.toast-content i.fa-exclamation-triangle {
  color: #ffab00;
  font-size: 1.5rem;
  margin-right: 12px;
  margin-top: 4px;
}

.toast-message {
  flex: 1;
}

.toast-message strong {
  display: block;
  color: #92400e;
  margin-bottom: 4px;
}

.toast-message p {
  color: #92400e;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: #92400e;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  opacity: 0.7;
}

.toast-close:hover {
  opacity: 1;
}

.footer {
  margin-top: 6rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
  clear: both;
  position: relative;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .product-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .form-check-label {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 576px) {
  body {
    padding: 0.5rem;
  }

  .container {
    padding: 0.75rem;
    margin-top: 1rem;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .product-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-price {
    margin-top: 0.25rem;
    display: block;
  }

  .form-check {
    margin-bottom: 0.5rem;
  }

  .toast-notification {
    min-width: auto;
    max-width: 90%;
    left: 5%;
    right: 5%;
  }
}

/* Styles for Stripe Elements */
#payment-element {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

#payment-message {
  color: #e74c3c;
  margin: 1rem 0;
  display: none;
}

/* Checkout button style */
#submit-payment {
  margin-left: auto;
  margin-right: 0;
  margin-top: 1rem;
  float: right;
}

#submit-payment {
  background: #5469d4;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 1rem;
}

#submit-payment:hover {
  background: #4257b2;
}

#submit-payment:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sub-features {
  padding-left: 20px; /* Indent the sub-list */
  list-style-type: circle; /* Use a different bullet style */
  margin-top: 5px;
}

.sub-features li {
  font-size: 0.9em;
  color: #6c757d;
}

/* Button styles */
.btn-outline-clear {
  border: 1px solid #0d6efd;
  border-radius: 0.25rem;
  color: #0d6efd !important;
  background-color: transparent;
  text-decoration: none !important;
  cursor: pointer;
  font-size: 1rem;
  min-width: 150px;
}

.btn-outline-clear:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd !important;
  text-decoration: none !important;
  border: 1px solid #0d6efd;
}

/* Small button style for "Need more? Contact Sales" button */
.btn.btn-sm {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn.btn-sm:hover {
  background-color: var(--hover-color); /* Use the darker blue hover color */
  color: white;
  text-decoration: none;
}

/* Button container for side-by-side buttons */
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
}

/* Unified button styling in container */
/* Reset and normalize all buttons in container */
.btn-container a {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 8px 16px !important;
  width: 150px !important;
  height: 38px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

/* Remove any Bootstrap padding/margin that might be causing misalignment */
.btn-container .btn {
  padding: 8px 16px !important;
  margin: 0 !important;
  vertical-align: initial !important;
}

/* Button hover states */
.btn-container .btn-primary:hover {
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 576px) {
  .btn-container {
    flex-direction: column;
  }

  .btn-container a {
    margin-top: 0.5rem;
    width: 100%;
  }

  .btn-container a:first-child {
    margin-top: 0;
  }
}

/* Responsive video iframe styles */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625 or 56.25%) */
  margin: 1.5rem 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
