/* Scoped styles for Meta API Preparation Page */
.meta-prep-wrapper {
  font-family: 'Nunito', sans-serif; /* Matching site font */
  background-color: #f8f9fa; /* Keeping neutral background */
  padding: 40px 20px;
  min-height: 100vh;
}

.meta-prep-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .meta-prep-container {
    grid-template-columns: 1fr;
  }
}

/* Checklist Section */
.checklist-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.checklist-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-header h1 i {
  color: var(--primary-color); /* Updated to primary blue */
}

.checklist-header p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Progress Bar */
.progress-container {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-color);
}

.progress-track {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  width: 0%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* Section Groups */
.checklist-group {
  margin-bottom: 40px;
}

.checklist-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #edf2f7;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
}

.checklist-group h3 i {
  color: var(--primary-color); /* Updated to primary blue */
}

.required-badge {
  font-size: 12px;
  color: #e53e3e;
  font-weight: 400;
  margin-left: auto;
}

/* Checklist Items */
.checklist-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.checklist-item:hover {
  border-color: #cbd5e0;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  cursor: pointer;
  accent-color: #10B981; /* Green for success state */
}

.item-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px 0;
}

.item-content h4 span.required {
  color: #e53e3e;
  margin-left: 4px;
}

.item-content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.item-link {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.item-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Info Box */
.info-box {
  background: var(--senary-color);
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  border-radius: 4px;
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.info-box i {
  color: var(--primary-color);
  font-size: 20px;
}

.info-box p {
  margin: 0;
  color: var(--primary-color);
  font-size: 14px;
}

/* Video Section */
.video-section {
  position: sticky;
  top: 40px;
}

/* Meta Partner Badge */
.meta-partner-badge {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid #f3f4f6;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.meta-partner-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 63, 207, 0.03) 0%, rgba(8, 63, 207, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.meta-partner-badge > * {
  position: relative;
  z-index: 1;
}

.meta-partner-badge:hover::before {
  opacity: 1;
}

.meta-partner-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(8, 63, 207, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.meta-partner-badge:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 20px rgba(8, 63, 207, 0.15);
}

.meta-logo {
  height: 24px;
  width: auto;
}

.meta-partner-badge span {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

.video-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-header i {
  color: var(--primary-color); /* Updated to primary blue */
}

.video-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #edf2f7;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #a0aec0;
  margin-bottom: 16px;
  border: 2px dashed #cbd5e0;
}

.video-placeholder i {
  font-size: 32px;
  margin-bottom: 8px;
}

.video-help-text {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

/* Docs CTA Card */
.docs-cta-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.docs-cta-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.docs-cta-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px 0;
}

.docs-cta-content > p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.docs-cta-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.docs-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.docs-link:hover {
  background: #EFE2FF;
  border-color: var(--tertiary-color);
  color: var(--primary-color);
  transform: translateX(3px);
}

.docs-link i {
  font-size: 14px;
  color: var(--primary-color);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.docs-link:hover i {
  color: var(--tertiary-color);
}

.docs-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.docs-cta-btn:hover {
  background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 63, 207, 0.3);
  color: white;
}

.docs-cta-btn i {
  transition: transform 0.2s ease;
}

.docs-cta-btn:hover i {
  transform: translateX(4px);
}

/* Action Card */
.action-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.schedule-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.schedule-btn:disabled, .schedule-btn.disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  opacity: 0.7;
}

.schedule-btn:not(:disabled):hover {
  background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-1px);
}

.action-note {
  font-size: 12px;
  color: #e53e3e; /* Red warning style */
  margin-top: 12px;
  background: #fff5f5;
  padding: 8px;
  border-radius: 4px;
}

.action-note.success {
  color: #2f855a; /* Green success text is fine, or use secondary color */
  background: #f0fff4;
}
