* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f4ff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
}

.container {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  margin: 30px auto;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.08);
  flex: 1;
}

@media (max-width: 600px) {
  .container {
    padding: 22px 18px;
    margin: 20px auto;
    width: 92%;
  }
}

h2, h3 {
  text-align: center;
  color: #007bff;
  margin-bottom: 12px;
  font-size: 1.25em;
}

ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 15px;
  color: #0056b3;
}

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  margin-top: 6px;
  margin-bottom: 14px;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1em;
  background: #f9fbff;
  max-width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.4);
  outline: none;
  background: white;
}

@media (max-width: 600px) {
  input, select, textarea {
    padding: 9px 11px;
    font-size: 0.95em;
  }
}

.note {
  font-size: 0.9em;
  background: #f0f7ff;
  padding: 12px;
  border-left: 4px solid #007bff;
  margin-top: 10px;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .note {
    font-size: 0.85em;
    padding: 10px;
  }
}

.price-btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 9px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  margin-bottom: 8px;
  margin-right: 5px;
  transition: background 0.25s ease, transform 0.15s ease;
}

.price-btn:hover {
  background: #0066cc;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .price-btn {
    width: 48%;
    display: inline-block;
    margin-bottom: 8px;
    margin-right: 0;
    text-align: center;
  }

  .price-btn:last-of-type {
    float: right;
  }

  .price-btn::after {
    content: "";
    display: table;
    clear: both;
  }
}

button {
  margin-top: 8px;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 1.05em;
}

button:hover {
  background: #0066cc;
}

.invoice-box {
  display: none;
  background: white;
  padding: 25px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  margin: 30px auto;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.08);
  overflow-x: auto;
}

.invoice-box table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.invoice-box table td {
  padding: 8px;
  word-wrap: break-word;
}

.invoice-box .heading td {
  background: #f0f7ff;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.invoice-box .item td {
  border-bottom: 1px solid #eee;
}

.invoice-box .total td {
  border-top: 2px solid #007bff;
  font-weight: bold;
}

.download-btn {
  margin-top: 15px;
  padding: 10px 18px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

.download-btn:hover {
  background: #218838;
}

.invoice-logo {
  position: absolute;
  top: 8px;
  right: 12px;
  max-width: 35px;
  height: auto;
}

@media (max-width: 600px) {
  .invoice-logo {
    max-width: 28px;
    top: 6px;
    right: 8px;
  }
}

footer {
  background: #e6f0ff;
  color: #555;
  text-align: center;
  padding: 12px;
  font-size: 0.9em;
  margin-top: auto;
  border-top: 1px solid #d6e4ff;
}