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

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

body {
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  color: #1a1a1a;
  line-height: 1.6;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.cpm-calculator {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.top {
  background: #1a1a1a;
  color: #ffffff;
  padding: 60px 50px;
  text-align: center;
}

.top h2 {
  font-family: 'Lora', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.top p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 48px;
}

.error {
  color: #ff6b6b;
  font-weight: 600;
  min-height: 28px;
  margin-bottom: 20px;
}

/* Perfect 3-column grid with smaller labels */
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: end; /* This perfectly aligns the input fields */
}

.group {
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 0.78rem;           /* Much smaller */
  font-weight: 700;
  color: #f2bd44;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  line-height: 1.2;
  text-align: left;
}

input {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: 3px solid #444;
  border-radius: 14px;
  background: #ffffff;
  color: #1a1a1a;
  transition: border 0.3s;
}

input::placeholder {
  color: #999;
  font-weight: 400;
}

input:focus {
  outline: none;
  border-color: #df6236;
}

.result {
  background: #ffffff;
  padding: 50px 40px;
  text-align: center;
  border-top: 1px solid #eee;
}

.calculate-btn,
.reset-btn {
  background: #df6236;
  color: white;
  border: none;
  padding: 16px 48px;
  margin: 0 16px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.calculate-btn:hover,
.reset-btn:hover {
  background: #c94e27;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(201, 78, 39, 0.3);
}

/* Footer - unchanged from previous */
.site-footer { /* keep your existing footer styles */ }

/* Mobile */
@media (max-width: 768px) {
  .top { padding: 50px 30px; }
  .top h2 { font-size: 2.2rem; }
  .inputs-grid { 
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .calculate-btn,
  .reset-btn { 
    display: block; 
    width: 100%; 
    margin: 12px 0; 
  }
}


/* Footer – Fixed & Beautiful */
.site-footer {
  background: #1a1a1a;
  color: #cccccc;
  margin-top: 120px;
  padding: 80px 20px 60px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 32px;
}

.footer-links a {
  color: #f2bd44;
  margin: 0 24px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #df6236;
}

.footer-text {
  font-size: 0.95rem;
  margin: 28px 0;
  color: #aaaaaa;
}

.back-to-site {
  display: inline-block;
  background: #df6236;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  margin: 32px 0 40px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(223, 98, 54, 0.3);
}

.back-to-site:hover {
  background: #c94e27;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(201, 78, 39, 0.4);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #888888;
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid #333333;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-links a {
    display: block;
    margin: 14px 0;
    font-size: 1.05rem;
  }
  .back-to-site {
    width: 90%;
    max-width: 360px;
  }
}