/* MAIN WRAPPER */
.inflation-main {
  padding: 60px 0;
}

.inflation-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* LEFT CONTENT */
.inflation-content {
  flex: 2;
}

/* TOOL BOX */
.tool-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.tool-box h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.tool-intro {
  color: #64748b;
  margin-bottom: 30px;
}

/* FORM */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.error {
  color: red;
  font-size: 12px;
}

.calc-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg,#4f46e5,#06b6d4);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79,70,229,0.3);
}

/* RESULT */
.result-box {
  margin-top: 25px;
  padding: 20px;
  background: #f1f5f9;
  border-radius: 12px;
  display: none;
}

/* RELATED TOOLS */
.related-tools {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.related-tools h3 {
  margin-bottom: 20px;
}

.related-tools ul {
  list-style: none;
}

.related-tools li {
  margin-bottom: 12px;
}

.related-tools a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
}

.related-tools a:hover {
  color: #4f46e5;
}

/* SEO CONTENT */
.seo-content h2 {
  margin-top: 40px;
  margin-bottom: 15px;
}

.seo-content p {
  margin-bottom: 18px;
  color: #475569;
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .inflation-wrapper {
    flex-direction: column;
  }

  .related-tools {
    position: static;
    margin-top: 30px;
  }
}

.inflation-main {
  padding: 70px 0;
}

.layout-wrapper {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* LEFT SIDE */
.left-content {
  flex: 2;
}

/* CALCULATOR CARD */
.calculator-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
  transition: 0.3s ease;
}

.calculator-card:hover {
  box-shadow: 0 25px 80px rgba(79,70,229,0.15);
}

.card-header h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.card-header p {
  color: #64748b;
  margin-bottom: 30px;
}

/* INPUTS */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.input-group input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  transition: 0.2s ease;
}

.input-group input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  outline: none;
}

.error {
  color: red;
  font-size: 12px;
}

/* BUTTON */
.primary-btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  background: linear-gradient(90deg,#4f46e5,#06b6d4);
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(79,70,229,0.3);
}

/* RESULT */
.result-card {
  margin-top: 25px;
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(135deg,#eef2ff,#f0f9ff);
  display: none;
}

.result-card span {
  font-size: 14px;
  color: #64748b;
}

.result-card h2 {
  margin-top: 10px;
  font-size: 28px;
  color: #0f172a;
}

/* RELATED TOOLS */
.related-tools {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.related-tools h3 {
  margin-bottom: 20px;
}

.related-tools ul {
  list-style: none;
}

.related-tools li {
  margin-bottom: 14px;
}

.related-tools a {
  text-decoration: none;
  font-weight: bold;
  color: #334155;
  transition: 0.2s ease;
}

.related-tools a:hover {
  text-decoration: underline;
  color: #4f46e5;
}

/* SEO */
.seo-content {
  margin-top: 50px;
}

.seo-content h2 {
  margin-bottom: 15px;
  margin-top: 35px;
}

.seo-content p {
  margin-bottom: 18px;
  line-height: 1.7;
  color: #475569;
}

/* RESPONSIVE */
@media (max-width: 860px) {

  .layout-wrapper {
    flex-direction: column;
  }

  .desktop-related {
    display: none;
  }

  .mobile-related {
    display: block;
    margin-top: 25px;
  }

  .related-tools {
    position: static;
  }
}

@media (min-width: 861px) {
  .mobile-related {
    display: none;
  }
}   