/**
 * AICO|Facility - FM Értékelési Rendszer
 * Custom CSS stílusok - MINTA HTML ALAPJÁN
 * 
 * @package AICO|Facility
 * @version 3.0 - Minta HTML stílusok
 */

/* ═══════════════════════════════════════════════════════════
   VÁLTOZÓK - Minta HTML színei és betűtípusai
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Minta HTML betűtípusai */
  --fm-font-default: 'Open Sans', sans-serif;
  --fm-font-heading: 'Montserrat', sans-serif;
  
  /* Minta HTML színei */
  --fm-primary: #1a73c8;
  --fm-primary-dark: #1560aa;
  --fm-primary-light: #2e8de8;
  --fm-green: #7BC53F;
  --fm-green-dark: #6aad34;
  --fm-green-light: #8fd44f;
  --fm-dark-text: #1a2c4e;
  --fm-mid-text: #3d5278;
  --fm-muted-text: #6b82a0;
  --fm-bg: #f0f4fa;
  --fm-card-bg: #ffffff;
  --fm-card-border: #dde5f0;
  --fm-section-bg: #e8eef8;
  --fm-radius: 12px;
  --fm-shadow: 0 2px 16px rgba(26,44,78,0.10);
  --fm-shadow-md: 0 4px 24px rgba(26,44,78,0.14);
}

/* ═══════════════════════════════════════════════════════════
   MODAL HERO SZEKCIÓ
   ═══════════════════════════════════════════════════════════ */
.fm-hero-modal {
  background: linear-gradient(135deg, #e8eef8 0%, #dce8f8 60%, #cfe0f5 100%);
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.fm-hero-modal::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(76,175,80,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fm-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,175,80,0.12);
  border: 1px solid rgba(76,175,80,0.3);
  color: var(--fm-green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.fm-hero-title-modal {
  font-family: var(--fm-font-heading);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fm-dark-text);
  margin-bottom: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.fm-hero-description-modal {
  font-family: var(--fm-font-default);
  font-size: 17px;
  color: var(--fm-mid-text);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.fm-hero-stats-modal {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.fm-stat-item {
  text-align: center;
}

.fm-stat-item strong {
  display: block;
  font-family: var(--fm-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--fm-primary);
}

.fm-stat-item span {
  font-size: 13px;
  color: var(--fm-muted-text);
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
.fm-progress-wrap-modal {
  max-width: 700px;
  margin: 0 auto;
}

.fm-progress-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.fm-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.fm-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--fm-card-border);
  z-index: 0;
  transition: background 0.4s;
}

.fm-step-item.done:not(:last-child)::after,
.fm-step-item.active:not(:last-child)::after {
  background: var(--fm-green);
}

.fm-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fm-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm-font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--fm-muted-text);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.fm-step-item.active .fm-step-circle {
  background: var(--fm-green);
  border-color: var(--fm-green);
  color: #fff;
  box-shadow: 0 0 16px rgba(76,175,80,0.35);
}

.fm-step-item.done .fm-step-circle {
  background: var(--fm-primary);
  border-color: var(--fm-primary);
  color: #fff;
}

.fm-step-label {
  font-size: 11px;
  color: var(--fm-muted-text);
  font-weight: 600;
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
}

.fm-step-item.active .fm-step-label {
  color: var(--fm-green-dark);
}

.fm-step-item.done .fm-step-label {
  color: var(--fm-primary);
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */
.fm-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 40px;
}

/* ═══════════════════════════════════════════════════════════
   FORM CARD
   ═══════════════════════════════════════════════════════════ */
.fm-form-card-modal {
  background: var(--fm-card-bg);
  border: 1px solid var(--fm-card-border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: var(--fm-shadow);
  position: relative;
  overflow: hidden;
}

.fm-form-card-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fm-green), var(--fm-primary));
}

/* ═══════════════════════════════════════════════════════════
   BLOCK HEADER
   ═══════════════════════════════════════════════════════════ */
.fm-block-header {
  margin-bottom: 32px;
}

.fm-block-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.25);
  color: var(--fm-green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fm-block-header h3 {
  font-family: var(--fm-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--fm-dark-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.fm-block-header p {
  color: var(--fm-muted-text);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   QUESTION SECTIONS
   ═══════════════════════════════════════════════════════════ */
.fm-q-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--fm-card-border);
}

.fm-q-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fm-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--fm-primary);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fm-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: var(--fm-green);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   QUESTIONS
   ═══════════════════════════════════════════════════════════ */
.fm-question {
  margin-bottom: 22px;
}

.fm-question:last-child {
  margin-bottom: 0;
}

.fm-question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--fm-dark-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   RADIO OPTIONS
   ═══════════════════════════════════════════════════════════ */
.fm-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fm-option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 16px;
  border: 1.5px solid var(--fm-card-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
  background: #f7faff;
  user-select: none;
}

.fm-option-label:hover {
  border-color: var(--fm-green);
  background: rgba(76,175,80,0.05);
}

.fm-option-label input[type="radio"] {
  display: none;
}

.fm-option-label.selected {
  border-color: var(--fm-green);
  background: rgba(76,175,80,0.08);
}

.fm-option-label.selected .fm-radio-custom {
  background: var(--fm-green);
  border-color: var(--fm-green);
}

.fm-option-label.selected .fm-radio-custom::after {
  opacity: 1;
}

.fm-radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--fm-card-border);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.18s;
}

.fm-radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.18s;
}

.fm-option-text {
  font-size: 14px;
  color: var(--fm-mid-text);
  line-height: 1.4;
  transition: color 0.18s;
}

.fm-option-label.selected .fm-option-text {
  color: var(--fm-dark-text);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   VALIDATION BAR
   ═══════════════════════════════════════════════════════════ */
.fm-validation-bar {
  display: none;
  align-items: center;
  gap: 10px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 13px;
  color: #856404;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.fm-btn-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.fm-btn-wrap .btn {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.fm-btn-wrap .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(123,197,63,0.3);
}

/* ═══════════════════════════════════════════════════════════
   MODAL SPECIFIKUS STÍLUSOK
   ═══════════════════════════════════════════════════════════ */
#fmAnalysisModal .modal-header {
  border-bottom: 1px solid var(--fm-card-border);
  padding: 16px 20px;
}

#fmAnalysisModal .modal-title {
  font-family: var(--fm-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fm-dark-text);
}

#fmAnalysisModal .modal-body {
  padding: 0;
  background: var(--fm-bg);
}

/* ═══════════════════════════════════════════════════════════
   ANIMÁCIÓK
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fm-form-card-modal,
.fm-question {
  animation: fadeIn 0.3s ease-out;
}

#fmModalBody {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fm-hero-modal {
    padding: 30px 16px 24px;
  }

  .fm-form-card-modal {
    padding: 24px 20px;
  }

  .fm-hero-stats-modal {
    gap: 32px;
  }

  .fm-progress-steps {
    flex-wrap: wrap;
  }

  .fm-step-label {
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .fm-hero-title-modal {
    font-size: 22px;
  }

  .fm-hero-description-modal {
    font-size: 15px;
  }

  .fm-form-card-modal {
    padding: 20px 16px;
  }

  .fm-option-label {
    padding: 10px 12px;
  }

  .fm-option-text {
    font-size: 13px;
  }

  .fm-block-header h3 {
    font-size: 20px;
  }

  .fm-section-title {
    font-size: 12px;
  }
}
