/* Warranty claim page — layout aligned with booking flow */

.warranty-section.booking-section {
  padding: calc(var(--nav-height) + 12px) 20px 72px !important;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(245, 158, 11, 0.07), transparent 65%),
    var(--bg-primary);
}

.warranty-container {
  max-width: 1120px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.warranty-intro {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 640px;
}

.warranty-intro .section-tag {
  margin-bottom: 12px;
}

.warranty-intro h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--text-primary);
}

.warranty-intro p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.warranty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

.warranty-form-card {
  max-width: none !important;
  margin: 0 !important;
  padding: 32px 36px;
}

.warranty-form-card .form-group > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warranty-form-card .optional-mark {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.warranty-form-card .field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.warranty-form-card input:not([type="checkbox"]),
.warranty-form-card textarea,
.warranty-form-card select,
.warranty-ticket-select {
  width: 100%;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.warranty-form-card input:focus,
.warranty-form-card textarea:focus,
.warranty-ticket-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.warranty-file-input {
  padding: 10px 0 !important;
  font-size: 0.84rem !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.warranty-ticket-helper {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
}

.warranty-ticket-helper[hidden] {
  display: none !important;
}

.warranty-ticket-helper-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.warranty-ticket-helper-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent);
  flex-shrink: 0;
}

.warranty-ticket-helper-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.warranty-ticket-helper-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.warranty-ticket-helper-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.warranty-use-ticket-btn {
  white-space: nowrap;
  padding: 11px 16px;
}

.warranty-ticket-helper-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.warranty-ticket-helper-note[hidden] {
  display: none !important;
}

.warranty-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 20px;
}

.warranty-form-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.warranty-form-footnote i {
  margin-right: 4px;
  color: var(--accent);
}

.warranty-aside {
  min-width: 0;
}

.warranty-info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 18px;
}

.warranty-info-card h3 i {
  color: var(--blue-light);
}

.warranty-covered {
  margin: 18px 0 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.warranty-covered a {
  color: var(--blue-light);
  font-weight: 500;
}

.warranty-covered a:hover {
  color: var(--accent);
}

.warranty-track-link {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
}

.warranty-success-actions {
  max-width: 380px;
}

.warranty-success-actions .btn-primary,
.warranty-success-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 960px) {
  .warranty-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .warranty-info-card {
    position: static;
  }

  .warranty-intro {
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .warranty-section.booking-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .warranty-form-card {
    padding: 22px 18px;
  }

  .warranty-ticket-helper-row {
    grid-template-columns: 1fr;
  }

  .warranty-use-ticket-btn {
    width: 100%;
    justify-content: center;
  }

  .warranty-form-grid {
    grid-template-columns: 1fr !important;
  }
}
