/* Component styles */

/* Question and Age cards */
.card-thumb { 
  display: none;
}

.card-item.has-img { 
  padding: var(--space-8);
  width: 240px;
  max-width: 240px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
}

.card-item.has-img .card-thumb { 
  display: none;
}

.card-item.has-img img.age-img { 
  width: 100%; 
  height: auto; 
  max-height: 280px;
  object-fit: contain; 
  border-radius: var(--radius);
  display: block; 
  margin-bottom: var(--space-4);
}

.card-item.has-img .title { 
  margin: 0 0 var(--space-2);
  font-weight: 700;
  text-align: center;
  width: 100%;
  display: block;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-primary);
  white-space: pre-line;
}

.card-item.has-img .subtitle {
  color: var(--text-secondary);
  text-align: center;
}

/* Video Container */
.card {
  overflow: hidden; /* Ensure content doesn't overflow */
}

.card .video-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.card .video-container video {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
  background-color: #000;
}

.card-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

.text-content {
  flex: 1;
}

@media (min-width: 768px) {
  .card-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .card h2, .card h3 {
    width: 100%;
  }
  
  .text-content {
    flex: 1;
    min-width: 250px;
  }
  
  .card .video-container {
    flex: 1;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 300px;
    max-width: 50%;
  }
  
  .card .video-container video {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
  }
}

/* Partners Grid */
.partners-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.partner-item h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem; /* Reduced spacing between h3 and p */
  font-size: 1.25rem;
  color: var(--text-primary);
}

.partner-item p {
  margin-top: 0; /* Remove top margin to reduce spacing */
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .partners-grid {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .partner-item {
    flex: 1;
    max-width: 48%;
  }
}

/* Footer */
.site-footer {
  padding: var(--space-16) var(--space-4) var(--space-8);
  background: var(--background);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 75rem;
  margin: 0 auto;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.site-footer .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-footer .footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-footer .footer-nav {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer .footer-nav a:hover {
  color: var(--gradient-cyan);
}

.site-footer .footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.site-footer .footer-bottom p {
  margin: 0.25rem 0;
}

/* Contact Buttons and Forms */
.contact-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-rainbow);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.contact-form {
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

.hidden {
  display: none;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.submit-btn {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-rainbow);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Form status messages */
.form-status {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Loading state for buttons */
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}