/* Trial Duration Modal Styles */
#tsubs-trial-duration-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 17, 23, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100; /* Higher than choose tutor */
}

.tsubs-td-section {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.08);
  padding-bottom: 32px;
  animation: tsubs-fade-in 0.2s ease-out;
}

.tsubs-td-handle {
  display: none;
  width: 40px;
  height: 4px;
  background-color: #121117;
  border-radius: 2px;
  margin: 12px auto 0;
}

.tsubs-td-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tsubs-td-back-btn,
.tsubs-td-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #121117;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsubs-td-content {
  padding: 0 32px;
}

.tsubs-td-title {
  font-size: 28px;
  font-weight: 700;
  color: #121117;
  margin: 0 0 32px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tsubs-td-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tsubs-td-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #eaeaef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tsubs-td-option:hover {
  border-color: #121117;
  background-color: #fafafb;
}

.tsubs-td-option-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121117;
}

.tsubs-td-option-info {
  flex-grow: 1;
}

.tsubs-td-option-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #121117;
}

.tsubs-td-option-info p {
  font-size: 14px;
  color: #8d8c9b;
  margin: 0;
}

.tsubs-td-chevron {
  color: #121117;
  opacity: 0.3;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  #tsubs-trial-duration-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .tsubs-td-section {
    max-width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    animation: tsubs-slide-up 0.3s ease-out;
    padding-bottom: env(safe-area-inset-bottom, 32px);
  }

  .tsubs-td-handle {
    display: block;
  }

  .tsubs-td-header {
    padding: 16px 24px 8px;
  }

  .tsubs-td-content {
    padding: 0 24px;
  }

  .tsubs-td-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
}

/* Animations */
@keyframes tsubs-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tsubs-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
