@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

.hkcal-calculateur-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0;
  color: #000;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  font-family: 'Open Sans', sans-serif;
}

.hkcal-calculateur-container *,
.hkcal-calculateur-container *::before,
.hkcal-calculateur-container *::after {
  box-sizing: border-box;
}

.hkcal-calculateur-form {
  padding: 30px 25px;
  padding-left: 15px !important;
  padding-right: 15px !important;
  background-color: #fff;
}

.hkcal-section {
  background-color: #f8f8f8;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 25px;
  padding-left: 15px !important;
  padding-right: 15px !important;
  margin-bottom: 20px;
}

.hkcal-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hkcal-2x2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hkcal-input-group {
  margin-bottom: 0;
}

.hkcal-input-group--full {
  grid-column: 1 / -1;
}

.hkcal-label {
  display: block;
  margin-bottom: 8px;
  color: #000;
  font-weight: 600;
  font-size: 14px;
}

.hkcal-input,
.hkcal-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  background: #fff;
  color: #000;
}

.hkcal-input {
  text-align: center;
}

.hkcal-input--fluid {
  max-width: 100%;
}

.hkcal-input[readonly] {
  background: #f0f0f0;
}

.hkcal-duration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hkcal-duration-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hkcal-duration-unit {
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.hkcal-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #555;
  font-style: italic;
  line-height: 1.45;
}

.hkcal-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.hkcal-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #000;
}

.hkcal-optional-block {
  padding-top: 18px;
  border-top: 1px solid #ccc;
}

.hkcal-optional-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hkcal-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hkcal-choice-btn {
  flex: 1 1 auto;
  min-width: 6rem;
  padding: 10px 12px;
  border: 2px solid #000;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hkcal-choice-btn:hover {
  background: #f0f0f0;
}

.hkcal-choice-btn.active {
  background: #000;
  color: #fff;
}

.hkcal-calculateur-button {
  width: 100%;
  padding: 14px 18px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hkcal-calculateur-button:hover:not(:disabled) {
  background: #333;
}

.hkcal-calculateur-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hkcal-noscript-notice {
  padding: 12px 15px;
  background: #fff8e6;
  border-bottom: 2px solid #000;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}

.hkcal-progress-container {
  padding: 30px 25px;
  padding-left: 15px !important;
  padding-right: 15px !important;
  background-color: #fff;
}

.hkcal-progress-bar {
  width: 100%;
  height: 4px;
  background-color: #f8f8f8;
  border-radius: 2px;
  overflow: hidden;
}

.hkcal-progress-fill {
  height: 100%;
  background-color: #000;
  width: 0%;
  transition: width 2s linear;
  border-radius: 2px;
}

.hkcal-result-section {
  margin-top: 8px;
  padding: 0 25px 25px;
  padding-left: 15px !important;
  padding-right: 15px !important;
  background: #fff;
}

.hkcal-result-box {
  border: 2px solid #000;
  border-radius: 6px;
  padding: 18px;
  padding-left: 15px !important;
  padding-right: 15px !important;
  margin-bottom: 18px;
  background: #f8f8f8;
}

.hkcal-result-box--primary {
  background: #fff;
  text-align: center;
}

.hkcal-result-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #000;
  margin-bottom: 10px;
}

.hkcal-result-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: #000;
}

.hkcal-result-unit {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
  color: #333;
}

.hkcal-result-subvalue {
  margin-top: 14px;
  color: #444;
  font-size: 15px;
  line-height: 1.45;
}

.hkcal-result-line--muted {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.hkcal-restart-button {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hkcal-restart-button:hover {
  background: #000;
  color: #fff;
}

@media (min-width: 720px) {
  .hkcal-2x2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hkcal-result-value {
    font-size: 38px;
  }

  .hkcal-choice-btn {
    flex: 1 1 calc(50% - 8px);
  }
}
