/* ==========================================================================
   4th SQAT Bangladesh - UI Layouts, Forms, & Components
   ========================================================================== */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}

.header-inner {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 72px;
  }
}

.nav-link {
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(20, 28, 48, 0.8);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

.form-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Checkbox Custom */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-custom {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-top: 0.1875rem;
  accent-color: var(--brand-blue);
}

/* Ribbons SVG in Hero */
.hero-ribbons {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 7rem;
  width: 14rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero-ribbons {
    height: 9rem;
    width: 18rem;
  }
}

/* Timeline Desktop 10-Cols */
.timeline-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .timeline-desktop {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

.timeline-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .timeline-mobile {
    display: none;
  }
}

/* Badges & Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
