/* IBS Tashkent - Unified Dynamic Registration Component Styles */

.ibs-registration-section {
  padding: 60px 0;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ibs-registration-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.ibs-registration-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  padding: 40px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .ibs-registration-card {
    padding: 24px 18px;
  }
}

.ibs-reg-header {
  text-align: center;
  margin-bottom: 32px;
}

.ibs-reg-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ibs-reg-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.5;
}

/* TRACK SWITCHER STYLING */
.ibs-track-switcher-wrapper {
  margin-bottom: 32px;
  text-align: center;
}

.ibs-track-switcher-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
}

.ibs-track-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  gap: 6px;
  width: 100%;
  max-width: 620px;
}

.ibs-track-btn {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ibs-track-btn i {
  font-size: 1.1rem;
}

.ibs-track-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.ibs-track-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* FORM FIELDS LAYOUT */
.ibs-track-panel {
  display: none;
  animation: ibsFadeIn 0.35s ease;
}

.ibs-track-panel.active {
  display: block;
}

@keyframes ibsFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ibs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

@media (max-width: 768px) {
  .ibs-form-grid {
    grid-template-columns: 1fr;
  }
}

.ibs-field-full {
  grid-column: 1 / -1;
}

.ibs-form-group {
  display: flex;
  flex-direction: column;
}

.ibs-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ibs-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ibs-badge-req {
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fecaca;
}

.ibs-badge-opt {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.ibs-input, .ibs-select, .ibs-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ibs-input:focus, .ibs-select:focus, .ibs-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ibs-textarea {
  resize: vertical;
  min-height: 100px;
}

.ibs-hint-text {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

/* MULTI-SELECT CHIPS / PILLS */
.ibs-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ibs-pill-checkbox {
  display: none;
}

.ibs-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.ibs-pill-label:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.ibs-pill-checkbox:checked + .ibs-pill-label {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
}

.ibs-pill-checkbox:checked + .ibs-pill-label i {
  display: inline-block;
}

.ibs-pill-label i {
  display: none;
  font-size: 0.8rem;
}

/* CONDITIONAL FIELD ANIMATION */
.ibs-conditional-field {
  display: none;
  animation: ibsFadeIn 0.3s ease;
}

.ibs-conditional-field.visible {
  display: block;
}

/* WORD COUNT INDICATOR */
.ibs-word-count {
  font-size: 0.78rem;
  color: #64748b;
  text-align: right;
  margin-top: 4px;
}

.ibs-word-count.exceeded {
  color: #dc2626;
  font-weight: 700;
}

/* SUBMIT BUTTON & FEEDBACK */
.ibs-submit-wrapper {
  margin-top: 32px;
  text-align: center;
}

.ibs-submit-btn {
  background: #2563eb;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
}

.ibs-submit-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.ibs-submit-btn:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.ibs-feedback-box {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

.ibs-feedback-box.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ibs-feedback-box.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
