/* --- SCOPED CSS (Unique ID: dbc-tak-wrapper) --- */
  #dbc-tak-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #003b71; /* DittBygg Dark Blue */
    line-height: 1.5;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #fffdf5; /* Warm cream background */
    padding: 20px;
    border-radius: 20px;
  }
  
  #dbc-tak-wrapper * {
    box-sizing: border-box;
  }

  /* Card & Layout */
  #dbc-tak-wrapper .dbc-card {
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 59, 113, 0.1);
    border: 1px solid #f0f0f0;
  }
  #dbc-tak-wrapper .dbc-layout {
    display: flex;
    flex-direction: column;
  }
  @media (min-width: 768px) {
    #dbc-tak-wrapper .dbc-layout { flex-direction: row; }
  }

  /* Input Section */
  #dbc-tak-wrapper .dbc-input-section {
    width: 100%;
    padding: 1.5rem;
  }
  @media (min-width: 768px) {
    #dbc-tak-wrapper .dbc-input-section { width: 60%; padding: 2.5rem; }
  }
  
  #dbc-tak-wrapper .dbc-section-header {
    border-bottom: 2px solid #fffdf5;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
  #dbc-tak-wrapper .dbc-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #003b71;
    margin: 0;
  }
  #dbc-tak-wrapper .dbc-section-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
  }

  /* Controls */
  #dbc-tak-wrapper .dbc-control-group { margin-bottom: 2.5rem; }
  
  #dbc-tak-wrapper .dbc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  #dbc-tak-wrapper .dbc-label {
    font-weight: 700;
    color: #003b71;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }
  #dbc-tak-wrapper .dbc-value-badge {
    background-color: #fffdf5;
    color: #003b71;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 0.25rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #ffcd00;
  }

  /* --- DROPDOWN STYLING --- */
  #dbc-tak-wrapper .dbc-select-wrapper {
    position: relative;
    width: 100%;
  }
  #dbc-tak-wrapper .dbc-select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #003b71;
    background-color: white;
    border: 2px solid #f1f5f9;
    border-radius: 0.75rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.2s;
  }
  #dbc-tak-wrapper .dbc-select:hover,
  #dbc-tak-wrapper .dbc-select:focus {
    border-color: #ffcd00;
    outline: none;
  }
  #dbc-tak-wrapper .dbc-select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #003b71;
  }
  #dbc-tak-wrapper optgroup {
    font-weight: 700;
    color: #94a3b8;
  }
  #dbc-tak-wrapper option {
    font-weight: 500;
    color: #003b71;
    padding: 4px 0;
  }

  /* Slider Styling */
  #dbc-tak-wrapper .dbc-slider-container { width: 100%; }
  #dbc-tak-wrapper .dbc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #f1f5f9;
    outline: none;
    margin: 0;
    padding: 0;
    display: block;
    cursor: pointer;
  }
  #dbc-tak-wrapper .dbc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffcd00;
    border: 4px solid white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-top: -9px;
  }
  #dbc-tak-wrapper .dbc-slider::-webkit-slider-runnable-track {
     width: 100%;
     height: 10px;
     cursor: pointer;
     background: #e2e8f0;
     border-radius: 5px;
  }
  #dbc-tak-wrapper .dbc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
  }

  /* Checkboxes */
  #dbc-tak-wrapper .dbc-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #dbc-tak-wrapper .dbc-checkbox-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
  }
  #dbc-tak-wrapper .dbc-checkbox-item:hover {
    border-color: #cbd5e1;
  }
  #dbc-tak-wrapper .dbc-checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  #dbc-tak-wrapper .dbc-checkbox-custom {
    height: 1.5rem;
    width: 1.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.35rem;
    margin-right: 1rem;
    position: relative;
    background-color: white;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  #dbc-tak-wrapper .dbc-checkbox-item input:checked ~ .dbc-checkbox-custom {
    background-color: #ffcd00;
    border-color: #ffcd00;
  }
  #dbc-tak-wrapper .dbc-checkbox-item input:checked ~ .dbc-checkbox-custom:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #003b71;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
  }
  #dbc-tak-wrapper .dbc-checkbox-label {
    font-size: 1rem;
    color: #003b71;
    font-weight: 500;
  }

  /* Help Box */
  #dbc-tak-wrapper .dbc-help-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  #dbc-tak-wrapper .dbc-help-icon {
    color: #0284c7;
    flex-shrink: 0;
    padding-top: 2px;
  }
  #dbc-tak-wrapper .dbc-help-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #003b71;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
  }
  #dbc-tak-wrapper .dbc-help-text {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
  }
  #dbc-tak-wrapper .dbc-help-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
  }
  #dbc-tak-wrapper .dbc-help-link:hover {
    color: #0369a1;
    text-decoration: underline;
  }

  /* Result Section */
  #dbc-tak-wrapper .dbc-result-section {
    width: 100%;
    background-color: #003b71;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
  }
  @media (min-width: 768px) {
    #dbc-tak-wrapper .dbc-result-section { width: 40%; padding: 2.5rem; }
  }
  
  #dbc-tak-wrapper .dbc-result-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
  }
  
  #dbc-tak-wrapper .dbc-result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  /* Responsive Price */
  #dbc-tak-wrapper .dbc-price-large {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
    white-space: nowrap;
  }
  @media (min-width: 380px) {
    #dbc-tak-wrapper .dbc-price-large { font-size: 2.4rem; }
  }
  @media (min-width: 768px) {
    #dbc-tak-wrapper .dbc-price-large { font-size: 3rem; }
  }

  #dbc-tak-wrapper .dbc-price-range {
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  #dbc-tak-wrapper .dbc-price-range span {
    color: #ffcd00;
    font-weight: 700;
    white-space: nowrap;
  }

  #dbc-tak-wrapper .dbc-result-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
  }
  #dbc-tak-wrapper .dbc-disclaimer {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
  }
  #dbc-tak-wrapper .dbc-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #ffcd00;
    color: #003b71;
    font-weight: 800;
    text-decoration: none;
    padding: 1.125rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    gap: 0.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
  }
  #dbc-tak-wrapper .dbc-cta-button:hover {
    background-color: #ffda47;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  #dbc-tak-wrapper .dbc-cta-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin: 1rem 0 0 0;
  }

  /* Footer */
  #dbc-tak-wrapper .dbc-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 2rem;
    font-weight: 500;
  }
