/* Components CSS for RiskSim */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  border-top: 1px solid var(--neutral-200);
  font-size: var(--font-size-sm);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-banner-text {
  flex: 1;
  color: var(--neutral-700);
}

.cookie-banner-text a {
  color: var(--primary-600);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cookie-preferences {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  z-index: 1001;
}

.cookie-preferences.hidden {
  display: none;
}

.cookie-preferences h3 {
  margin-bottom: var(--space-4);
  color: var(--primary-700);
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.cookie-overlay.hidden {
  display: none;
}

.cookie-type {
  margin-bottom: var(--space-4);
}

.cookie-type:last-child {
  margin-bottom: 0;
}

.cookie-type label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  color: var(--neutral-800);
  font-weight: 600;
}

.cookie-type p {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  margin-left: var(--space-6);
  margin-bottom: var(--space-2);
}

.cookie-preferences-actions {
  margin-top: var(--space-6);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  outline: none;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--primary-600);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--primary-600);
  border: 1px solid var(--primary-600);
}

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

.btn-full {
  width: 100%;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-card {
  background-color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

.feature-icon img {
  width: 60px;
  height: 60px;
}

.feature-card h3 {
  margin-bottom: var(--space-2);
  color: var(--primary-700);
}

.feature-card p {
  color: var(--neutral-600);
  font-size: var(--font-size-base);
}

/* Process Steps */
.process-steps {
  margin-top: var(--space-8);
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-8);
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50px;
  height: calc(100% - 24px);
  width: 2px;
  background-color: var(--primary-200);
}

.step-number {
  background-color: var(--primary-600);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-xl);
  margin-right: var(--space-4);
  flex-shrink: 0;
  z-index: 1;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  color: var(--primary-700);
  margin-bottom: var(--space-2);
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.product-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  overflow: hidden;
  height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.product-content {
  padding: var(--space-6);
}

.product-content h3 {
  color: var(--primary-700);
  margin-bottom: var(--space-3);
}

.product-features {
  list-style-type: none;
  margin: var(--space-4) 0;
}

.product-features li {
  padding-left: var(--space-6);
  position: relative;
  margin-bottom: var(--space-2);
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-600);
  font-weight: 700;
}

.product-price {
  margin: var(--space-4) 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.product-price strong {
  font-size: var(--font-size-2xl);
  color: var(--primary-700);
}

.product-price span {
  color: var(--neutral-600);
}

/* Testimonial Cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.testimonial-card {
  background-color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  margin-bottom: var(--space-4);
}

.testimonial-content p {
  font-style: italic;
  color: var(--neutral-700);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  margin-right: var(--space-3);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: var(--space-1);
  color: var(--primary-700);
  font-size: var(--font-size-base);
}

.author-info p {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-50);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.contact-icon img {
  width: 24px;
  height: 24px;
}

.contact-text h3 {
  color: var(--primary-700);
  margin-bottom: var(--space-1);
  font-size: var(--font-size-lg);
}

.contact-text a, .contact-text p {
  color: var(--neutral-700);
  margin-bottom: 0;
}

/* Contact Form */
.contact-form-container {
  background-color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--neutral-700);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Disclaimer Section */
.disclaimer {
  background-color: var(--neutral-100);
}

.disclaimer-content {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--warning-500);
}

.disclaimer-content h2 {
  color: var(--warning-700);
  font-size: var(--font-size-xl);
}

.disclaimer-content p {
  color: var(--neutral-700);
  margin-bottom: 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-8);
}

.about-text {
  color: var(--neutral-700);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Image Styles */
.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.w-full {
  width: 100%;
}

.h-64 {
  height: 16rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.object-cover {
  object-fit: cover;
}