/* Returns & Refunds Policy Page — Light Theme */

/* General page styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ===== Hero Section ===== */
.returns-hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  background: #f7f7f7;
}

.returns-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.25), transparent);
}

.returns-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.returns-hero .hero-sub {
  font-size: 1.15rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Container ===== */
.returns-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ===== Quick Summary Box ===== */
.quick-summary {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  padding: 36px 40px;
  margin: -20px auto 50px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.quick-summary .summary-title {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 4px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.summary-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.summary-icon.check {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.summary-icon.cross {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.summary-icon.alert {
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
}

.summary-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.summary-text strong {
  display: block;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.summary-text span {
  color: #666;
  font-size: 0.88rem;
}

/* ===== Policy Card ===== */
.policy-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.policy-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.policy-card .card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.08);
}

.policy-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.policy-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-card ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.policy-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  opacity: 0.5;
}

.policy-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 10px;
}

/* ===== Return Process Steps ===== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 24px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: rgba(59, 130, 246, 0.15);
}

.step:last-child::before {
  display: none;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid rgba(59, 130, 246, 0.25);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
  line-height: 40px;
}

.step-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.warning-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.warning-box .warn-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.warning-box p {
  color: #92400e;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* ===== Start a Return Section ===== */
.start-return-section {
  text-align: center;
  margin-top: 50px;
}

.start-return-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
}

.start-return-section > p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== Return Form ===== */
.return-form-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.return-form-wrapper.open {
  max-height: 1200px;
  opacity: 1;
}

.return-form {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  padding: 40px;
  margin-top: 28px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.return-form h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  color: #333;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-field select option {
  background: #fff;
  color: #333;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  position: relative;
}

.file-upload-area:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.02);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.file-upload-area p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.file-upload-area .upload-hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
}

.file-names {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #3b82f6;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.btn-submit:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.form-success h3 {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0 10px;
}

.form-success p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Validation */
.form-field.error input,
.form-field.error select {
  border-color: #ef4444;
}

.form-field .error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
}

.form-field.error .error-msg {
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .returns-hero {
    padding: 60px 20px 40px;
  }

  .returns-hero h1 {
    font-size: 2rem;
  }

  .returns-hero .hero-sub {
    font-size: 1rem;
  }

  .quick-summary {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    margin-top: -10px;
  }

  .policy-card {
    padding: 28px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .return-form {
    padding: 28px 20px;
  }

  .start-return-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .returns-hero h1 {
    font-size: 1.65rem;
  }

  .policy-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
