/* Course Pricing Shortcode Styles */

.jh-course-pricing-container {
  max-width: 800px;
  margin: 2rem auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}

.jh-error {
  background: #fee;
  border-left: 4px solid #c33;
  padding: 1rem;
  border-radius: 8px;
  color: #c33;
  font-weight: 500;
}

/* Course Header */
.jh-course-header {
  text-align: center;
  margin-bottom: 2rem;
}

.jh-course-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
}

/* Type Selector Buttons */
.jh-type-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.jh-type-btn {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.jh-type-btn-online {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  border-color: #3b82f6;
}

.jh-type-btn-online:hover {
  background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.jh-type-btn-online.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #1e40af;
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

.jh-type-btn-physical {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
  border-color: #10b981;
}

.jh-type-btn-physical:hover {
  background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.jh-type-btn-physical.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #047857;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.5);
}

.jh-course-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.jh-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.jh-badge-online {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.jh-badge-physical {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

/* Registration Fee */
.jh-registration-fee {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.jh-reg-fee-online {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.jh-reg-fee-physical {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.jh-fee-icon {
  font-size: 2.5rem;
}

.jh-fee-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jh-fee-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jh-fee-amount {
  color: white;
  font-size: 1.875rem;
  font-weight: 700;
}

/* Course Details Container */
.jh-course-details {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Variants Container */
.jh-variants-container {
  display: grid;
  gap: 2rem;
}

.jh-variant-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.jh-variant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.jh-variant-online {
  border-color: #3b82f6;
  background: linear-gradient(to bottom, #eff6ff 0%, white 100%);
}

.jh-variant-physical {
  border-color: #10b981;
  background: linear-gradient(to bottom, #ecfdf5 0%, white 100%);
}

.jh-variant-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.jh-variant-icon {
  font-size: 2rem;
}

.jh-variant-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.jh-variant-total {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jh-total-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.jh-total-amount {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
}

/* Installment Section */
.jh-installment-section {
  margin-bottom: 1.5rem;
}

.jh-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jh-installment-list {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jh-installment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #6366f1;
}

.jh-inst-name {
  color: #475569;
  font-weight: 500;
}

.jh-inst-amount {
  color: #1e293b;
  font-weight: 700;
  font-size: 1.125rem;
}

/* Full Payment Section */
.jh-full-payment-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #e5e7eb;
}

.jh-full-payment-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.jh-badge-icon {
  font-size: 2rem;
}

.jh-full-payment-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jh-full-payment-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.jh-full-payment-amount {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .jh-course-pricing-container {
    margin: 0.75rem;
    max-width: 100%;
  }

  /* Header Adjustments */
  .jh-course-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }

  /* Type Selector Buttons - Mobile Optimized */
  .jh-type-selector {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .jh-type-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
    min-width: 120px;
  }

  /* Registration Fee - Mobile */
  .jh-registration-fee {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }

  .jh-fee-icon {
    font-size: 2rem;
  }

  .jh-fee-label {
    font-size: 0.75rem;
  }

  .jh-fee-amount {
    font-size: 1.375rem;
  }

  /* Variant Card - Mobile */
  .jh-variant-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .jh-variant-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .jh-variant-icon {
    font-size: 1.5rem;
  }

  .jh-variant-title {
    font-size: 1.125rem;
  }

  .jh-variant-total {
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
  }

  .jh-total-label {
    font-size: 0.75rem;
  }

  .jh-total-amount {
    font-size: 1.375rem;
  }

  /* Installment Section - Mobile */
  .jh-section-title {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
  }

  .jh-installment-list {
    padding: 0.75rem;
    gap: 0.625rem;
    border-radius: 10px;
  }

  .jh-installment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.625rem;
    border-radius: 6px;
  }

  .jh-inst-name {
    font-size: 0.875rem;
  }

  .jh-inst-amount {
    font-size: 1rem;
  }

  /* Full Payment - Mobile */
  .jh-full-payment-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .jh-full-payment-badge {
    padding: 1rem;
    border-radius: 10px;
  }

  .jh-badge-icon {
    font-size: 1.5rem;
  }

  .jh-full-payment-label {
    font-size: 0.75rem;
  }

  .jh-full-payment-amount {
    font-size: 1.125rem;
  }
}

/* Extra Small Devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
  .jh-course-pricing-container {
    margin: 0.5rem;
  }

  .jh-course-title {
    font-size: 1.25rem;
  }

  .jh-type-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.6875rem;
    min-width: 100px;
  }

  .jh-registration-fee {
    padding: 0.875rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .jh-fee-icon {
    font-size: 1.75rem;
  }

  .jh-fee-amount {
    font-size: 1.25rem;
  }

  .jh-variant-card {
    padding: 1rem;
  }

  .jh-variant-title {
    font-size: 1rem;
  }

  .jh-total-amount {
    font-size: 1.25rem;
  }

  .jh-inst-amount {
    font-size: 0.9375rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .jh-type-btn {
    min-height: 44px; /* iOS recommended touch target */
  }

  .jh-type-btn:active {
    transform: scale(0.98);
  }
}
