/* Expo Styles */

:root {
  --primary: #10b981;
  --primary-dark: #064e3b;
  --surface: #0f172a;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

/* PROGRESS TRACKER */
.progress-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 2px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #666;
  transition: all 0.3s ease;
}

.progress-step.active .progress-number {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.progress-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  text-align: center;
}

.progress-step.active .progress-label {
  color: var(--primary);
}

.progress-line {
  width: 60px;
  height: 3px;
  background: #e0e0e0;
  transition: all 0.3s ease;
}

.progress-line.active {
  background: var(--primary);
}

/* TAB NAVIGATION */
.tab-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 0.5rem;
}

.tab-button {
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-weight: 800;
  padding: 0.9rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  transition: all 0.2s ease;
  text-align: left;
}

.tab-button.active,
.tab-button:not(.locked):hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.22);
}

.tab-button.locked,
.tab-button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.65;
}

.tab-button.locked:hover,
.tab-button:disabled:hover {
  background: transparent;
  box-shadow: none;
}

/* SECTIONS */
.expo-section,
.tab-pane {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header i {
  font-size: 2rem;
  color: var(--primary);
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.section-description {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* FORMS */
.registration-form,
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* CHECKBOXES */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: #4b5563;
}

.selection-tile {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  padding: 1rem;
  min-height: 56px;
  transition: all 0.2s ease;
}

.selection-tile:hover,
.selection-tile:has(input:checked) {
  border-color: var(--primary);
  background: #ecfdf5;
  color: #065f46;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* PRODUCTS GRID */
.products-grid h3 {
  grid-column: 1 / -1;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.product-card:hover {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
  transform: translateY(-4px);
}

.product-card:has(input:checked) {
  border-color: var(--primary);
  background: #ecfdf5;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.16);
}

.product-card input[type="radio"] {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.product-image {
  font-size: 3rem;
  color: var(--primary);
  text-align: center;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  border-radius: 0.75rem;
}

.product-info h4 {
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  font-size: 1rem;
}

.product-info p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* DATE PICKER */
.date-picker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-picker-wrapper input[type="date"] {
  min-height: 45px;
}

.date-info {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* BUTTONS */
.button-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-submit,
.btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-submit {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #e5e7eb;
  color: #0f172a;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* VISITOR PASS DETAILS */
.pass-details {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.95rem;
}

.detail-value {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

/* INFO BOX */
.info-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.info-box i {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-box h4 {
  margin: 0 0 0.5rem 0;
  color: #0f172a;
  font-weight: 700;
}

.info-box p {
  margin: 0;
  color: #047857;
}

/* SUCCESS MESSAGE */
.success-message {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message i {
  font-size: 1.5rem;
}

/* ERROR MESSAGE */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.error-message i {
  font-size: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  main.pt-32 {
    padding-top: 8.5rem;
  }

  nav .h-28 {
    height: auto;
    min-height: 5.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }

  nav .h-28 > a:first-of-type {
    min-width: 0;
  }

  nav img {
    max-height: 3rem;
  }

  nav .heading-font {
    font-size: 1.1rem;
  }

  nav a[href="https://kavinincorp.com"]:last-child {
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    white-space: nowrap;
  }

  .section-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .products-list {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-submit,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .progress-tracker {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .progress-line {
    width: 40px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .section-card {
    padding: 1rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .products-list {
    grid-template-columns: 1fr;
  }

  .progress-tracker {
    flex-direction: column;
    gap: 1rem;
  }

  .progress-line {
    width: 3px;
    height: 40px;
  }
}
