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

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #2b2b2b;
  background: linear-gradient(to bottom, #f3f4f6, #f9f9f9);
  margin: 0;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 20px 32px 0 32px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
}

.container {
  background: white;
  padding: 48px 32px;
  max-width: 460px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  margin-top: 20px;
}

.brand {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  text-align: center;
}

.tagline {
  font-size: 17px;
  font-weight: 500;
  color: #444;
  margin-bottom: 8px;
  text-align: center;
}

.service-summary,
.notice {
  font-size: 14px;
  color: #444;
  padding: 16px 20px;
  margin: 32px 0;
  border-radius: 6px;
}

.service-summary {
  background-color: #fefefe;
  border-right: 4px solid #635bff;
}

.notice {
  background-color: #f9f9f9;
  border-left: 4px solid #635bff;
}

.service-summary ul,
.notice ul {
  padding-left: 20px;
  margin-top: 12px;
}

.service-summary li,
.notice li {
  margin-bottom: 8px;
  line-height: 1.5;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 12px;
}

input[type="email"],
input[type="number"],
input[type="text"],
textarea,
.total-box {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  display: block;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
}

.total-box,
#cost-summary {
  background-color: #f5f5f5;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

#rate-display {
  font-weight: 500;
  color: #555;
  margin-left: 0.5rem;
  font-size: 0.95rem;
}

#card-element {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 24px;
}

button {
  background-color: #635bff;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.2);
}

button:hover {
  background-color: #5146e5;
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.25);
}

input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #635bff;
  outline-offset: 2px;
}

/* Promo section */
.promo-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.promo-group input[type="text"] {
  flex: 1;
  margin-bottom: 0;
}

.promo-group button {
  width: auto;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.promo-group button:hover {
  background-color: #ccc;
}

.promo-feedback {
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 12px;
  color: #444;
}

.promo-hint {
  font-size: 13px;
  color: #666;
  margin-top: -6px;
  margin-bottom: 20px;
}

#upload-ui {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  text-align: center;
}

#upload-ui label {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

#upload-status {
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

#payment-result {
  margin-top: 14px;
  font-size: 15px;
  color: #333;
}

.secure-msg {
  font-size: 13px;
  color: #888;
  margin-top: 30px;
  text-align: center;
  line-height: 1.5;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

footer a {
  color: #888;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #635bff;
}

@media (max-width: 480px) {
  .container {
    padding: 32px 20px;
  }

  .brand {
    font-size: 24px;
  }

  .logo {
    font-size: 16px;
  }

  footer {
    font-size: 12px;
  }

  #rate-display {
    display: block;
    margin: 0.25rem 0 0.5rem 0;
  }

  #cost-summary {
    font-size: 1.1rem;
  }

  button {
    margin-top: 10px;
  }

  .promo-group {
    flex-direction: column;
    gap: 6px;
  }

  .promo-group button {
    width: 100%;
  }
}