@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --surface: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 20%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.16), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #ecf3fb 100%);
}

.warranty-page {
  width: min(1440px, calc(100% - 32px));
  margin: 24px auto;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0f3d56 0%, #155e75 46%, #0d9488 100%);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hero-actions .btn {
  width: auto;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.hero-glow-a {
  width: 220px;
  height: 220px;
  top: -90px;
  right: -40px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-glow-b {
  width: 160px;
  height: 160px;
  bottom: -80px;
  right: 240px;
  background: rgba(249, 115, 22, 0.22);
}

.form-shell {
  margin-top: 22px;
  display: grid;
  gap: 22px;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.policy-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 251, 235, 0.94));
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 8px 0 0;
  font-size: 26px;
}

.section-tag {
  background: rgba(14, 165, 233, 0.10);
  color: #0369a1;
}

.form-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.span-2 {
  grid-column: span 2;
}

label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.input,
.date-text {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

.input:focus,
.date-text:focus {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

select.input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}

.helper-text {
  min-height: 18px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 600;
}


.upload-box,
.date-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.95);
}

.date-box {
  position: relative;
  padding-right: 68px;
}

.upload-box input,
.upload-box input {
  display: none;
}

.date-native {
  display: block;
  position: absolute;
  top: 50%;
  right: 12px;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
}

.date-box .date-text {
  padding-right: 68px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  cursor: pointer;
}

.icon-button img {
  width: 22px;
  height: 22px;
}

.icon-calendar {
  position: absolute;
  top: 50%;
  right: 12px;
  margin-left: 0;
  transform: translateY(-50%);
  z-index: 1;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 14px 24px rgba(220, 38, 38, 0.22);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-neutral {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-file {
  color: var(--text);
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
}

.btn-submit {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  min-width: 220px;
}

.btn-verified {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.file-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.checklist {
  display: grid;
  gap: 14px;
}

.check-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241,247,255,0.94));
  padding: 16px 18px;
}

.check-card strong {
  display: block;
  font-size: 15px;
}

.check-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.success-wrap {
  width: min(760px, calc(100% - 32px));
  margin: 60px auto;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15,118,110,0.14), rgba(20,184,166,0.18));
  color: #0f766e;
  font-size: 42px;
}

.success-wrap h1 {
  margin: 0 0 10px;
  font-size: 30px;
}

.success-wrap p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 1440px) {
  .warranty-page {
    width: min(1380px, calc(100% - 24px));
    margin: 16px auto;
  }

  .hero {
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(28px, 4.1vw, 42px);
  }

  .hero-copy {
    max-width: 640px;
  }

  .form-shell {
    gap: 18px;
  }

  .panel {
    padding: 20px;
  }

  .form-grid,
  .form-grid-inner {
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .warranty-page {
    width: min(100% - 18px, 100%);
    margin: 10px auto 18px;
  }

  .hero {
    padding: 22px;
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .panel {
    padding: 20px;
  }

  .form-grid-inner,
  .inline-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .upload-box {
    flex-wrap: wrap;
  }

  .icon-calendar {
    margin-left: 0;
  }

  .action-row {
    justify-content: stretch;
  }

  .btn-submit {
    width: 100%;
  }
}
