/* ==========================================================================
   TCC - Tracking Page & Address Modal Styles
   ========================================================================== */

.tracking-layout {
  min-height: 100vh;
  background-color: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.tracking-main {
  flex: 1;
  width: 100%;
  padding-bottom: 60px;
}

/* Header Photo Banner */
.tracking-banner {
  width: 100%;
  max-width: 1200px;
  margin: 110px auto 20px;
  padding: 0 16px;
}

.tracking-banner-inner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tracking-banner-inner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 860px;
  margin: 16px auto 24px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.breadcrumbs span {
  color: var(--text-muted);
}

/* Hero 3D Card */
.tracking-hero-container {
  max-width: 860px;
  margin: 0 auto 30px;
  padding: 0 16px;
  text-align: center;
}

.tracking-hero-composite-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tracking-hero-composite-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(215, 0, 0, 0.15);
}

.tracking-hero-composite-img {
  width: 100%;
  height: auto;
  display: block;
}

.tracking-hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 24px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tracking-3d-img {
  width: 100%;
  max-width: 480px;
  margin-bottom: 24px;
}

.tracking-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.25;
}

.title-underline {
  width: 54px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
  margin: 8px auto 24px;
}

/* Error / Notice Alert Cards */
.alert-card-info {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  border: 1px solid #fee2e2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.alert-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-icon-wrap img {
  width: 52px;
  height: 52px;
}

.alert-text-body {
  flex: 1;
}

.alert-text-body p {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
}

.alert-text-body p:first-child {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

/* Red Action Card */
.alert-card-action {
  width: 100%;
  background: #d70000;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(215, 0, 0, 0.25);
  text-align: left;
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 700;
}

.action-card-header img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.action-card-pill-btn {
  background: #ffffff;
  color: #d70000;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-card-pill-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Timeline Section */
.tracking-timeline-section {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0 16px;
}

.timeline-header {
  text-align: center;
  margin-bottom: 28px;
}

.timeline-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.guide-number-tag {
  font-size: 15px;
  color: #64748b;
  font-weight: 500;
}

.guide-number-tag strong {
  color: var(--primary-red);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Timeline Cards */
.timeline-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  text-align: left;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.timeline-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
}

.status-badge.green {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.status-badge.red {
  background: var(--badge-red-bg);
  color: var(--badge-red-text);
}

.status-badge.blue {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.timeline-date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

.timeline-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
}

.timeline-bullet-list {
  margin: 10px 0 16px 20px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

.timeline-bullet-list li {
  margin-bottom: 4px;
}

.timeline-alert-box {
  background: #fef2f2;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #b91c1c;
  margin-bottom: 14px;
}

.timeline-alert-box.neutral {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #f1f5f9;
}

.btn-update-address {
  width: 100%;
  background: var(--primary-red);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 12px rgba(215, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-update-address:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 6px 16px rgba(215, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   Address Update Modal
   ========================================================================== */
.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark);
}

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

.modal-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13.5px;
  color: #64748b;
}

.btn-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-modal-close:hover {
  background: #fee2e2;
  color: var(--primary-red);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit-address {
  width: 100%;
  background: var(--primary-red);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 6px 18px rgba(215, 0, 0, 0.3);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-submit-address:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

/* Mobile Responsive for Tracking */
@media (max-width: 768px) {
  .tracking-banner {
    margin-top: 90px;
    padding: 0 10px;
  }

  .tracking-hero-title {
    font-size: 24px;
  }

  .alert-card-info {
    padding: 16px;
    gap: 14px;
  }

  .alert-icon-wrap {
    width: 44px;
    height: 44px;
  }

  .alert-icon-wrap img {
    width: 40px;
    height: 40px;
  }

  .alert-text-body p {
    font-size: 13px;
  }

  .timeline-card {
    padding: 18px 16px;
  }

  .timeline-title {
    font-size: 17px;
  }

  .modal-content {
    padding: 24px 18px;
  }
}
