/* GAERU RMA (Bảo Hành & Đổi Mới 1-1) Styles — Harmonized with GAERU Design System */
.rma-page {
  background-color: #f5f5f7;
  color: #1d1d1f;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.rma-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.rma-hero {
  text-align: center;
  margin-bottom: 32px;
}

.rma-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.rma-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.rma-hero p {
  color: #6e6e73;
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

.rma-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 12px;
}

.rma-tab {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rma-tab:hover {
  background: #f5f5f7;
  border-color: #86868b;
}

.rma-tab.active {
  background: #0071e3;
  border-color: #0071e3;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.rma-card {
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.rma-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.rma-card-desc {
  color: #6e6e73;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.rma-search-form {
  display: flex;
  gap: 12px;
}

.rma-search-form input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rma-search-form input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.rma-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.rma-btn-primary {
  background: #0071e3;
  color: #ffffff;
}

.rma-btn-primary:hover {
  background: #0077ed;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.rma-btn-primary:active {
  transform: scale(0.98);
}

.rma-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rma-form-group {
  margin-bottom: 18px;
}

.rma-form-row {
  display: flex;
  gap: 16px;
}

.rma-form-row .rma-form-group {
  flex: 1;
}

.rma-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d1d1f;
}

.rma-form-group input,
.rma-form-group select,
.rma-form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.rma-form-group input:focus,
.rma-form-group select:focus,
.rma-form-group textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.rma-results {
  margin-top: 24px;
}

.rma-ticket-box {
  background: #fbfbfd;
  border: 1px solid #e5e5ea;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}

.rma-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.rma-ticket-code {
  font-size: 18px;
  font-weight: 700;
  color: #0071e3;
}

.rma-status-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.rma-timeline {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  position: relative;
}

.rma-timeline-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
}

.rma-timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0071e3;
}

.rma-timeline-item::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: -16px;
  width: 2px;
  background: #e5e5ea;
}

.rma-timeline-item:last-child::after {
  display: none;
}

.rma-timeline-date {
  font-size: 12px;
  color: #86868b;
}

.rma-timeline-desc {
  font-size: 14px;
  color: #1d1d1f;
  margin-top: 2px;
}

.rma-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.rma-step-box {
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.rma-step-num {
  font-size: 20px;
  font-weight: 800;
  color: #0071e3;
  margin-bottom: 8px;
}

.rma-step-box h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
}

.rma-step-box p {
  margin: 0;
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .rma-form-row {
    flex-direction: column;
    gap: 0;
  }
  .rma-search-form {
    flex-direction: column;
  }
  .rma-card {
    padding: 22px 16px;
  }
  .rma-steps-grid {
    grid-template-columns: 1fr;
  }
}
