/* ROAS Calculator - Page styles (scoped) */

/* Center the tool section like other pages */
.tool-section{
  display:flex;
  justify-content:center;
}

#roasTool{
  width:100%;
}

#roasTool *{box-sizing:border-box;}

#roasTool .roas-wrap{
  width:100%;
  max-width: 1200px;
  margin: 0 auto;
}

#roasTool .roas-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 980px){
  #roasTool .roas-grid{grid-template-columns:1fr;}
}

#roasTool .roas-panel{
  background: #0b0f14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  position: relative;
  overflow:hidden;
}

#roasTool .roas-panel::before{
  content:"";
  position:absolute;
  inset: -1px;
  background: radial-gradient(1200px 320px at 20% 0%, rgba(130,80,223,0.18), transparent 55%),
              radial-gradient(900px 280px at 85% 30%, rgba(0,106,255,0.14), transparent 55%);
  pointer-events:none;
}

#roasTool .roas-panel > *{position:relative;}

#roasTool .roas-panel-head{
  display:flex;
  align-items:center;
  gap: 18px;
  margin-bottom: 22px;
}

#roasTool .roas-panel-title{
  margin:0;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

#roasTool .roas-rule{
  flex:1;
  height:1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06), transparent);
}

#roasTool .roas-field{margin-bottom: 20px;}

#roasTool .roas-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#roasTool .roas-label{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

#roasTool .roas-help{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.72);
  font-weight: 900;
  cursor: help;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

#roasTool .roas-help:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(130,80,223,0.25);
}

#roasTool .roas-input{
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  padding: 12px 14px;
}

#roasTool .roas-prefix{
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  min-width: 10px;
}

#roasTool input{
  width:100%;
  background: transparent;
  border: 0;
  outline: none;
  color: rgba(255,255,255,0.95);
  font-size: 20px;
  font-weight: 600;
}

#roasTool input::placeholder{
  color: rgba(255,255,255,0.35);
}

#roasTool .roas-note{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  min-height: 18px;
}

#roasTool .roas-metric{padding-top: 6px;}

#roasTool .roas-metric-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#roasTool .roas-metric-label{
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}

#roasTool .roas-metric-value{
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .02em;
  color: #b8a7ff;
  text-shadow: 0 10px 30px rgba(130,80,223,0.35);
  margin: 8px 0 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px){
  #roasTool .roas-metric-value{font-size: 46px;}
}

#roasTool .roas-metric-sub{
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* Tooltip popup (for the ? icons) */
.roas-tooltip{
  position: fixed;
  z-index: 99999;
  max-width: 340px;
  padding: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.roas-tooltip.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.roas-tooltip .roas-tooltip-inner{
  background: #0b0f14;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}

.roas-tooltip .roas-tooltip-arrow{
  position: absolute;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #0b0f14;
  border-right: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  bottom: -6px;
}

/* If tooltip is rendered below the icon, flip arrow to top */
.roas-tooltip.is-below .roas-tooltip-arrow{
  top: -6px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255,255,255,0.16);
  border-top: 1px solid rgba(255,255,255,0.16);
}

/* Content section text colors (match other tool content cards) */
/* --- Article typography (match SERP Preview Tool content styles) --- */
.roas-content-card{
  margin-top: 100px; /* gap after tool section */
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.roas-content-card h2{
  margin: 0 0 12px 0;
  color: black;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

.roas-content-card h3{
  margin: 18px 0 8px;
  color: black;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.roas-content-card p{
  margin: 0 0 12px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.roas-content-card ol,
.roas-content-card ul{
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: black;
  line-height: 1.55;
}

.roas-content-card ul{ list-style: disc; }
.roas-content-card ol{ list-style: decimal; }

.roas-content-card li{
  margin: 0 0 8px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}
        /* Remove the global container bottom gap for this tool page */
        .main > .container{
          margin-bottom: 0;
        }