/* ========================================
   RESET
======================================== */

* {
  box-sizing: border-box;
}

body {
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
}

/* ========================================
   WRAPPER
======================================== */

.tus-wrapper {
  max-width: 1280px;

  margin: auto;

  padding: 120px 20px 60px;
}

.tus-grid {
  display: grid;

  grid-template-columns: 1.8fr 1fr;

  gap: 30px;

  align-items: start;
}

/* ========================================
   CARD
======================================== */

.tus-card {
  background: #fff;

  border-radius: 28px;

  overflow: hidden;

  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.08),
    0 5px 20px rgba(15, 23, 42, 0.05);
}

/* ========================================
   HERO
======================================== */

.tus-hero {
  padding: 40px;

  background: linear-gradient(135deg, #0099ff, #2563eb);

  color: white;
}

.tus-hero h1 {
  margin: 0;

  font-size: 38px;

  font-weight: 800;
}

.tus-hero p {
  margin-top: 14px;

  line-height: 1.8;

  opacity: 0.95;
}

/* ========================================
   BODY
======================================== */

.tus-body {
  padding: 35px;
}

/* ========================================
   SIDEBAR
======================================== */

.tus-sidebar {
  position: sticky;

  top: 20px;

  background: #0f172a;

  color: white;

  border-radius: 28px;

  padding: 30px;
}

.tus-badge {
  display: inline-block;

  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);

  margin-bottom: 20px;
}

.tus-sidebar h3 {
  margin-bottom: 25px;

  font-size: 26px;
}

.tus-item {
  padding: 18px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tus-item:last-child {
  border: none;
}

.label {
  color: #94a3b8;

  font-size: 13px;

  margin-bottom: 6px;
}

.value {
  font-weight: 600;
}

/* ========================================
   GRATIS CARD
======================================== */

.tus-free {
  margin-top: 25px;

  padding: 25px;

  border-radius: 22px;

  text-align: center;

  background: linear-gradient(135deg, #10b981, #22c55e);
}

.tus-free h2 {
  margin: 0;

  font-size: 42px;
}

.tus-free p {
  margin-top: 8px;
}

/* ========================================
   STEP INDICATOR
======================================== */

.tus-steps {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 50px;
}

.tus-step-indicator {
  flex: 1;

  text-align: center;
}

.tus-step-indicator span {
  display: block;

  font-size: 14px;

  color: #94a3b8;

  margin-bottom: 10px;
}

.tus-step-indicator .dot {
  width: 14px;

  height: 14px;

  border-radius: 50%;

  margin: auto;

  background: #cbd5e1;
}

.tus-step-indicator.active span {
  color: #2563eb;

  font-weight: 700;
}

.tus-step-indicator.active .dot {
  background: #2563eb;
}

/* ========================================
   FORM
======================================== */

.tus-title {
  margin-bottom: 30px;

  font-size: 28px;

  color: #0f172a;
}

.tus-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;
}

.tus-group {
  margin-bottom: 24px;
}

.tus-group label {
  display: block;

  margin-bottom: 10px;

  font-size: 14px;

  font-weight: 600;

  color: #334155;
}

.tus-control {
  width: 100%;

  height: 56px;

  border-radius: 18px;

  border: 1px solid #e2e8f0;

  padding: 0 20px;

  transition: 0.3s;

  background: white;
}

textarea.tus-control {
  height: auto;

  padding: 18px;
}

.tus-control:focus {
  outline: none;

  border-color: #2563eb;

  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

/* ========================================
   SESSION CARD
======================================== */

.tus-session {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.tus-session-card {
  display: flex;

  align-items: center;

  gap: 16px;

  padding: 22px;

  border-radius: 20px;

  border: 1px solid #e2e8f0;

  cursor: pointer;

  transition: 0.3s;
}

.tus-session-card:hover {
  border-color: #2563eb;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

/* ========================================
   BUTTON
======================================== */

.tus-button-group {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-top: 40px;
}

.tus-btn {
  border: none;

  border-radius: 18px;

  padding: 16px 28px;

  cursor: pointer;

  font-size: 15px;

  font-weight: 700;

  transition: 0.3s;
}

.tus-btn-next {
  background: #94a3b8;

  color: white;
}

.tus-btn-back {
  background: #64748b;

  color: white;
}

.tus-btn-submit {
  background: #1e3a8a;

  color: white;
}

.tus-btn:hover {
  transform: translateY(-2px);
}

/* ========================================
   RADIO
======================================== */

.tus-radio-group {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.tus-radio {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 20px;

  border: 1px solid #e2e8f0;

  border-radius: 20px;

  cursor: pointer;

  transition: 0.3s;
}

.tus-radio:hover {
  border-color: #2563eb;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* ========================================
   CHECKBOX
======================================== */

.tus-checkbox {
  display: flex !important;

  align-items: flex-start;

  gap: 15px;

  line-height: 1.8;

  cursor: pointer;
}

/* ========================================
   STEP
======================================== */

.tus-step {
  display: none;

  animation: fadeStep 0.4s ease;
}

@keyframes fadeStep {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ========================================
   EFFECT
======================================== */

.tus-card:hover {
  transform: translateY(-3px);

  transition: 0.4s;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 992px) {
  .tus-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {
  .tus-wrapper {
    padding-top: 50px;
  }

  .tus-row {
    grid-template-columns: 1fr;
  }

  .tus-steps {
    flex-direction: column;

    gap: 25px;
  }

  .tus-button-group {
    flex-direction: column;
  }

  .tus-btn {
    width: 100%;
  }

  .tus-hero h1 {
    font-size: 30px;
  }

  .tus-sidebar {
    position: relative;
  }
}

/* ========================================
   PROGRESS BAR
======================================== */

.tus-progress {
  height: 10px;

  background: #e2e8f0;

  border-radius: 999px;

  overflow: hidden;

  margin-bottom: 15px;
}

.tus-progress-bar {
  width: 33.33%;

  height: 100%;

  background: linear-gradient(135deg, #0099ff, #2563eb);

  transition: 0.4s;
}

.tus-progress-text {
  text-align: right;

  color: #64748b;

  font-size: 14px;

  margin-bottom: 40px;
}

/* ========================================
   SESSION ACTIVE
======================================== */

.tus-session-card {
  position: relative;
}

.tus-session-card input {
  width: 18px;

  height: 18px;
}

.tus-session-card.active {
  background: #eff6ff;

  border: 1px solid #2563eb;

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

/* ========================================
   RADIO ACTIVE
======================================== */

.tus-radio {
  position: relative;
}

.tus-radio input {
  width: 18px;

  height: 18px;
}

.tus-radio.active {
  background: #eff6ff;

  border-color: #2563eb;

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

/* ========================================
   LOADING OVERLAY
======================================== */

.tus-loading {
  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.55);

  display: none;

  justify-content: center;

  align-items: center;

  z-index: 99999;
}

.tus-loading.active {
  display: flex;
}

.tus-loading-box {
  background: white;

  width: 320px;

  padding: 40px;

  border-radius: 28px;

  text-align: center;

  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.2);
}

.tus-loading-box h3 {
  margin-top: 25px;

  margin-bottom: 10px;
}

.tus-loading-box p {
  color: #64748b;
}

.tus-spinner {
  width: 70px;

  height: 70px;

  border-radius: 50%;

  margin: auto;

  border: 6px solid #dbeafe;

  border-top: 6px solid #2563eb;

  animation: tusSpin 0.8s linear infinite;
}

@keyframes tusSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   SUCCESS POPUP
======================================== */

.tus-success {
  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.55);

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 99999;
}

.tus-success-box {
  width: 420px;

  background: white;

  padding: 50px;

  border-radius: 30px;

  text-align: center;

  animation: tusPop 0.4s ease;
}

.tus-success-icon {
  width: 90px;

  height: 90px;

  margin: auto;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  background: linear-gradient(135deg, #10b981, #22c55e);

  color: white;

  font-size: 42px;

  font-weight: 700;
}

.tus-success-box h2 {
  margin-top: 30px;
}

.tus-success-box p {
  margin-top: 15px;

  color: #64748b;

  line-height: 1.8;
}

.tus-close-success {
  margin-top: 30px;

  border: none;

  background: #2563eb;

  color: white;

  padding: 15px 30px;

  border-radius: 18px;

  cursor: pointer;
}

@keyframes tusPop {
  from {
    opacity: 0;

    transform: scale(0.8);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}
