/* ============================================
   LUXERA BIO — Procurement Page
   ============================================ */

.procurement-page {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  overflow-x: hidden;
}

.nav-links a.is-active {
  color: var(--gray-900);
  font-weight: 700;
}

.procurement-hero {
  padding: 124px 0 56px;
  position: relative;
  overflow: hidden;
}

.procurement-hero::before {
  content: "";
  position: absolute;
  right: -220px;
  top: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 111, 232, 0.1) 0%, rgba(59, 111, 232, 0) 70%);
  pointer-events: none;
}

.procurement-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.procurement-hero-content .hero-headline {
  margin-bottom: 16px;
}

.procurement-hero-content .hero-sub {
  margin-bottom: 28px;
  max-width: 460px;
}

.procurement-hero-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid #dfe8f8;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(20, 33, 61, 0.08);
  padding: 22px;
  display: grid;
  gap: 12px;
}

.hero-mini-metric {
  background: #ffffff;
  border: 1px solid #e7edf8;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 0.86rem;
  color: var(--gray-500);
  font-weight: 500;
}

.procurement-builder {
  padding-top: 56px;
  padding-bottom: 60px;
}

.builder-shell {
  background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
  border: 1px solid #dbe5f7;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(17, 32, 73, 0.08);
}

.tier-helper-text {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #5b6b86;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tier-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #d8e4fa;
  background: #eef4ff;
}

.tier-option {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #35548f;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.tier-option:hover {
  color: #21489d;
}

.tier-option.is-active {
  background: #ffffff;
  border-color: #bfd2fb;
  color: #18409c;
  box-shadow: 0 6px 16px rgba(22, 64, 160, 0.16);
}

.builder-table-wrap {
  border: 1px solid #d9e4f6;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.builder-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.builder-table th,
.builder-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5ecf8;
  vertical-align: middle;
}

.builder-table thead th {
  background: #f3f7ff;
  color: #4a628f;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.builder-table tbody tr:last-child td {
  border-bottom: 1px solid #e5ecf8;
}

.builder-table tfoot td {
  border-bottom: 0;
  background: #f8fbff;
  color: var(--gray-900);
  font-weight: 800;
  font-size: 0.92rem;
}

.builder-table th:nth-child(1),
.builder-table td:nth-child(1) {
  width: 38%;
}

.builder-table th:nth-child(2),
.builder-table td:nth-child(2),
.builder-table th:nth-child(4),
.builder-table td:nth-child(4) {
  width: 18%;
}

.builder-table th:nth-child(3),
.builder-table td:nth-child(3) {
  width: 26%;
}

.builder-product {
  font-size: 0.9rem;
  color: var(--gray-900);
  font-weight: 760;
  line-height: 1.3;
}

.builder-product-meta {
  font-size: 0.73rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.js-unit-price,
.js-subtotal {
  color: #1f4cb0;
  font-weight: 700;
  font-size: 0.92rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e2f6;
  border-radius: 999px;
  background: #ffffff;
  min-height: 38px;
  padding: 2px;
  min-width: 114px;
  gap: 2px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d4def3;
  background: #f3f7ff;
  color: #1d4ba9;
  font-size: 1.04rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #e9f0ff;
  border-color: #bfd2fb;
}

.qty-btn:active {
  transform: scale(0.96);
}

.js-qty {
  min-width: 26px;
  text-align: center;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--gray-900);
}

.builder-note {
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.76rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.advantage-card {
  background: #ffffff;
  border: 1px solid #e4eaf4;
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.advantage-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--gray-900);
  font-weight: 700;
}

.advantage-card p {
  font-size: 0.84rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  background: #ffffff;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  background: #edf3ff;
  border: 1px solid #cfddf8;
  color: #2455be;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-card h3 {
  font-size: 1.02rem;
  color: var(--gray-900);
  font-weight: 750;
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.58;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.support-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
}

.final-cta {
  padding-top: 54px;
  padding-bottom: 74px;
}

.final-cta-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff 0%, #eff5ff 100%);
  border: 1px solid #d7e4fa;
  border-radius: 22px;
  padding: 34px 26px;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.12);
}

.final-cta-box h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.final-cta-box p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.58;
  max-width: 560px;
  margin: 0 auto 22px;
}

@media (max-width: 1024px) {
  .procurement-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .builder-table th,
  .builder-table td {
    padding: 12px 10px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .procurement-hero {
    padding: 96px 0 40px;
  }

  .procurement-hero-content .hero-sub {
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .procurement-hero-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .hero-mini-metric {
    padding: 10px 6px;
    min-height: auto;
    border-radius: 12px;
    align-items: center;
    text-align: center;
  }

  .metric-value {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .metric-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .procurement-builder {
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .procurement-builder .container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .builder-shell {
    padding: 14px;
    border-radius: 16px;
  }

  .tier-selector {
    gap: 6px;
    padding: 5px;
    margin-bottom: 10px;
  }

  .tier-helper-text {
    font-size: 0.72rem;
    margin-bottom: 7px;
  }

  .tier-option {
    min-height: 40px;
    font-size: 0.74rem;
  }

  .builder-table-wrap {
    border-radius: 14px;
  }

  .builder-table {
    table-layout: fixed;
  }

  .builder-table th,
  .builder-table td {
    padding: 10px 6px;
  }

  .builder-table thead th {
    font-size: 0.64rem;
    letter-spacing: 0.03em;
  }

  .builder-product {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .builder-product-meta {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .js-unit-price,
  .js-subtotal {
    font-size: 0.74rem;
  }

  .qty-control {
    min-height: 42px;
    min-width: 100%;
    width: 100%;
    max-width: 108px;
    margin: 0 auto;
  }

  .qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.02rem;
  }

  .js-qty {
    min-width: 22px;
    font-size: 0.8rem;
  }

  .builder-note {
    margin-top: 10px;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .builder-table tfoot td {
    font-size: 0.8rem;
  }

  .builder-table th:nth-child(1),
  .builder-table td:nth-child(1) {
    width: 31%;
  }

  .builder-table th:nth-child(2),
  .builder-table td:nth-child(2),
  .builder-table th:nth-child(4),
  .builder-table td:nth-child(4) {
    width: 20%;
  }

  .builder-table th:nth-child(3),
  .builder-table td:nth-child(3) {
    width: 29%;
  }

  .builder-table td,
  .builder-table th {
    word-break: break-word;
  }

  .process-grid,
  .advantages-grid,
  .support-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-card,
  .advantage-card,
  .support-card {
    border-radius: 14px;
  }

  .final-cta {
    padding-top: 36px;
    padding-bottom: 54px;
  }

  .final-cta-box {
    border-radius: 18px;
    padding: 24px 18px;
  }

  .final-cta-box p {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .final-cta-box .btn {
    min-height: 44px;
    padding: 10px 18px;
  }
}

@media (max-width: 480px) {
  .procurement-hero {
    padding-top: 88px;
  }

  .procurement-hero-content .hero-headline {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  .procurement-hero-content .hero-sub {
    font-size: 0.96rem;
  }

  .builder-shell {
    padding: 12px 10px;
  }

  .tier-selector {
    margin-bottom: 8px;
    gap: 5px;
  }

  .tier-helper-text {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .tier-option {
    min-height: 38px;
    font-size: 0.68rem;
  }

  .builder-table th,
  .builder-table td {
    padding: 9px 5px;
  }

  .builder-table thead th {
    font-size: 0.58rem;
  }

  .builder-product {
    font-size: 0.67rem;
  }

  .builder-product-meta {
    font-size: 0.56rem;
  }

  .js-unit-price,
  .js-subtotal,
  .builder-table tfoot td {
    font-size: 0.68rem;
  }

  .qty-control {
    min-height: 40px;
    max-width: 92px;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 0.96rem;
  }

  .js-qty {
    font-size: 0.76rem;
  }

  .builder-note {
    font-size: 0.65rem;
  }

  .process-card {
    padding: 16px 14px;
  }

  .advantage-card,
  .support-card {
    padding: 14px 12px;
  }

  .final-cta-box h2 {
    font-size: 1.5rem;
  }
}

/* ===================== PROCUREMENT INQUIRY MODAL ===================== */

.inquiry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.inquiry-modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.inquiry-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.inquiry-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 480px;
  width: 90%;
  padding: 40px 32px 28px;
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.inquiry-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--gray-700);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.inquiry-modal-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--gray-900);
}

.inquiry-modal-header {
  margin-bottom: 22px;
  text-align: center;
}

.inquiry-modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 10px;
  line-height: 1.3;
}

.inquiry-modal-text {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

.inquiry-modal-loading {
  margin-bottom: 4px;
}

.inquiry-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(59, 111, 232, 0.04);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: rgba(59, 111, 232, 0.1);
  color: var(--blue-600);
}

.progress-step.completed {
  background: rgba(76, 175, 80, 0.08);
  color: #2e7d32;
}

.progress-step-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.inquiry-spinner {
  animation: spin 1.2s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.inquiry-modal-success {
  padding-top: 4px;
}

.inquiry-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inquiry-success-actions .btn {
  width: 100%;
  min-height: 44px;
}

.builder-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.builder-actions .btn {
  min-width: 280px;
}

.builder-actions-hint {
  max-width: 420px;
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.45;
  margin: 0 0 4px;
  text-align: center;
}

.builder-validation {
  display: none;
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #9f1239;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
}

.builder-validation.is-visible {
  display: block;
  animation: builderValidationFadeIn 0.24s ease forwards;
}

@keyframes builderValidationFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.builder-actions .btn.shake {
  animation: inquiryBtnShake 0.36s ease;
}

@keyframes inquiryBtnShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

@media (max-width: 768px) {
  .inquiry-modal-content {
    padding: 30px 20px 22px;
    max-width: 95%;
    border-radius: 16px;
  }

  .inquiry-modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .inquiry-modal-header h2 {
    font-size: 18px;
  }

  .inquiry-modal-text {
    font-size: 12px;
  }

  .progress-step {
    padding: 10px 12px;
    font-size: 12px;
    gap: 10px;
  }

  .progress-step-icon {
    width: 18px;
    height: 18px;
  }

  .builder-actions .btn {
    min-width: 100%;
    max-width: 100%;
  }

  .builder-actions {
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .builder-actions-hint {
    max-width: 100%;
    font-size: 10.5px;
    line-height: 1.4;
    margin: 0 0 2px;
  }

  .builder-validation {
    max-width: 100%;
    font-size: 10.5px;
    line-height: 1.35;
    padding: 9px 10px;
  }
}

