/* Optimized Mobile-First Design for GJ-Power Dakrenovatie Premie Calculator */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.roof-app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  width: 100%;
}

/* Compact Header */
.roof-app-header {
  text-align: center;
  margin-bottom: 1rem;
}

.roof-badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #d1fae5;
  color: #047857;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.625rem;
  font-weight: 600;
  font-size: 0.8125rem;
}

.roof-app-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  margin: 0;
}

.roof-text-accent {
  color: #059669;
}

/* Simplified Progress */
.roof-progress-wrapper {
  margin-bottom: 1rem;
}

.roof-progress-bar {
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.roof-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 16.67%;
}

.roof-progress-text {
  text-align: center;
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
}

/* Card */
.roof-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #059669;
  width: 100%;
  overflow: hidden;
}

.roof-card-header {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.roof-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  text-align: center;
}

.roof-card-content {
  padding: 1rem;
  width: 100%;
}

/* Step Content */
.roof-step-content {
  display: none;
}

.roof-step-content.active {
  display: block;
  width: 100%;
}

/* Size Display */
.roof-size-display {
  text-align: center;
  padding: 1rem 0;
}

.roof-size-number {
  font-size: 3rem;
  font-weight: 900;
  color: #059669;
  line-height: 1;
}

.roof-size-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b7280;
  margin-left: 0.375rem;
}

/* Slider */
.roof-slider-wrapper {
  margin: 1.25rem 0;
}

.roof-slider {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.roof-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #059669;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.roof-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
}

.roof-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #059669;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.roof-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  margin-top: 0.375rem;
}

/* Compact Benefits Box */
.roof-benefits-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 0.875rem;
  margin: 1.25rem 0;
}

.roof-benefits-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.roof-benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #065f46;
  font-size: 0.875rem;
}

.roof-icon-check {
  color: #059669;
  flex-shrink: 0;
}

.roof-info-text {
  color: #065f46;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.roof-info-text strong {
  font-weight: 700;
}

/* Roof Type Options */
.roof-type-options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  width: 100%;
}

.roof-type-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 2px solid #059669;
  border-radius: 0.5rem;
  background: white !important;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

.roof-type-option:hover:not(.selected) {
  border-color: #047857;
  background-color: white !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
  transform: translateY(-2px);
}

.roof-type-option:active:not(.selected) {
  transform: scale(0.98) translateY(0);
  background-color: white !important;
}

.roof-type-option:focus:not(.selected) {
  background-color: white !important;
  outline: none;
}

.roof-type-option.selected {
  border-color: #059669;
  background-color: #059669 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.roof-type-option.selected:hover {
  border-color: #047857;
  background-color: #047857 !important;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
  transform: translateY(-2px);
}

.roof-type-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.roof-type-info {
  flex: 1;
  min-width: 0;
}

.roof-type-label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
  color: #1f2937;
  transition: color 0.2s ease;
}

.roof-type-option:not(.selected) .roof-type-label {
  color: #1f2937 !important;
}

.roof-type-option.selected .roof-type-label {
  color: white !important;
}

.roof-type-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  transition: color 0.2s ease;
}

.roof-type-option:not(.selected) .roof-type-desc {
  color: #6b7280 !important;
}

.roof-type-option.selected .roof-type-desc {
  color: rgba(255, 255, 255, 0.9) !important;
}

.roof-type-check {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #059669;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: white;
}

.roof-type-option.selected .roof-type-check {
  background-color: white;
  border-color: white;
}

.roof-type-option.selected .roof-type-check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
}

/* Form */
.roof-form {
  margin-bottom: 1rem;
}

.roof-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.roof-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.roof-form-field label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #374151;
}

.roof-form-field input {
  padding: 0.625rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: white;
}

.roof-form-field input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.roof-form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Buttons */
.roof-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
  height: auto;
  min-height: 2.75rem;
}

.roof-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px -1px rgba(5, 150, 105, 0.3);
}

.roof-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.roof-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: white;
  color: #059669;
  border: 2px solid #059669;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 2.75rem;
  flex: 1;
}

.roof-btn-secondary:active {
  background: #f0fdf4;
}

.roof-btn-group {
  display: flex;
  gap: 0.625rem;
}

.roof-btn-group .roof-btn-primary {
  flex: 2;
}

/* Icons */
.roof-icon {
  flex-shrink: 0;
}

/* Confirmation */
.roof-confirmation {
  text-align: center;
  padding: 1.25rem 1rem;
}

.roof-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #059669;
}

.roof-confirmation-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: #1f2937;
}

.roof-confirmation-text {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.roof-price-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.roof-price-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.roof-price-amount {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.roof-price-note {
  font-size: 0.6875rem;
  opacity: 0.85;
}

/* Calculation Details */
.roof-calculation-details {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.roof-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
}

.roof-detail-row:last-child {
  border-bottom: none;
}

.roof-detail-row span:first-child {
  color: #6b7280;
  font-weight: 500;
}

.roof-detail-row span:last-child {
  color: #1f2937;
  font-weight: 600;
}

.roof-next-steps {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.roof-next-steps h3 {
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: #1f2937;
  font-size: 0.9375rem;
  text-align: left;
}

.roof-steps-list {
  list-style: none;
  text-align: left;
}

.roof-steps-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.roof-steps-list li:last-child {
  margin-bottom: 0;
}

.roof-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* CTA Section */
.roof-cta-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid #059669;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.roof-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.roof-cta-subtitle {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.roof-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px -4px rgba(5, 150, 105, 0.4);
  margin-bottom: 1rem;
}

.roof-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(5, 150, 105, 0.5);
}

.roof-btn-cta:active {
  transform: translateY(0);
}

.roof-cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
  margin: 0;
}

.roof-cta-guarantee .roof-icon-check {
  color: #059669;
  flex-shrink: 0;
}

.roof-contact-info {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}

.roof-contact-title {
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: #1f2937;
  font-size: 0.875rem;
}

.roof-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.roof-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  color: #059669;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.roof-contact-link:active {
  color: #047857;
}

.roof-address {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Trust Footer */
.roof-trust-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: white;
  padding: 0 0.5rem;
}

.roof-trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  color: white;
}

.roof-trust-item .roof-icon {
  color: #059669;
}

.roof-trust-item span {
  color: white;
}

/* Responsive - Tablet and up */
@media (min-width: 768px) {
  .roof-app-container {
    padding: 1.5rem;
  }

  .roof-app-header {
    margin-bottom: 1.5rem;
  }

  .roof-app-title {
    font-size: 1.75rem;
  }

  .roof-progress-wrapper {
    margin-bottom: 1.5rem;
  }

  .roof-card-header {
    padding: 1.5rem;
  }

  .roof-card-content {
    padding: 1.5rem;
  }

  .roof-step-title {
    font-size: 1.5rem;
  }

  .roof-size-number {
    font-size: 3.75rem;
  }

  .roof-type-option {
    padding: 1.25rem;
  }

  .roof-type-icon {
    font-size: 2.25rem;
  }

  .roof-confirmation {
    padding: 2rem 1.5rem;
  }

  .roof-trust-footer {
    margin-top: 1.5rem;
    gap: 1.5rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .roof-app-title {
    font-size: 1.125rem;
  }

  .roof-size-number {
    font-size: 2.5rem;
  }

  .roof-type-icon {
    font-size: 1.5rem;
  }

  .roof-btn-group {
    flex-direction: column;
  }

  .roof-btn-group .roof-btn-primary,
  .roof-btn-group .roof-btn-secondary {
    width: 100%;
    flex: 1;
  }
}

