/**
 * Salkantay Treks Peru - Virtual Claim Book Styles (Libro de Reclamaciones)
 * Conforms to Peruvian Law N° 29571 & D.S. N° 011-2011-PCM / D.S. 042-2011-PCM
 */

/* ==========================================================================
   Company & Sheet Meta Box
   ========================================================================== */
.stp-claim-meta-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  margin-top: -2rem;
  position: relative;
  z-index: 5;
  padding: 1.5rem 2rem;
}

.stp-meta-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 700;
}

.stp-meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.stp-sheet-badge {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  text-align: right;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.stp-sheet-number {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 1px;
}

/* ==========================================================================
   Form Card & Sections
   ========================================================================== */
.stp-claim-form-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.04);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.stp-claim-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.stp-claim-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.stp-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.stp-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #78c044 0%, #5ea32a 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(120, 192, 68, 0.3);
}

.stp-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.stp-section-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 0;
}

/* ==========================================================================
   Form Controls & Labels
   ========================================================================== */
.stp-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stp-req {
  color: #dc2626;
  font-weight: 800;
}

.stp-form-control,
.stp-form-select {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  color: #1e293b;
  transition: all 0.2s ease;
  background-color: #f8fafc;
  width: 100%;
}

.stp-form-control:focus,
.stp-form-select:focus {
  background-color: #ffffff;
  border-color: #78c044;
  outline: none;
  box-shadow: 0 0 0 4px rgba(120, 192, 68, 0.15);
}

/* ==========================================================================
   Option Cards (Reclamo vs Queja / Producto vs Servicio)
   ========================================================================== */
.stp-option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stp-option-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #ffffff;
}

.stp-option-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.05);
}

.stp-option-card input[type="radio"] {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  accent-color: #78c044;
  width: 18px;
  height: 18px;
}

.stp-option-card.active,
.stp-option-card:has(input[type="radio"]:checked) {
  border-color: #78c044;
  background-color: #f0fdf4;
  box-shadow: 0 4px 16px rgba(120, 192, 68, 0.15);
}

.stp-option-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.35rem;
}

.stp-option-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0;
}

/* ==========================================================================
   Legal Notice & Checkboxes
   ========================================================================== */
.stp-legal-alert {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.6;
}

.stp-legal-alert strong {
  color: #0f172a;
}

.stp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.stp-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #78c044;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.stp-claim-submit-btn {
  background: linear-gradient(135deg, #78c044 0%, #5ea32a 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  padding: 1rem 2.5rem;
  border-radius: 50rem;
  border: none;
  box-shadow: 0 6px 20px rgba(120, 192, 68, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.stp-claim-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(120, 192, 68, 0.45);
  color: #ffffff;
}

.stp-claim-print-btn {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.stp-claim-print-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* ==========================================================================
   Success Modal & Printable Sheet
   ========================================================================== */
.stp-official-sheet {
  border: 2px solid #0f172a;
  border-radius: 12px;
  background-color: #ffffff;
  color: #0f172a;
  padding: 2rem;
  font-family: inherit;
}

.stp-sheet-header-box {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.stp-sheet-table {
  width: 100%;
  margin-bottom: 1.25rem;
  border-collapse: collapse;
}

.stp-sheet-table th,
.stp-sheet-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  font-size: 0.85rem;
  vertical-align: top;
}

.stp-sheet-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  width: 30%;
}

@media (max-width: 767.98px) {
  .stp-claim-form-card {
    padding: 1.5rem;
  }

  .stp-claim-meta-box {
    padding: 1.25rem;
  }

  .stp-option-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Print Optimization (@media print)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden !important;
  }

  .stp-modal-printable,
  .stp-modal-printable * {
    visibility: visible !important;
  }

  .stp-modal-printable {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .modal-footer,
  .btn-close,
  .stp-no-print {
    display: none !important;
  }
}
