/* ============================================================
   ebg.css
   Custom styles for Electronic Bank Guarantee (eBG) Solution Page
   Extends: bootstrap.css, style.css, common.css, config.css
   ============================================================ */

/* --- Styled Placeholders --- */
.ebg-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(246, 99, 32, 0.02);
  border: 1.5px dashed var(--layoutBorderColor);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.ebg-image-placeholder:hover {
  border-color: var(--secondaryMastercolor);
  background: rgba(246, 99, 32, 0.04);
}
.ebg-image-placeholder span {
  font-size: 12px;
  font-weight: 600;
  color: var(--primaryTextColor);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Custom Border Grid (reused for Timeline & Features) --- */
.ebg-border-grid {
  border-top: 1px solid var(--layoutBorderColor);
  border-left: 1px solid var(--layoutBorderColor);
}
.ebg-border-cell {
  position: relative;
  padding: 40px 32px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
  background: #ffffff;
  transition: background 0.3s ease;
}
.ebg-border-cell:hover {
  background: rgba(246, 99, 32, 0.02);
}

/* --- Timeline Specs --- */
.ebg-timeline-num {
  font-size: 48px;
  font-weight: 800;
  color: rgba(246, 99, 32, 0.08);
  line-height: 1;
  font-family: var(--font-primary);
  transition: color 0.3s ease;
}
.ebg-border-cell:hover .ebg-timeline-num {
  color: rgba(246, 99, 32, 0.18);
}

/* --- Feature Specs --- */
.ebg-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(246, 99, 32, 0.06);
  border: 1px solid rgba(246, 99, 32, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--secondaryMastercolor);
  transition: all 0.3s ease;
}
.ebg-border-cell:hover .ebg-feature-icon {
  background: rgba(246, 99, 32, 0.12);
  border-color: rgba(246, 99, 32, 0.35);
  transform: scale(1.05);
}

/* --- FAQ Accordion --- */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover, .faq-item.active {
  border-color: var(--secondaryMastercolor);
}
.faq-trigger {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  outline: none;
  cursor: pointer;
}
.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--mastercolor);
  margin: 0;
}
.faq-icon-wrapper {
  color: var(--secondaryMastercolor);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}
.faq-answer {
  padding: 0 28px 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--primaryTextColor);
  margin: 0;
}

/* --- Form Frame --- */
.ctf-frame-card {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.03);
}
.ctf-frame-header {
  padding: 14px 20px;
  background: var(--secondaryMastercolorLite);
}
.ctf-frame-dot {
  width: 9px;
  height: 9px;
}
.ctf-dot-red { background: #ff5f56; }
.ctf-dot-yellow { background: #ffbd2e; }
.ctf-dot-green { background: #27c93f; }

/* --- eBG Hero Dashboard Console --- */
.ebg-console {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}
.ebg-console:hover {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 20px 40px rgba(246, 99, 32, 0.05);
}

.ebg-step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--layoutBorderColor);
  background: #f8fafc;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
.ebg-step-indicator.active {
  border-color: var(--secondaryMastercolor);
  background: rgba(246, 99, 32, 0.03);
}
.ebg-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.ebg-step-indicator.active .ebg-step-icon {
  background: var(--secondaryMastercolor);
}
.ebg-step-info {
  flex-grow: 1;
}
.ebg-step-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--mastercolor);
}
.ebg-step-desc {
  font-size: 10px;
  color: #64748b;
}

/* Mock eBG Document Frame */
.mock-ebg-document {
  background: #fff;
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  position: relative;
  font-family: var(--font-primary);
}

.ebg-doc-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
  text-align: center;
}
.ebg-stamp-seal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 2px dashed #e11d48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e11d48;
  font-size: 9px;
  font-weight: 800;
  transform: rotate(-15deg);
  text-transform: uppercase;
  background: rgba(225, 29, 72, 0.02);
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.ebg-stamp-seal.stamped {
  opacity: 1;
}

.ebg-doc-body {
  font-size: 11px;
  color: #334155;
  line-height: 1.6;
}
.ebg-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}
.ebg-meta-key {
  font-weight: 600;
  color: #64748b;
}
.ebg-meta-val {
  color: #1e293b;
}

/* Security verification checkmarks */
.ebg-sec-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.3s ease;
}
.ebg-sec-check.verified {
  color: #10b981;
}

/* Industry Badge grids */
.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mastercolor);
  transition: all 0.3s ease;
}
.industry-badge i {
  color: var(--secondaryMastercolor);
  font-size: 15px;
}
.industry-badge:hover {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 4px 12px rgba(246, 99, 32, 0.05);
  transform: translateY(-1px);
}

/* Trust Card settings */
.trust-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.trust-card:hover {
  border-color: var(--secondaryMastercolor) !important;
  box-shadow: 0 12px 24px rgba(246, 99, 32, 0.04) !important;
  transform: translateY(-2px);
}
