.estimator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

div#ai-cost-estimator-root {
    margin: 40px 0;
}

div#ai-cost-estimator-root .info-box p {
    font-size: 14px;
}
div#ai-cost-estimator-root .info-box h4 {
    font-size: 18px;
    color: #7c6af2;
    margin: 0 0 5px;
}

/* ── Loading state ── */
.estimate-card { display: none; }
.estimate-card.visible { display: block; }

.ai-loader {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0 8px;
}
.ai-loader.active { display: flex; }

.ai-loader-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-loader-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef0fb;
  border: 1px solid #d1d4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-loader-icon svg {
  width: 16px;
  height: 16px;
}

.ai-loader-label {
  font-size: 14px;
  font-weight: 600;
  color: #5b5bd6;
}

.ai-loader-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-loader-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.ai-loader-step.done { color: #374151; }
.ai-loader-step.active-step { color: #5b5bd6; font-weight: 500; }

.ai-loader-step-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  transition: all 0.3s ease;
}

.ai-loader-step.done .ai-loader-step-icon {
  background: #5b5bd6;
  border-color: #5b5bd6;
  color: #fff;
}

.ai-loader-step.active-step .ai-loader-step-icon {
  border-color: #5b5bd6;
  background: #eef0fb;
}

.ai-typing-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.ai-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5b5bd6;
  animation: dotBounce 1.2s infinite ease-in-out;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.ai-loader-bar-track {
  height: 4px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.ai-loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #5b5bd6;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.subtitle { color: #6b7280; }

.info-box {
    background: #f4f3ff;
    padding: 16px;
    border-left: 4px solid #7c6af2;
    border-radius: 6px;
    margin: 24px 0;
}


.upload-box
 {
    border: 1px solid #d1d5db;
    /* padding: 70px 50px; */
    text-align: center;
    border-radius: 6px;
    display: flex;
    flex-direction: column-reverse;
    /* justify-content: center; */
    align-items: center;
    height: 211px;
}

#estimate_description{
    line-height: 1.7;
}

#ai-cost-estimator-root #generateEstimate {
  font-weight: 600;
    background-color: transparent;
    background-image: linear-gradient(180deg, #7c6ce4 0, #624de3 100%);
    border: 1px solid #0000001A;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .1), 0 -1px 0 1px rgba(0, 0, 0, .25) inset, 0 2px 0 0 rgba(255, 255, 255, .2) inset;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

#ai-cost-estimator-root button {
  background: #e5e7eb;
  padding: 14px;
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
}
.estimator-right-inner {
    background: #F5F3FF;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #6366F1;
}

#generateEstimate{
    width: 100%;
    margin-top: 15px;
}

.pending { display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    width: 100%;
    background: #F3F4F6;
    border-radius: 20px;
    padding: 5px 10px;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 16px;
    margin-top: 15px; }
.approved { color: #10b981; font-weight: 600; }

.ai-estimator-form-main textarea {
  width: stretch;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  resize: vertical;
  font-size: 14px;
}

.upload-box input[type="file"] {
  margin-bottom: 8px;
}

.upload-box span {
  color: #6b7280;
  font-size: 13px;
}

.textarea-box p,.upload-box-main p {
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 5px;
}

.textarea-box label,.upload-box-main label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}
.upload-box-main label{
    width: 100%;
}

.ai-estimator-form-main {
    display: grid;
    gap: 25px;
}
.ai-estimator-form-main button {
    border: none !important;
    background-color: #F3F4F6 !important;
    color: black;
}

.ai-estimator-form-main button:hover {
    border: none !important;
    background-color: #f1f1f1 !important;
    color: black;
}

.upload-btn {
  background: #f3f4f6;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
button#uploadBtn {
    margin-top: 8px;
    border-radius: 0 0 6px 6px;
}
.effort-main,.cost-main,.feature-main {
    border: 1px solid #D1D5DB;
    padding: 5px 15px;
    border-radius: 6px;
}
.effort-main,.cost-main{
    margin-bottom: 10px;
}
.estimate-card label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
.estimate-card {
    margin-top: 15px;
}

.estimator-right .features-desc-main {
    margin: 0 0 12px;
    font-size: 12px;
    color: #6B7280;
}

/* ─── Estimated Feature Breakdown ─────────────────────────────── */

#estimate_description {
  padding: 4px 0;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
}

/* ── Section header (top-level bullet) ── */
.bd-header {
  margin-bottom: 18px;
}

.bd-header-title {
  font-size: 16px !important;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px 0 !important;
  line-height: 1.35;
}

.bd-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-header-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #eef0fb;
  color: #5b5bd6;
  border: 1px solid #d1d4f5;
  line-height: 1.6;
}

/* ── Numbered items wrapper ── */
.bd-items {
  display: flex;
  flex-direction: column;
      gap: 20px;
}

/* ── Each numbered row ── */
.bd-item {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

/* Left column: circle + connector line */
.bd-item__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 38px;
}

#project_desc{
  height: 100px !important;
}

.bd-number {
    width: 32px;
    height: 32px;
  border-radius: 50%;
  background: #5b5bd6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(91, 91, 214, 0.30);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

/*.bd-connector {*/
/*  flex: 1;*/
/*  width: 2px;*/
/*  background: #e0e0f0;*/
/*  margin-top: 5px;*/
/*  min-height: 16px;*/
/*}*/

/*.bd-item:last-child .bd-connector {*/
/*  display: none;*/
/*}*/

/* Right column: title + badge side-by-side */
.bd-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.bd-item:last-child .bd-item__body {
  padding-bottom: 4px;
}

.bd-item-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.bd-title {
    font-size: 16px;
    color: #374151;
    line-height: 1.55;
    flex: 1;
    min-width: 0;
    font-weight: 600;

}

/* Hour-range pill badge on the right */
.bd-sub-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #5b5bd6;
  background: #eef0fb;
  border: 1px solid #d1d4f5;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
      width: fit-content;
}

/* Fallbacks */
.breakdown-plain,
.no-estimate {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}
@media (max-width:600px){
    .estimator-wrapper {
    grid-template-columns: 1fr;
    padding: 20px 0;
}
}