/* biztheme/css/pattaya-roi-calculator.css
   for page node--pattaya-roi-calculator.html.twig */
   
.roi-section {
  padding: clamp(1rem, -0.0909rem + 5.4545vw, 4rem) clamp(0.5rem, -0.0455rem + 2.7273vw, 2rem);
  background: #f8f9fa;
  border-radius: 20px;
  margin: 4rem 0;
}

.roi-header {
  text-align: center;
  margin-bottom: 3rem;
}

.roi-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.roi-header img {
  width: clamp(13.75rem, 10.3261rem + 19.5652vw, 25rem);
  margin: 32px auto 0;
}

.roi-subtitle {
  font-size: 1.2rem;
  color: #666;
}

.roi-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Case Study */
.roi-case-study {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.roi-case-study.featured {
  border: 2px solid #667eea;
}

.case-badge {
  position: absolute;
  top: -20px;
  left: 2rem;
  background: #28a745;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.case-details h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.case-metric {
  text-align: center;
  margin-bottom: 1.5rem;
}

.metric-value {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #28a745;
  line-height: 1;
}

.metric-label {
  color: #666;
  font-size: 1rem;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat span {
  color: #666;
  font-size: 0.9rem;
}

.case-description {
  font-style: italic;
  color: #666;
  text-align: center;
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
  margin: 0;
}

/* ROI Bars */
.roi-average {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.roi-average h3 {
  margin-bottom: 2rem;
  color: #333;
}

.roi-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roi-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.bar-container {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.bar-fill.small { background: #28a745; }
.bar-fill.medium { background: #17a2b8; }
.bar-fill.large { background: #ffc107; }
.bar-fill.enterprise { background: #dc3545; }

/* Sector Performance */
.sector-performance {
  background: white;
  padding: clamp(0.5rem, -0.0455rem + 2.7273vw, 2rem);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sector-performance h3 {
  margin-bottom: 2rem;
  color: #333;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.sector-item {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.sector-item:hover {
  transform: translateY(-5px);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.sector-item h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

.sector-roi {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.sector-item p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

.roi-calculations {
  background: white;
  padding: clamp(1rem, -0.0909rem + 5.4545vw, 4rem) clamp(0.5rem, -0.0455rem + 2.7273vw, 2rem);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.roi-calculations h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: clamp(1.75rem, 1.5227rem + 1.1364vw, 2.375rem);
}

.calculation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.calculation-card {
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.calculation-card:hover {
  transform: translateY(-3px);
}

.calculation-card h4 {
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.calc-metrics {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.calc-metric {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.calc-result, .calc-roi {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 2px solid #e9ecef;
  font-weight: 600;
}

.calc-roi {
  color: #28a745;
  font-size: 1.1rem;
}

/* ROI Summary */
.roi-summary {
  text-align: center;
}

.roi-summary h3 {
  font-size: clamp(1.75rem, 1.5227rem + 1.1364vw, 2.375rem);
  margin-bottom: 2rem;
  color: #333;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.summary-item {
  padding: 1.5rem;
}

.summary-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.summary-item h4 {
  color: #333;
  margin-bottom: 1rem;
}

.summary-item p {
  color: #666;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .case-stats {
    grid-template-columns: 1fr;
  }
  
  .calculation-grid {
    grid-template-columns: 1fr;
  }
    
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

.roi-calculator-standalone {
  background: linear-gradient(135deg, #d4d100 0%, #87ceeb 100%);
  color: white;
  padding: clamp(1rem, -0.0909rem + 5.4545vw, 4rem) clamp(0.5rem, -0.0455rem + 2.7273vw, 2rem);
  border-radius: 16px;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.roi-calculator-standalone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
}

.calculator-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.calculator-header h3 {
  font-size: clamp(1.75rem, 1.5227rem + 1.1364vw, 2.375rem);
  margin-bottom: 0.5rem;
  color: white;
}

.calculator-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.roi-section .roi-calculator {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border-radius: 15px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.roi-section .roi-calculator h4 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.3rem;
}

.roi-section .calculator-form {
  position: relative;
  z-index: 2;
}

.roi-section .roi-calculator label {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  text-align: left;
}

.roi-section .roi-calculator select,
.roi-section .roi-calculator input {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #333;
}

.roi-section .roi-calculator select:focus,
.roi-section .roi-calculator input:focus {
  outline: none;
  border-color: #ffd700;
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.roi-section .roi-calculator .output {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 15px;
  border-left: 4px solid #ffd700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.roi-section .output h4 {
  color: #667eea;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
  text-align: left;
}

.roi-section .output p {
  margin: 0.75rem 0;
  line-height: 1.5;
  text-align: left;
}

.roi-section .output strong {
  color: #333;
}

.roi-highlight {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Animation voor results */
.output.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA SECTION */
.roi-cta {
    background: linear-gradient(135deg, #d4d100 0%, #87ceeb 100%);
    padding: 60px 20px;
    margin-top: 80px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.roi-cta img {
  animation: floatImage 5s ease-in-out infinite;
  margin: 32px auto;
}

@keyframes floatImage {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}


.roi-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.roi-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.6);
}
