:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f1f1f;
  background: #f2f2f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px 20px;
  min-height: 100vh;
}

.payment-card,
.status-card {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 36px;
  border-radius: 18px;
  background: #ffffff;
  border-top: 8px solid #cc0000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
}

header {
  margin-bottom: 32px;
  text-align: center;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #cc0000;
}

.eyebrow {
  margin-bottom: 6px;
  color: #990000;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.details-grid > fieldset:first-child {
  padding-right: 32px;
  border-right: 1px solid #d6d6d6;
}

legend {
  width: 100%;
  margin-bottom: 22px;
  color: #990000;
  font-size: 1.35rem;
  font-weight: bold;
}

label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: bold;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #a7a7a7;
  border-radius: 7px;
  background: #ffffff;
  color: #1f1f1f;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #cc0000;
  outline: 3px solid rgba(204, 0, 0, 0.18);
}

textarea {
  resize: vertical;
}

.name-row,
.payment-row {
  display: grid;
  gap: 16px;
}

.name-row {
  grid-template-columns: 1fr 1fr;
}

.image-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  overflow: hidden;
  border: 2px dashed #cc0000;
  border-radius: 10px;
  background: #fafafa;
  color: #5f5f5f;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-preview p {
  margin: 0;
}

.hint {
  margin: -8px 0 20px;
  color: #5f5f5f;
  font-size: 0.8rem;
}

.notification-options {
  margin-bottom: 18px;
}

.notification-options legend {
  margin-bottom: 8px;
  color: #1f1f1f;
  font-size: 0.9rem;
}

.notification-options label {
  display: inline-flex;
  align-items: center;
  margin: 0 18px 8px 0;
  font-weight: normal;
}

.notification-options input,
.terms input {
  width: auto;
  margin: 0 7px 0 0;
}

.payment-details {
  max-width: 760px;
  margin: 36px auto 0;
  padding-top: 30px;
  border-top: 1px solid #d6d6d6;
}

.payment-details legend {
  text-align: center;
}

.payment-row {
  grid-template-columns: 1fr 1.7fr 1fr 0.8fr 1fr;
}

.terms {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 24px;
  font-weight: normal;
}

.send-button,
.page-link {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  background: #cc0000;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.send-button:hover,
.page-link:hover {
  background: #990000;
}

.status-page {
  display: grid;
  place-items: center;
}

.status-card {
  max-width: 520px;
  text-align: center;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: bold;
}

.success-icon {
  background: #cc0000;
}

.error-icon {
  background: #333333;
}

.status-card > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: #555555;
}

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

  .details-grid > fieldset:first-child {
    padding: 0 0 30px;
    border-right: 0;
    border-bottom: 1px solid #d6d6d6;
  }

  .payment-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  body {
    padding: 18px 10px;
  }

  .payment-card,
  .status-card {
    padding: 24px 18px;
  }

  .name-row,
  .payment-row {
    grid-template-columns: 1fr;
  }
}
