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

.vma-calc-container {
  margin: 20px auto;
  max-width: 900px;
  padding: 0;
  color: #000;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
}

.vma-calc-form {
  padding: 30px 25px;
  background-color: #fff;
}

.vma-calc-section {
  padding-left: 10px !important;
  padding-right: 10px !important;
  background-color: #f8f8f8;
  border: 1px solid #000;
  border-radius: 3px;
  padding: 25px;
  margin-bottom: 25px;
}

.vma-calc-section-method .vma-calc-label,
.vma-calc-section-inputs .vma-calc-label {
  display: block;
  margin-bottom: 12px;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.vma-calc-method-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.vma-calc-method-btn {
  padding: 10px 14px;
  border: 2px solid #000;
  color: #000;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vma-calc-method-btn:hover {
  background: #eee;
}

.vma-calc-method-btn.active {
  background: #000;
  color: #fff !important;
}

.vma-calc-method-other {
  font-size: 12px;
}

.vma-calc-panel {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.vma-calc-input-group {
  margin-bottom: 20px;
}

.vma-calc-input-group:last-child {
  margin-bottom: 0;
}

.vma-calc-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4px;
}

.vma-calc-input {
  width: 100px;
  padding: 12px 15px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 18px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.vma-calc-input.vma-calc-time {
  width: 60px;
}

.vma-calc-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(78, 157, 216, 0.2);
}

.vma-calc-select {
  padding: 10px 14px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  min-width: 140px;
}

.vma-calc-sep {
  font-weight: 700;
  color: #000;
}

.vma-calc-unit {
  color: #777;
  font-size: 15px;
  font-weight: 600;
  min-width: 50px;
}

.vma-calc-help {
  font-size: 12px;
  color: #555;
  text-align: center !important;
  margin: 6px 0 0 0;
  font-style: italic;
}

.vma-calc-button {
  background-color: #000;
  border: 1px solid #000;
  color: #fff !important;
  border-radius: 6px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto;
}

.vma-calc-button:hover {
  background-color: #fff;
  color: #000 !important;
  border: 1px solid #000;
}

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

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

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

.vma-calc-result-section {
  padding: 0 !important;
  border-top: 2px solid #eee;
  background-color: #fff;
}

.vma-calc-result-main {
  text-align: center;
  margin-bottom: 28px;
  padding: 20px;
  padding-left: 20px !important;
  padding-right: 20px !important;
  background: #f8f8f8;
  border: 1px solid #000;
  border-radius: 6px;
}

.vma-calc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 10px;
}

.vma-calc-result-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center !important;
}

.vma-calc-result-vma {
  font-size: 28px;
  font-weight: 700;
  color: #000;
}

.vma-calc-result-allure {
  font-size: 18px;
  color: #333;
  margin-top: 4px;
}

.vma-calc-section.vma-calc-allures {
  background: none !important;
  border: none !important;
}

.vma-calc-allures,
.vma-calc-seances {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.vma-calc-subtitle {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: 600;
}

.vma-calc-allures-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.vma-calc-allure-card {
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.vma-calc-allure-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.vma-calc-allure-card span {
  font-size: 13px;
  color: #555;
}

.vma-calc-toggle-detail {
  display: block;
  margin: 0 0 16px 0;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #666 !important;
  cursor: pointer;
  width: 100%;
}

.vma-calc-toggle-detail:hover {
  background: #f5f5f5;
  color: #333 !important;
  border-color: #999;
}

.vma-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vma-calc-table th,
.vma-calc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.vma-calc-table th {
  font-weight: 600;
  background: #f5f5f5;
}

.vma-calc-table td:nth-child(1),
.vma-calc-table td:nth-child(2),
.vma-calc-table td:nth-child(3) {
  text-align: center;
}

.vma-calc-seances-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.vma-calc-seances-list li {
  margin-bottom: 8px;
}

.vma-calc-warning {
  margin: 16px 0;
  padding: 14px 20px;
  padding-left: 20px !important;
  padding-right: 20px !important;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  font-size: 14px;
  color: #856404;
}

@media (max-width: 600px) {
  .vma-calc-form,
  .vma-calc-progress-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .vma-calc-method-btns {
    flex-direction: column;
  }
  .vma-calc-method-btn {
    width: 100%;
  }
  .vma-calc-allures-simple {
    grid-template-columns: 1fr;
  }
}
