/* ═══════════════════════════════════════════
   Behajtási Hozzájárulás Kalkulátor — CSS
   Kerepes Város Önkormányzata
   ═══════════════════════════════════════════ */

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

/* ─── Reset & Base ─── */
.bhk-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  color: #1a1a2e;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bhk-wrap *,
.bhk-wrap *::before,
.bhk-wrap *::after {
  box-sizing: border-box;
}

/* ─── Disclaimer ─── */
.bhk-disclaimer {
  background: linear-gradient(135deg, #fff8e1, #fff3c4);
  border: 1px solid #f6e05e;
  border-left: 4px solid #d69e2e;
  color: #744210;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  text-align: left;
}

.bhk-disclaimer strong {
  color: #975a16;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ─── Header ─── */
.bhk-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #edf2f7;
}

.bhk-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.bhk-header p {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

.bhk-intro-text {
  text-align: left;
  margin-top: 12px;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
}

.bhk-intro-text p {
  margin-bottom: 8px;
  text-align: left;
}

/* ─── Sections ─── */
.bhk-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.bhk-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.bhk-section-header {
  background: #fcb900;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  margin: 0;
  user-select: none;
}

.bhk-section-body {
  padding: 20px;
}

/* ─── Grid ─── */
.bhk-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.bhk-grid:last-child {
  margin-bottom: 0;
}

.bhk-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bhk-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.bhk-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .bhk-grid-2,
  .bhk-grid-3,
  .bhk-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ─── Fields ─── */
.bhk-field {
  display: flex;
  flex-direction: column;
}

.bhk-field label {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  margin-bottom: 5px;
  color: #4a5568;
  letter-spacing: 0.01em;
}

.bhk-field label .bhk-required-star {
  color: #e53e3e;
  margin-left: 2px;
}

.bhk-field input[type="text"],
.bhk-field input[type="number"],
.bhk-field input[type="email"],
.bhk-field input[type="tel"],
.bhk-field input[type="date"],
.bhk-field input[type="file"],
.bhk-field select,
.bhk-field textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a1a2e;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.bhk-field input[type="file"] {
  padding: 6px;
  background: #f7fafc;
  cursor: pointer;
}

.bhk-field input[type="file"]::file-selector-button {
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  margin-right: 12px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}

.bhk-field input[type="file"]::file-selector-button:hover {
  background: #e2e8f0;
}

.bhk-field input:focus,
.bhk-field select:focus,
.bhk-field textarea:focus {
  border-color: #fcb900;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.bhk-field input:disabled,
.bhk-field select:disabled {
  background: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}

.bhk-field input.bhk-error-field,
.bhk-field select.bhk-error-field {
  border-color: #e53e3e;
  background: #fff5f5;
}

.bhk-field textarea {
  resize: vertical;
  min-height: 80px;
}

.bhk-field .bhk-help-text,
.bhk-help-text {
  font-size: 13px;
  font-family: inherit;
  color: #a0aec0;
  margin-top: 4px;
  line-height: 1.6;
  text-align: justify;
  width: 100%;
}

/* ─── Checkbox ─── */
.bhk-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
}

.bhk-check input[type="checkbox"],
.bhk-check input[type="radio"],
.bhk-field input[type="radio"] {
  margin-top: 3px;
  accent-color: #000;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bhk-check label {
  font-size: 13px;
  font-weight: 500;
  color: #2d3748;
  cursor: pointer;
  line-height: 1.6;
  text-align: justify;
  display: block;
  width: 100%;
}

/* ─── Fixed Text Box ─── */
.bhk-info-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #fcb900;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  color: #4a5568;
  margin: 12px 0;
  text-align: justify;
  width: 100%;
}

.bhk-info-box.bhk-info-green {
  border-left-color: #38a169;
  background: #f0fff4;
  color: #276749;
}

.bhk-info-box.bhk-info-orange {
  border-left-color: #dd6b20;
  background: #fffaf0;
  color: #7b341e;
}

/* ─── Alert / Warning Popup ─── */
.bhk-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bhk-fadeIn 0.2s ease;
}

.bhk-alert-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.bhk-alert-box .bhk-alert-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.bhk-alert-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a1a2e;
}

.bhk-alert-box p {
  font-size: 14px;
  color: #718096;
  margin: 0 0 20px;
  line-height: 1.6;
}

.bhk-alert-box .bhk-btn {
  min-width: 120px;
}

@keyframes bhk-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Buttons ─── */
.bhk-btn {
  appearance: none;
  border: 1.5px solid #e2e8f0;
  background: #f7fafc;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bhk-btn:hover {
  background: #edf2f7;
}

.bhk-btn-primary {
  background: #fcb900;
  color: #fff;
  border-color: #fcb900;
}

.bhk-btn-primary:hover {
  background: #fcb600;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

.bhk-btn-success {
  background: linear-gradient(135deg, #38a169, #2f855a);
  color: #fff;
  border-color: #38a169;
  padding: 12px 32px;
  font-size: 15px;
}

.bhk-btn-success:hover {
  background: linear-gradient(135deg, #2f855a, #276749);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.bhk-btn-success:disabled {
  background: #cbd5e0;
  border-color: #cbd5e0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bhk-btn-ghost {
  background: transparent;
  border-color: #e53e3e;
  color: #e53e3e;
}

.bhk-btn-ghost:hover {
  background: #fff5f5;
}

.bhk-btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

/* ─── Vehicle Card ─── */
.bhk-vehicle-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fafcff;
  position: relative;
  transition: border-color 0.2s;
}

.bhk-vehicle-card:hover {
  border-color: #cbd5e0;
}

.bhk-vehicle-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bhk-vehicle-title {
  font-weight: 700;
  font-size: 14px;
  color: #2d3748;
}

.bhk-vehicle-fee {
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
  background: #fff5f5;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ─── Pótkocsi toggle ─── */
.bhk-trailer-fields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

/* ─── Result / Calculated Price ─── */
.bhk-result-box {
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
  text-align: center;
}

.bhk-result-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.bhk-result-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f6e05e, #ed8936);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bhk-result-breakdown {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.bhk-result-breakdown .bhk-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.85);
}

.bhk-result-breakdown .bhk-breakdown-row.bhk-breakdown-total {
  font-weight: 700;
  font-size: 15px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.bhk-result-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
}

.bhk-result-message.bhk-free {
  background: rgba(56, 161, 105, 0.2);
  color: #9ae6b4;
}

.bhk-result-message.bhk-custom {
  background: rgba(237, 137, 54, 0.2);
  color: #fbd38d;
}

.bhk-result-missing {
  color: #fc8181;
  font-size: 13px;
  margin-top: 10px;
  font-weight: 500;
}

/* ─── Urgency Badge ─── */
.bhk-urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bhk-urgency-badge.bhk-urgent {
  background: #fff5f5;
  color: #c53030;
  border: 1.5px solid #feb2b2;
}

.bhk-urgency-badge.bhk-normal {
  background: #f0fff4;
  color: #276749;
  border: 1.5px solid #9ae6b4;
}

/* ─── Submit Area ─── */
.bhk-submit-area {
  text-align: center;
  padding: 24px 20px;
}

.bhk-submit-area .bhk-bank-info {
  margin-top: 16px;
  font-size: 13px;
  font-family: inherit;
  color: #718096;
  line-height: 1.6;
  text-align: justify;
}

.bhk-submit-area .bhk-bank-info strong {
  color: #2d3748;
}

/* ─── Divider ─── */
.bhk-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 16px 0;
}

/* ─── Subsection title ─── */
.bhk-subsection-title {
  font-size: 13px;
  font-weight: 700;
  color: #2d3748;
  margin: 16px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}

/* ─── Hide utility ─── */
.bhk-hide {
  display: none !important;
}

/* ─── Conditional field animation ─── */
.bhk-conditional {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 2000px;
  opacity: 1;
}

.bhk-conditional.bhk-collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

/* ─── Validation error ─── */
.bhk-validation-msg {
  color: #e53e3e;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 3px;
}

/* ─── Separator between address types ─── */
.bhk-address-block {
  padding: 14px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: #fafcff;
  margin: 10px 0;
}

.bhk-address-block-title {
  font-size: 12px;
  font-weight: 700;
  color: #fcb900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ─── Add vehicle button area ─── */
.bhk-add-vehicle-area {
  text-align: center;
  padding: 10px 0;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .bhk-section-body {
    padding: 14px;
  }

  .bhk-result-value {
    font-size: 28px;
  }

  .bhk-header h2 {
    font-size: 20px;
  }

  .bhk-vehicle-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
