* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f2ea;
  --line: #eadfce;
  --text: #3f352b;
  --muted: #75685b;
  --primary: #8b7355;
  --primary-dark: #725c42;
  --shadow: 0 10px 30px rgba(80, 60, 35, 0.08);
  --shadow-soft: 0 6px 18px rgba(80, 60, 35, 0.05);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top left, #fdfaf6 0%, #f7f2ea 40%, #f4eee5 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(234, 223, 206, 0.8);
  padding: 16px 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 27px;
  font-weight: bold;
  color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #5f5143;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
}

nav a:hover {
  background-color: #f3ece2;
  color: var(--primary);
}

.btn-login {
  background-color: var(--primary);
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
}

.hero {
  width: min(1180px, 92%);
  margin: 26px auto 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18)), linear-gradient(135deg, #f3eadf, #eadcc9);
  border: 1px solid #eadfce;
  border-radius: 34px;
  padding: 88px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 52px;
  margin: 0 0 14px;
  color: #4d3f32;
  line-height: 1.15;
}

.hero p {
  font-size: 18px;
  color: #6d6257;
  margin: 0 auto 28px;
  max-width: 700px;
  line-height: 1.7;
}

.page-hero {
  width: min(1120px, 90%);
  margin: 28px auto 0;
  background: linear-gradient(135deg, #f6efe5, #eee2d2);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 54px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  color: #4d3f32;
}

.page-hero p {
  margin: 0 auto;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  width: min(1120px, 90%);
  margin: 56px auto;
}

.section h2 {
  text-align: center;
  color: #4d3f32;
  margin-bottom: 12px;
  font-size: 32px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.button {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  display: inline-block;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.button:hover {
  background-color: var(--primary-dark);
}

.second {
  background-color: #c4ab88;
  margin-left: 8px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  color: #5c4a38;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.card p {
  color: #6d6257;
  line-height: 1.7;
  margin-bottom: 0;
}

.price {
  display: inline-block;
  margin-top: 16px;
  font-weight: bold;
  color: var(--primary) !important;
  background: #f8f1e7;
  padding: 8px 14px;
  border-radius: 999px;
}

.action-space {
  margin-top: 28px;
}

.form-box {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  max-width: 560px;
  margin: auto;
  box-shadow: var(--shadow);
}

.form-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.info-box {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.info-box h3 {
  margin-top: 0;
  color: #5c4a38;
}

.info-box p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 10px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #4d3f32;
}

input,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ddd0be;
  border-radius: 16px;
  margin-bottom: 18px;
  background-color: #fffdf9;
  font-size: 14px;
  color: var(--text);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

.full {
  width: 100%;
}

.center {
  text-align: center;
}

.small-text {
  margin-top: 22px;
  color: #6d6257;
  line-height: 1.6;
}

.small-text a {
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
}

.payment-info {
  background: linear-gradient(135deg, #fbf8f3, #f2eadf);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  color: #5f5143;
  line-height: 1.7;
}

.payment-info h4 {
  margin: 0 0 10px;
}

.receipt {
  background: linear-gradient(180deg, #fffdf9, #f8f2e9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  text-align: left;
  margin: 22px 0;
  line-height: 1.8;
}

.receipt p {
  margin: 4px 0;
  color: #5f5143;
}

.empty-box {
  background: rgba(255,255,255,0.82);
  border: 1px dashed #d7c7af;
  border-radius: 26px;
  padding: 52px 28px;
  text-align: center;
  max-width: 720px;
  margin: auto;
  box-shadow: var(--shadow-soft);
}

.empty-box h3 {
  margin-top: 0;
  color: #5c4a38;
  font-size: 24px;
}

.empty-box p {
  color: #6d6257;
  margin-bottom: 25px;
  line-height: 1.7;
}

.history-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.history-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #5c4a38;
}

.history-card p {
  margin: 4px 0;
  color: #6d6257;
  line-height: 1.6;
}

.status {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
}

.pending {
  background-color: #f7ead0;
  color: #7a5a20;
}

.table-box {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
  margin-top: 22px;
}

.table-box h3 {
  margin-top: 0;
  color: #5c4a38;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #efe4d3;
  padding: 14px;
  text-align: left;
}

th {
  background-color: #f7f0e5;
  color: #4d3f32;
}

footer {
  background-color: transparent;
  text-align: center;
  padding: 26px 18px 22px;
  color: #7a6d60;
  margin-top: auto;
  font-size: 14px;
}

@media (max-width: 980px) {
  .card-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 18px;
  }

  nav {
    justify-content: center;
  }

  .hero {
    padding: 68px 24px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .page-hero {
    padding: 42px 20px;
    border-radius: 24px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .section {
    width: 90%;
  }

  .card-container {
    grid-template-columns: 1fr;
  }

  .history-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
