
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #202b42;
  background: #f7f9fc;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1150px;
  margin: auto;
}

.header {
  background: white;
  border-bottom: 1px solid #e8edf5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 25px;
  font-weight: 800;
  color: #172b4d;
  text-decoration: none;
}

.logo span {
  color: #3778e5;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: #43516a;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: #3778e5;
}

.hero {
  text-align: center;
  padding: 95px 15px 85px;
  background: linear-gradient(135deg, #eaf2ff, #f7f9ff);
}

.tag {
  display: inline-block;
  color: #3778e5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 65px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #3778e5;
}

.hero p {
  color: #66738b;
  font-size: 17px;
}

.search-box {
  max-width: 620px;
  display: flex;
  margin: 32px auto 12px;
  padding: 6px;
  background: white;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  box-shadow: 0 8px 25px #1b31500d;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px;
  font-size: 15px;
}

.search-box button,
.primary-btn {
  background: #3778e5;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px 23px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn:hover,
.search-box button:hover {
  background: #245eb6;
}

.hero-note {
  font-size: 13px !important;
}

.section {
  padding: 75px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2,
.about h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.section-heading p,
.about p {
  color: #728096;
}

.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.category {
  padding: 10px 19px;
  border: 1px solid #dce4f0;
  border-radius: 30px;
  background: white;
  color: #475570;
  cursor: pointer;
  font-weight: 600;
}

.category.active {
  background: #3778e5;
  color: white;
  border-color: #3778e5;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-card {
  background: white;
  padding: 27px;
  border: 1px solid #e7ecf4;
  border-radius: 14px;
  transition: 0.2s;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #172b4d12;
}

.tool-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.tool-card h3 {
  margin-bottom: 8px;
}

.tool-card p {
  color: #78859a;
  font-size: 14px;
  margin-bottom: 20px;
}

.open-tool {
  background: transparent;
  border: none;
  color: #3778e5;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.no-results {
  text-align: center;
  color: #78859a;
  padding: 25px;
}

.workspace {
  padding: 65px 0;
  background: #edf3fc;
}

.tool-panel {
  max-width: 760px;
  margin: auto;
  padding: 30px;
  background: white;
  border-radius: 15px;
  border: 1px solid #e3eaf4;
}

.tool-content h3 {
  margin-bottom: 18px;
  font-size: 23px;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  outline-color: #3778e5;
  margin-bottom: 15px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 15px 0 22px;
  color: #66738b;
}

.stats strong {
  color: #3778e5;
}

.secondary-btn,
.action-btn {
  padding: 11px 17px;
  border: 1px solid #dce4ef;
  background: #f7f9fc;
  border-radius: 8px;
  cursor: pointer;
  margin: 5px 5px 5px 0;
  color: #34445e;
  font-weight: 600;
}

.secondary-btn:hover,
.action-btn:hover {
  background: #eaf2ff;
}

.button-group {
  margin-bottom: 12px;
}

.tool-content label {
  display: block;
  font-weight: 600;
  margin: 15px 0 6px;
}

.tool-content input,
.tool-content select {
  width: 100%;
  padding: 13px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  color: #202b42;
}

.tool-content input:focus,
.tool-content select:focus {
  outline: 2px solid #3778e5;
}

.tool-content input[type="date"] {
  font-family: inherit;
}

.result {
  margin-top: 20px;
  padding: 17px;
  background: #edf3fc;
  border-radius: 9px;
  color: #245eb6;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.two-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.qr-result {
  text-align: center;
  margin-top: 25px;
  padding: 20px;
  background: #f7f9fc;
  border-radius: 10px;
  color: #66738b;
  overflow-wrap: anywhere;
}

.qr-result img {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  margin: 15px auto;
  background: white;
}

.qr-result a {
  color: #3778e5;
  font-weight: 600;
}

.invoice-paper {
  background: white;
  border: 1px solid #dce4ef;
  padding: 30px;
  margin: 25px 0;
  color: #202b42;
}

.invoice-paper h2 {
  font-size: 30px;
  color: #3778e5;
  margin-bottom: 20px;
}

.invoice-paper hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #dce4ef;
}

.invoice-paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.invoice-paper th,
.invoice-paper td {
  padding: 10px 5px;
  text-align: left;
  border-bottom: 1px solid #e7ecf4;
}

.invoice-paper th:last-child,
.invoice-paper td:last-child {
  text-align: right;
}

.invoice-paper h3 {
  text-align: right;
  margin: 20px 0;
}

.invoice-paper p {
  margin-top: 35px;
  text-align: center;
  color: #66738b;
}

.about {
  padding: 65px 0;
  text-align: center;
}

.about p {
  max-width: 650px;
  margin: 10px auto;
}

footer {
  padding: 35px 0;
  background: #172b4d;
  color: white;
  text-align: center;
}

footer .logo {
  color: white;
}

footer p {
  font-size: 13px;
  color: #c1cce0;
  margin-top: 8px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 750px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 65px 10px;
  }

  nav {
    gap: 13px;
  }
}

@media (max-width: 500px) {
  .nav {
    flex-direction: column;
    padding: 14px 0;
  }

  nav {
    gap: 20px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .search-box button {
    padding: 12px;
  }

  .tool-panel {
    padding: 20px;
  }

  .stats {
    flex-direction: column;
    gap: 7px;
  }

  .two-inputs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .invoice-paper {
    padding: 15px;
    overflow-x: auto;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #invoicePaper,
  #invoicePaper * {
    visibility: visible;
  }

  #invoicePaper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    margin: 0;
    padding: 20px;
  }

  #invoicePaper h2 {
    color: #172b4d;
  }
}


/* Step 5.1: footer page links */
.footer-link {
  color: #c1cce0;
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover {
  color: white;
  text-decoration: underline;
}

/* About page layout */
.page-hero {
  padding: 70px 15px;
  text-align: center;
  background: linear-gradient(135deg, #eaf2ff, #f7f9ff);
}
.page-content {
  padding: 55px 0 70px;
}
.page-card {
  background: white;
  border: 1px solid #e7ecf4;
  border-radius: 14px;
  padding: 28px;
  margin: 18px auto;
  max-width: 900px;
}
.page-card h2 {
  margin-bottom: 12px;
  color: #172b4d;
}
.page-card p, .page-card li {
  color: #66738b;
}
.page-card ul {
  padding-left: 22px;
  margin-top: 10px;
}

/* Step 5.2: Contact Us page */
.contact-card { text-align: center; max-width: 760px; }
.contact-card p { margin: 10px 0; }
.contact-email { margin: 28px 0 18px; padding: 22px; background: #edf3fc; border-radius: 12px; }
.contact-label { display: block; color: #66738b; font-size: 13px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.contact-email a { color: #245eb6; font-size: clamp(16px, 3vw, 22px); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-email a:hover { text-decoration: underline; }
.contact-button { display: inline-block; background: #3778e5; color: white; text-decoration: none; padding: 13px 24px; border-radius: 8px; font-weight: 700; margin: 8px 0; }
.contact-button:hover { background: #245eb6; }
.contact-note { color: #78859a; font-size: 14px; margin-top: 18px !important; }
@media (max-width: 500px) { .contact-card { padding: 22px; } .contact-email { padding: 17px; } }

/* Step 5.3: legal pages and footer navigation */
.legal-card { line-height: 1.75; }
.legal-card h2 { margin-top: 25px; font-size: 21px; }
.legal-card h2:first-of-type { margin-top: 12px; }
.legal-card a { color: #245eb6; overflow-wrap: anywhere; }
.footer-links { line-height: 2; }
