:root {
  --bg: #071013;
  --brand: #d70913;
  --text: #ededed;
  --muted: #8b949e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Ubuntu", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
}

.logo {
  color: #fff;
  text-decoration: none;
}

.logo:hover,
.logo:focus {
  color: #fff;
  text-decoration: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
}

/* MAIN */
.checkout {
  max-width: 720px;
  margin: auto;
  padding: 40px 20px 100px;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

h2 {
  margin-bottom: 24px;
}

.muted {
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* TEMPLATE SUMMARY */
.template-preview {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 60px;
}

.preview-box {
  width: 100px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.preview-info p {
  margin-bottom: 8px;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price {
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--brand);
}

/* FORM */
.form-section {
  margin-top: 40px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

label {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

input,
textarea {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  color: white;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

small {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.75rem;
}

/* BUTTON */
.pay-btn {
  width: 100%;
  padding: 16px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay-btn:hover {
  background: white;
  color: var(--bg);
}
.pay-btn:active {
  transform: scale(0.98);
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .checkout-container {
    width: 95%;
    padding: 16px;
  }

  .checkout-header .home-btn {
    padding: 6px 12px;
  }
}

/* UPLOAD FIELD */
.upload-hint {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

.error-text {
  display: none;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 6px;
}
