/* ============================================================
   HYMER Norm Selection Modal
   Figma: OAlSfyImasAliU4v9IN3Ci / Node 2:4765
   ============================================================ */

/* ----------------------------------------------------------
   Overlay / Backdrop
   ---------------------------------------------------------- */
.hymer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: rgba(65, 70, 75, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hymer-modal-overlay[hidden] {
  display: none;
}

/* Fade-in Animation */
.hymer-modal-overlay.is-visible {
  animation: modalFadeIn 0.2s ease forwards;
}

@keyframes modalFadeIn {
  from {
	opacity: 0;
  }
  to {
	opacity: 1;
  }
}

.hymer-modal-overlay.is-closing {
  animation: modalFadeOut 0.2s ease forwards;
}

@keyframes modalFadeOut {
  from {
	opacity: 1;
  }
  to {
	opacity: 0;
  }
}

/* ----------------------------------------------------------
   Modal Box
   ---------------------------------------------------------- */
.hymer-modal {
  position: relative;
  background-color: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
  padding: 48px;
  width: 100%;
  max-width: 1204px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  animation: modalSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalSlideIn {
  from {
	opacity: 0;
	transform: translateY(40px);
  }
  to {
	opacity: 1;
	transform: translateY(0);
  }
}

/* ----------------------------------------------------------
   Close Button
   ---------------------------------------------------------- */
.hymer-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.hymer-modal__close:hover {
  opacity: 0.6;
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.hymer-modal__header {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
  width: 100%;
}

.hymer-modal__headline {
  font-family: "Replica Pro Web", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.576px;
  color: #e30613;
  margin: 0;
}

.hymer-modal__subline {
  font-family: "Replica Pro Web", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.192px;
  color: #191919;
  margin: 0;
}

/* ----------------------------------------------------------
   Cards Grid
   ---------------------------------------------------------- */
.hymer-modal__cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

/* ----------------------------------------------------------
   Individual Card
   ---------------------------------------------------------- */
.hymer-modal__card {
  background: #ffffff;
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  position: relative;
  /* Minimum height according to Figma (440px), grows as needed */
  min-height: 440px;
}

/* Card Header: Norm Code + Title */
.hymer-modal__card-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.hymer-modal__card-norm {
  font-family: "Replica Pro Web", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.384px;
  color: #e30613;
  margin: 0;
}

.hymer-modal__card-title {
  font-family: "Replica Pro Web", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.384px;
  color: #191919;
  margin: 0;
}

/* Card Body: Specification + Description */
.hymer-modal__card-body {
  border-top: 1px solid #ced2d5;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 0 auto;
}

/* Specification Line (Icon + Text) */
.hymer-modal__card-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hymer-modal__spec-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.hymer-modal__card-spec span {
  font-family: "Replica Pro Web", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.384px;
  color: #191919;
  white-space: nowrap;
}

/* Description Text */
.hymer-modal__card-description {
  font-family: "Replica Pro Web", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.384px;
  color: #191919;
  margin: 0;
}

.hymer-modal__card-description strong {
  font-weight: 700;
  color: #191919;
}

/* Card Footer: Button */
.hymer-modal__card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 8px;
  margin-top: auto;
}

.hymer-modal__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 28px;
  min-width: 184px;
  background-color: #e30613;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: "Replica Pro Web", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.384px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hymer-modal__card-btn:hover {
  background-color: #c00510;
}

.hymer-modal__card-btn:focus-visible {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hymer-modal__cards {
	flex-direction: column;
  }

  .hymer-modal__card {
	min-height: auto;
  }

  .hymer-modal {
	padding: 32px 24px;
  }

  .hymer-modal__headline,
  .hymer-modal__subline {
	font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hymer-modal {
	padding: 24px 16px;
  }
}
