 /* =========================
   CALORIE CALCULATOR CSS
   ========================= */

.wrap.main {
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #fff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.card h1 {
  text-align: left;
  color: #007bff;
  font-weight: 700;
  margin-bottom: 15px;
}

.card h2 {
  color: #5f687b;
  margin-top: 30px;
  margin-bottom: 12px;
    font-size: 28px;
  font-weight: 700;
}

.card h3 {
  color: #5f687b;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
}

.small-muted,
.tiny {
  color: #666;
}

.controls {
  margin-top: 20px;
}

.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.col {
  flex: 1;
  min-width: 220px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

input,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 15px;
  transition: .2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 3px rgba(0,64,128,.15);
}

.schedule-toggle {
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 10px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 15px;
  cursor: pointer;
}

.radio-option input {
  width: auto;
}

.btn-inline,
button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: .25s;
  margin-top: 8px;
  margin-right: 8px;
}

.btn-inline:hover,
button:hover {
  background: #0056b3;
}

.results-card {
  margin-top: 25px;
  background: #4bf994;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 25px;
}

.result-big {
  font-size: 2rem;
  font-weight: 700;
  color: #004080;
  margin-top: 5px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 18px;
}

.results-grid > div {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 15px;
  border-radius: 10px;
}

.warning {
  background: #fff3cd;
  color: #856404;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ffeeba;
  margin-top: 15px;
}

.hidden {
  display: none !important;
}

.note {
  margin-top: 8px;
  color: #666;
  font-size: .9rem;
}

#extraArea {
  margin-top: 20px;
}

#extraArea table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#extraArea th,
#extraArea td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

#extraArea th {
  background: #004080;
  color: white;
}

.card ul,
.card ol {
  padding-left: 22px;
}

.card li {
  margin-bottom: 8px;
}

.card p {
  line-height: 1.7;
  color: #444;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* Mobile */

@media (max-width: 768px) {

  .card {
    padding: 20px;
  }

  .row {
    flex-direction: column;
    gap: 12px;
  }
 
  .col {
    width: 100%;
  }

  .result-big {
    font-size: 1.6rem;
  }

  .btn-inline,
  button {
    width: 100%;
    margin-right: 0;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
  
}
/* Mobile Footer Fix */
@media (max-width: 768px) {

  .footer .footer-about,
  .footer .footer-links,
  .footer .col-md-12 {
    text-align: center;
  }

  .footer .footer-links ul {
    padding-left: 0;
    list-style: none;
  }

  .footer .footer-links li {
    justify-content: center;
  }

  .footer .social-links {
    justify-content: center !important;
  }

  .footer .d-flex.align-items-center {
    justify-content: center;
  }

  .footer h4 {
    text-align: center;
  }
}