/* Pikipojat Asfalttilaskuri Styles */
/* Integrates with existing Pikipojat design: Montserrat, orange accent #ff8c00, dark #181818 */

#pikipojat-laskuri {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  font-family: 'Montserrat', sans-serif;
  color: #181818;
}

@media (max-width: 600px) {
  #pikipojat-laskuri {
    padding: 24px 16px;
    border-radius: 12px;
  }
}

/* Header */
.laskuri-header {
  text-align: center;
  margin-bottom: 28px;
}

.laskuri-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.laskuri-badge svg {
  width: 14px;
  height: 14px;
}

.laskuri-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #181818;
}

.laskuri-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Progress indicator */
.laskuri-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 20px;
}

.laskuri-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.laskuri-progress-step span {
  font-size: 11px;
  font-weight: 500;
  color: #bbb;
  transition: color 0.3s;
}

.laskuri-progress-step.active span {
  color: #181818;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #f0f0f0;
  color: #999;
  transition: all 0.3s;
}

.laskuri-progress-step.active .step-dot {
  background: #ff8c00;
  color: #fff;
}

.laskuri-progress-line {
  width: 48px;
  height: 2px;
  background: #e8e8e8;
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.3s;
}

.laskuri-progress-line.active {
  background: #ff8c00;
}

/* Step content */
.laskuri-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-question {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #181818;
}

/* Type selection grid */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
}

.type-card:hover {
  border-color: #ffc266;
  background: #fff8f0;
}

.type-card.selected {
  border-color: #ff8c00;
  background: #fff5e6;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.15);
}

.type-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.type-label {
  font-size: 15px;
  font-weight: 700;
  color: #181818;
  margin-bottom: 4px;
}

.type-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

/* Field groups */
.field-group {
  margin-bottom: 24px;
}

.field-group.indent {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 2px solid #ff8c00;
}

.field-label-laskuri {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Area display */
.area-display {
  text-align: center;
  margin-bottom: 12px;
}

.area-value {
  font-size: 48px;
  font-weight: 800;
  color: #ff8c00;
  line-height: 1;
}

.area-unit {
  font-size: 20px;
  font-weight: 600;
  color: #888;
  margin-left: 4px;
}

/* Range slider */
.area-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #ff8c00, #ffb347);
  outline: none;
  cursor: pointer;
}

.area-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff8c00;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.area-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  cursor: grabbing;
}

.area-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff8c00;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* Condition buttons */
.condition-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.condition-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #555;
  transition: all 0.2s;
}

.condition-btn:hover {
  border-color: #ccc;
}

.condition-btn.selected {
  border-color: #ff8c00;
  background: #fff5e6;
  color: #181818;
}

.condition-emoji {
  font-size: 18px;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-btn {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #ddd;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-btn.active {
  background: #ff8c00;
}

.toggle-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.toggle-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.toggle-btn.active .toggle-thumb {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 14px;
  color: #555;
}

/* Persons selector */
.persons-selector {
  display: flex;
  gap: 8px;
}

.person-btn {
  padding: 8px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #555;
  transition: all 0.2s;
}

.person-btn.selected {
  border-color: #ff8c00;
  background: #fff5e6;
  color: #181818;
}

/* Buttons */
.laskuri-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.laskuri-btn.primary {
  background: linear-gradient(135deg, #ff8c00 0%, #e67a00 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,140,0,0.25);
}

.laskuri-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,140,0,0.35);
}

.laskuri-btn.secondary {
  background: #f0f0f0;
  color: #555;
}

.laskuri-btn.secondary:hover {
  background: #e8e8e8;
}

.laskuri-btn-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 8px;
}

/* Result card */
.result-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
  margin-bottom: 20px;
}

.result-badge {
  display: inline-block;
  background: rgba(255,140,0,0.2);
  color: #ffb347;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.result-price-row {
  margin-bottom: 20px;
}

.result-price {
  font-size: 32px;
  font-weight: 800;
  color: #ff8c00;
  line-height: 1.1;
}

@media (max-width: 480px) {
  .result-price {
    font-size: 26px;
  }
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.result-detail:last-child {
  border-bottom: none;
}

.result-detail.highlight {
  background: rgba(255,140,0,0.1);
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: 8px;
  border-bottom: none;
}

.detail-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.detail-value.savings {
  color: #4ade80;
  font-weight: 800;
}

/* Disclaimer */
.result-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.result-disclaimer svg {
  flex-shrink: 0;
  color: #999;
  margin-top: 2px;
}

.result-disclaimer p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Tip */
.result-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff5e6;
  border: 1px solid #ffe0b2;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.result-tip svg {
  flex-shrink: 0;
  color: #ff8c00;
  margin-top: 1px;
}

.result-tip p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* CTA */
.result-cta {
  text-align: center;
  margin-bottom: 20px;
}

.cta-main {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 16px;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.cta-phone {
  color: #ff8c00;
  font-weight: 700;
  text-decoration: none;
}

.cta-phone:hover {
  text-decoration: underline;
}

/* Section wrapper for the calculator */
.section-laskuri {
  padding: 60px 20px;
  background: linear-gradient(180deg, #f5f5f5 0%, #eee 100%);
}

.section-laskuri .container {
  max-width: 960px;
  margin: 0 auto;
}

.section-laskuri-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-laskuri-intro h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.section-laskuri-intro p {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ===== EMAIL GATE (Step 3 teaser) ===== */

.result-card.teaser {
  position: relative;
  overflow: hidden;
}

.result-price-row.blurred {
  position: relative;
}

.result-price.blurred-text {
  filter: blur(8px);
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.5;
  color: #ff8c00;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 480px) {
  .result-price.blurred-text {
    font-size: 26px;
  }
}

.result-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 140, 0, 0.12);
  border-radius: 10px;
  color: #ffb347;
  font-size: 13px;
  font-weight: 600;
}

.result-lock svg {
  flex-shrink: 0;
  color: #ffb347;
}

/* Email gate form */
.email-gate-form {
  margin-top: 24px;
  margin-bottom: 16px;
}

.email-gate-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 16px;
}

.email-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 480px) {
  .email-input-row {
    flex-direction: column;
  }
}

.email-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #181818;
  transition: border-color 0.2s;
  outline: none;
}

.email-input:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.email-input::placeholder {
  color: #bbb;
}

.email-error {
  color: #d32f2f;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 0;
}

.email-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  margin: 12px 0 0;
}

.email-privacy svg {
  flex-shrink: 0;
  color: #bbb;
}

/* Message field */
.message-field {
  margin-top: 16px;
}

.message-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #181818;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.2s;
  outline: none;
}

.message-input:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.message-input::placeholder {
  color: #bbb;
}

/* ===== PAIKKAUS STEP 2 ===== */

.paik-type-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.paik-type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s;
}

.paik-type-card:hover {
  border-color: #ffc266;
  background: #fff8f0;
}

.paik-type-card.selected {
  border-color: #ff8c00;
  background: #fff5e6;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.15);
}

.paik-type-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.paik-type-text {
  display: flex;
  flex-direction: column;
}

.paik-type-label {
  font-size: 14px;
  font-weight: 700;
  color: #181818;
}

.paik-type-desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.paik-section {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 20px;
}

.paik-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.paik-counter-label {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.paik-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paik-counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}

.paik-counter-btn:hover {
  border-color: #ff8c00;
  color: #ff8c00;
}

.paik-counter-value {
  font-size: 22px;
  font-weight: 800;
  color: #ff8c00;
  min-width: 32px;
  text-align: center;
}

.paik-counter-unit {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.paik-area-row {
  margin-bottom: 8px;
}

.area-display.small {
  margin-bottom: 8px;
}

.area-value.small {
  font-size: 32px;
}

.paik-hint {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 8px 0 0;
  padding: 0;
}
