/* ============================================
   Teacher/Practice Preregister Popup — Shared Styles
   ============================================ */

/* --- Overlay --- */
.tp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: tpFadeIn 0.2s ease;
}

@keyframes tpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tpModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Modal Card --- */
.tp-modal {
  width: 100%;
  max-width: 380px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px;
  overflow-x: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  animation: tpModalIn 0.2s ease;
  -webkit-overflow-scrolling: touch;
}

/* --- Header --- */
.tp-header {
  background: #DDD8FC;
  padding: 28px 24px 24px;
  position: relative;
}

.tp-recruit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(83, 74, 183, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #534AB7;
  margin-bottom: 14px;
}

.tp-recruit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);
}

.tp-title {
  font-size: 20px;
  font-weight: 800;
  color: #1A1A2E;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.tp-subtitle {
  font-size: 13px;
  color: #534AB7;
  line-height: 1.5;
}

/* --- Close Button --- */
.tp-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s;
  padding: 0;
}

.tp-close-btn:active {
  background: rgba(0, 0, 0, 0.15);
}

/* --- Body --- */
.tp-body {
  background: #fff;
  padding: 24px 24px 20px;
}

/* Section Label */
.tp-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tp-section-text {
  font-size: 14px;
  font-weight: 700;
  color: #534AB7;
  white-space: nowrap;
}

.tp-section-line {
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

/* Benefits List */
.tp-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.tp-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-benefit-icon.green { background: #E1F5EE; }
.tp-benefit-icon.purple { background: #EEEDFE; }
.tp-benefit-icon.orange { background: #FFF3E0; }

.tp-benefit-content {
  flex: 1;
  min-width: 0;
}

.tp-benefit-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 1px;
}

.tp-benefit-desc {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.tp-benefit-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-tag-green {
  background: #E1F5EE;
  color: #059669;
}

.tp-tag-purple {
  background: #EEEDFE;
  color: #534AB7;
}

.tp-tag-orange {
  background: #FFF3E0;
  color: #E67E22;
}

/* Instrument Select */
.tp-select-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.tp-select-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}

.tp-select-wrap:focus-within {
  border-color: #534AB7;
}

.tp-select-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #EEEDFE;
  font-size: 13px;
  font-weight: 700;
  color: #534AB7;
  white-space: nowrap;
}

.tp-select {
  flex: 1;
  padding: 12px 14px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-height: 44px;
}

.tp-select-arrow {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #999;
}

.tp-select option {
  font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 14px;
}

/* CTA Button */
.tp-cta-btn {
  width: 100%;
  height: 48px;
  background: #fff;
  border: 1.5px solid #222;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 14px;
  transition: background 0.15s, color 0.15s, opacity 0.1s;
}

.tp-cta-btn:active {
  background: #222;
  color: #fff;
}

.tp-cta-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tp-cta-btn.disabled:active {
  background: #fff;
  color: #222;
}

/* Close X */
.tp-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(83, 74, 183, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: background 0.15s;
}

.tp-close-x:hover {
  background: rgba(83, 74, 183, 0.18);
}

.tp-close-x:active {
  background: rgba(83, 74, 183, 0.25);
}

/* Social Proof */
@keyframes tpBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.tp-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  padding-bottom: 4px;
}

.tp-social-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);
  animation: tpBlink 1.5s ease-in-out infinite;
}

.tp-recruit-dot {
  animation: tpBlink 1.5s ease-in-out infinite;
}

.tp-social-count {
  font-weight: 700;
  color: #333;
}

/* --- Screen 2: Done --- */

.tp-done-header {
  background: #DDD8FC;
  padding: 32px 20px 24px;
  text-align: center;
}

.tp-done-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #534AB7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tp-done-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.tp-done-subtitle {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}

.tp-done-body {
  background: #fff;
  padding: 20px;
}

.tp-done-msg {
  text-align: center;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 16px;
  background: #F9F8FE;
  border-radius: 12px;
}

.tp-done-instrument {
  background: #EEEDFE;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #534AB7;
}

.tp-done-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tp-done-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.tp-done-info-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tp-done-btn {
  width: 100%;
  height: 48px;
  background: #534AB7;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.1s;
}

.tp-done-btn:active {
  opacity: 0.85;
}

/* --- Phone Input (Practice Preregister) --- */
.tp-phone-input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  min-height: 44px;
  letter-spacing: 0.5px;
}

.tp-phone-input::placeholder {
  color: #B0B0B0;
  letter-spacing: 0;
}

.tp-phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #F3F4F6;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  border-right: 1px solid #E5E7EB;
}
