/* ==========================================================================
   REQUEST QUOTE — CSS P4
   Aliniat cu mockup-P4-request-quote.html
   ========================================================================== */

/* ==========================================================================
   OVERRIDES — components.css defineste aceste clase pentru uz admin
   (panel-uri collapse/expand). Pe pagina publica request-quote toate
   valorile trebuie resetate la specificatiile mockup-P4.
   ========================================================================== */

/* .form-card: components.css → display:none, border-radius:var(--r2), shadow-sm */
.page-bg .form-card {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: var(--r3, 20px);
  box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06));
  margin-bottom: 0;
}

/* .form-card-head: components.css → display:flex justify-content:space-between, bg:var(--bg) */
.page-bg .form-card-head {
  display: block;
  padding: 24px 28px 20px;
  background: linear-gradient(to bottom, rgba(175,129,92,.04), transparent);
  border-bottom: 1px solid var(--border);
}

/* .form-card-title: components.css → font-size:.95rem, no flex */
.page-bg .form-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -.03em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .form-card-sub: components.css → font-size:.72rem, color:var(--text-3) */
.page-bg .form-card-sub {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* .form-actions: components.css → background:var(--bg), border-top, padding, justify-content:flex-end */
.page-bg .form-actions {
  background: transparent;
  border-top: none;
  padding: 0;
  justify-content: flex-start;
}



/* .form-divider: mockup specifica margin:20px 0 */
.page-bg .form-divider { margin: 20px 0; }

/* Page background */
.page-bg {
  min-height: calc(100vh - 56px);
  padding: 36px 16px 72px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(175,129,92,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(59,130,246,.04) 0%, transparent 45%),
    var(--bg);
}

/* Coloana centrată */
.form-col { max-width: 620px; margin: 0 auto; }

/* Breadcrumb inline */
.quote-breadcrumb {
  font-size: .78rem; color: var(--text-3);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.quote-breadcrumb a { color: var(--text-3); transition: color .12s; }
.quote-breadcrumb a:hover { color: var(--text-1); }
.quote-breadcrumb-sep { color: var(--text-4); }
.quote-breadcrumb strong { color: var(--text-2); font-weight: 600; }

/* Form card */
.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r3, 20px);
  box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06));
  overflow: hidden;
}
.form-card-head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(175,129,92,.04), transparent);
}
.form-card-title {
  font-size: 1.25rem; font-weight: 800; color: var(--text-1);
  letter-spacing: -.03em; margin-bottom: 5px;
  display: flex; align-items: center; gap: 10px;
}
.form-card-title svg {
  width: 20px; height: 20px; stroke: var(--brand); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.form-card-sub { font-size: .84rem; color: var(--text-2); line-height: 1.6; }
.form-card-body { padding: 24px 28px 28px; }

/* Config preview block (starea cu configurație) */
.cfg-preview {
  background: linear-gradient(135deg, rgba(175,129,92,.08), rgba(175,129,92,.03));
  border: 1.5px solid rgba(175,129,92,.25);
  border-radius: var(--r2);
  padding: 14px 16px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.cfg-preview-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-light); border: 1px solid rgba(175,129,92,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; overflow: hidden;
}
.cfg-preview-ico img { width: 100%; height: 100%; object-fit: contain; }
.cfg-preview-info { flex: 1; min-width: 0; }
.cfg-preview-lbl {
  font-size: .62rem; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px;
}
.cfg-preview-name { font-size: .9rem; font-weight: 800; color: var(--text-1); margin-bottom: 1px; }
.cfg-preview-prod { font-size: .76rem; color: var(--text-2); }
.cfg-preview-link {
  font-size: .72rem; color: var(--brand); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  text-decoration: none; transition: color .12s;
}
.cfg-preview-link svg {
  width: 11px; height: 11px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cfg-preview-link:hover { color: var(--brand-h); }

/* Form sections */
.form-section-title {
  font-size: .68rem; font-weight: 800; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 0;
}
.form-divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Label extras */
.opt-tag {
  font-size: .62rem; font-weight: 500; color: var(--text-4);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px;
}
.autofill-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .6rem; font-weight: 700; color: var(--green);
  background: var(--green-bg); border: 1px solid #a7f3d0;
  border-radius: 5px; padding: 1px 6px;
}

/* Notice email */
.notice-email {
  background: var(--amber-bg); border: 1px solid #fde68a;
  border-radius: var(--r); padding: 12px 14px;
  font-size: .79rem; color: #92400e;
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 20px;
}
.notice-email svg {
  width: 14px; height: 14px; stroke: var(--amber); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; margin-top: 1px;
}

/* Error notice */
.notice-error {
  background: var(--red-bg); border: 1px solid #fca5a5;
  border-radius: var(--r); padding: 11px 14px;
  font-size: .8rem; color: #991b1b;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 16px;
}
.notice-error svg {
  width: 15px; height: 15px; stroke: var(--red); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

/* Actions */
.form-actions { display: flex; gap: 10px; align-items: center; }
.btn-submit {
  flex: 1; height: 46px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-size: .9rem; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 3px 12px rgba(175,129,92,.4); transition: all .13s;
  text-decoration: none;
}
.btn-submit:hover { background: var(--brand-h); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(175,129,92,.5); }
.btn-submit svg {
  width: 16px; height: 16px; stroke: #fff; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-cancel {
  height: 46px; padding: 0 18px; border-radius: 10px;
  background: transparent; color: var(--text-3);
  border: 1.5px solid var(--border);
  font-size: .82rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all .12s; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.btn-cancel:hover { background: var(--bg); color: var(--text-1); border-color: var(--border-dark); }

/* ==========================================================================
   SUCCESS STATE
   ========================================================================== */
.success-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r3, 20px);
  box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,.12));
  padding: 52px 36px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.success-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--green-bg); border: 2px solid #a7f3d0;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg {
  width: 34px; height: 34px; stroke: var(--green); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.success-title { font-size: 1.4rem; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; margin-bottom: 10px; }
.success-sub { font-size: .86rem; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.success-email-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-bg); border: 1px solid #bfdbfe;
  border-radius: 20px; padding: 6px 14px;
  font-size: .76rem; color: #1d4ed8; font-weight: 600;
  margin-bottom: 28px;
}
.success-email-pill svg {
  width: 13px; height: 13px; stroke: var(--blue); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.next-steps {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 16px 18px;
  margin: 0 0 20px; text-align: left;
}
.next-steps-title {
  font-size: .7rem; font-weight: 800; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 12px;
}
.next-step { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 10px; }
.next-step:last-child { margin-bottom: 0; }
.next-step-n {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  background: var(--brand); color: #fff;
  font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.next-step-txt { font-size: .78rem; color: var(--text-2); line-height: 1.5; }
.next-step-txt strong { color: var(--text-1); }
.success-actions { display: flex; flex-direction: column; gap: 9px; }
.btn-suc-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-size: .86rem; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 10px rgba(175,129,92,.35); transition: all .13s;
}
.btn-suc-primary svg {
  width: 15px; height: 15px; stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-suc-primary:hover { background: var(--brand-h); }
.btn-suc-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; border-radius: 10px;
  background: transparent; color: var(--text-2);
  font-size: .82rem; font-weight: 600; font-family: inherit;
  border: 1.5px solid var(--border); cursor: pointer; text-decoration: none; transition: all .12s;
}
.btn-suc-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 639px) {
  .form-col { padding: 0; }
  .form-card-head { padding: 20px 20px 16px; }
  .form-card-body { padding: 20px 20px 24px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .success-card { padding: 36px 20px; }
  .success-title { font-size: 1.2rem; }
}
