@import url("/assets/variables-5288ddbf.css");
@import url("/assets/reviews-42acdfdd.css");

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.block {
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);

  &:hover {
    color: var(--secondary-dark);
  }
}

.btn,
.btn-primary,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-dark);
  background: var(--primary);
  color: var(--bg-white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-decoration: none;

  &:hover {
    background: var(--bg-white);
    color: var(--primary);
    transform: translateY(-1px);
  }

  &:active {
    transform: translateY(0);
  }

  &:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-dark);

  &:hover {
    background: var(--bg-light);
    color: var(--text-dark);
  }
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-dark);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  gap: 6px;
  font-family: inherit;
  
  &:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-1px);
  }
  
  &:active {
    transform: translateY(0);
  }
  
  &:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  &.danger {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    
    &:hover {
      background: #dc2626 !important;
      color: var(--bg-white) !important;
    }
  }
}

main {
  .admin {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    background: var(--bg-white);

    .sidebar {
      background: var(--bg-white);
      padding: 24px 0;
      overflow-y: auto;
      border-right: 1px solid var(--border-dark);

      .logo {
        padding: 0 20px 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-dark);

        .brand-link {
          font-size: 20px;
          font-weight: 700;
          color: var(--text-dark);
          letter-spacing: -0.02em;
          transition: var(--transition);

          &:hover {
            color: var(--text-medium);
          }
        }

        .logo-image {
          max-width: 100%;
          max-height: 48px;
          display: block;
        }
      }

      h2 {
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-medium);
        margin: 24px 0 8px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        opacity: 0.7;
        &:first-of-type {
          margin-top: 0;
        }

        .nav-icon {
          width: 20px;
          height: 20px;
          opacity: 0.7;
          flex-shrink: 0;
        }
      }

      .nav-link {
        display: block;
        padding: 10px 20px;
        margin: 1px 12px;
        border-radius: var(--border-radius);
        color: var(--text-medium);
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: var(--transition);

        &:hover {
          background: var(--bg-gray-light);
          color: var(--text-dark);
        }

        &.active {
          background: var(--secondary-light);
          color: var(--secondary);
          font-weight: 600;
          border-left: 3px solid var(--secondary);
          padding-left: 17px;
        }
      }

      .logout-section {
        margin: 24px 12px 0;
        padding-top: 20px;
        border-top: 1px solid var(--border-dark);

        .logout-button {
          width: 100%;
          padding: 10px 16px;
          border-radius: var(--border-radius);
          border: 1px solid var(--border-dark);
          background: var(--bg-white);
          color: var(--text-dark);
          font-size: 14px;
          font-weight: 600;
          cursor: pointer;
          transition: var(--transition);

          &:hover {
            background: var(--text-dark);
            border-color: var(--border-dark);
            color: var(--bg-white);
          }
        }
      }
    }
  }

  .admin-content {
    background: var(--bg-white);
    padding: 32px;
    overflow-y: auto;

    .head-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 32px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border-dark);

      h1 {
        margin: 0;
        font-size: 32px;
        font-weight: 700;
        color: var(--text-dark);
        letter-spacing: -0.02em;
      }

      a {
        text-decoration: none;
        transition: var(--transition);
      }

      .map-icon-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border-radius: 6px;
        color: var(--text-muted);

        &:hover {
          color: var(--primary);
          background: var(--bg-light);
        }

        svg {
          width: 24px;
          height: 24px;
        }
      }

      .head-nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;

        select {
          padding: 8px 12px;
          border: 1px solid var(--border-dark);
          border-radius: 6px;
          background: var(--bg-white);
          font-size: 14px;
          color: var(--text-dark);
          cursor: pointer;

          &:focus {
            outline: none;
            border-color: var(--primary);
          }
        }
      }
    }

    .map-analytics {
      margin-top: 32px;

      .analytics-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 20px;
      }

      .analytics-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-bottom: 24px;

        @media (max-width: 900px) {
          grid-template-columns: repeat(2, 1fr);
        }

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

      .metric-card {
        background: var(--bg-white);
        border: 1px solid var(--border-dark);
        border-radius: 8px;
        padding: 20px;

        .metric-label {
          font-size: 13px;
          color: var(--text-muted);
          margin-bottom: 4px;
        }

        .metric-value {
          font-size: 28px;
          font-weight: 700;
          color: var(--text-dark);
          line-height: 1.2;
        }

        .metric-trend {
          margin-top: 8px;
          min-height: 18px;
        }

        .metric-subtext {
          font-size: 12px;
          color: var(--text-muted);
          margin-top: 4px;
        }
      }

      .analytics-charts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 16px;

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

      .analytics-charts-wide {
        margin-bottom: 16px;
      }

      .chart-card-wide {
        width: 100%;
      }

      .chart-card {
        background: var(--bg-white);
        border: 1px solid var(--border-dark);
        border-radius: 8px;
        padding: 20px;

        h3 {
          font-size: 14px;
          font-weight: 600;
          color: var(--text-dark);
          margin: 0 0 16px 0;
        }
      }

      .pie-chart-container {
        display: flex;
        align-items: center;
        gap: 20px;

        canvas {
          flex-shrink: 0;
        }

        .pie-legend {
          flex: 1;
          min-width: 0;
        }
      }

      /* Map Mode Toggle */
      .map-mode-toggle {
        display: flex;
        background: var(--bg-light);
        border-radius: 6px;
        padding: 3px;
        gap: 2px;

        .mode-btn {
          padding: 6px 12px;
          border: none;
          background: transparent;
          border-radius: 4px;
          font-size: 13px;
          font-weight: 500;
          color: var(--text-medium);
          cursor: pointer;
          transition: var(--transition);

          &:hover {
            color: var(--text-dark);
          }

          &.active {
            background: var(--bg-white);
            color: var(--text-dark);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
          }
        }
      }

      /* Comparison Toggle */
      .comparison-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 13px;
        color: var(--text-medium);

        input[type="checkbox"] {
          width: 16px;
          height: 16px;
          cursor: pointer;
        }
      }

      /* Comparison Panel */
      .comparison-panel {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border: 1px solid #bae6fd;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 24px;

        h3 {
          font-size: 16px;
          font-weight: 600;
          color: var(--text-dark);
          margin: 0 0 16px 0;
        }

        .comparison-grid {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 16px;

          @media (max-width: 900px) {
            grid-template-columns: repeat(2, 1fr);
          }

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

        .comparison-card {
          background: var(--bg-white);
          border-radius: 8px;
          padding: 16px;
          text-align: center;

          .comparison-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 8px;
          }

          .comparison-values {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 8px;

            .current-value {
              font-size: 18px;
              font-weight: 700;
              color: var(--text-dark);
            }

            .vs {
              font-size: 11px;
              color: var(--text-muted);
            }

            .prev-value {
              font-size: 14px;
              color: var(--text-medium);
            }
          }

          .comparison-change {
            font-size: 13px;
            font-weight: 500;

            .change-positive {
              color: #22c55e;
            }

            .change-negative {
              color: #ef4444;
            }

            .change-neutral {
              color: var(--text-muted);
            }
          }
        }
      }

      /* Goal Tracking */
      .goal-tracking-card {
        .goal-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 16px;

          h3 {
            margin: 0;
          }

          .btn-small {
            padding: 6px 12px;
            font-size: 12px;
            background: var(--bg-light);
            border: 1px solid var(--border-dark);
            border-radius: 4px;
            cursor: pointer;
            transition: var(--transition);

            &:hover {
              background: var(--bg-white);
            }
          }
        }

        .goal-edit-form {
          display: flex;
          gap: 16px;
          align-items: flex-end;
          margin-bottom: 16px;
          padding: 16px;
          background: var(--bg-light);
          border-radius: 8px;

          .goal-inputs {
            display: flex;
            gap: 16px;
            align-items: flex-end;
            flex-wrap: wrap;
          }

          .goal-input-group {
            display: flex;
            flex-direction: column;
            gap: 4px;

            label {
              font-size: 12px;
              color: var(--text-muted);
            }

            input {
              padding: 8px 12px;
              border: 1px solid var(--border-dark);
              border-radius: 4px;
              font-size: 14px;
              width: 140px;
            }
          }

          .btn-primary.btn-small {
            padding: 8px 16px;
            font-size: 13px;
          }
        }

        .goal-progress {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 24px;

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

        .goal-item {
          .goal-item-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;

            .goal-label {
              font-size: 14px;
              font-weight: 500;
              color: var(--text-dark);
            }

            .goal-numbers {
              font-size: 14px;
              color: var(--text-medium);
            }
          }

          .goal-bar {
            height: 12px;
            background: #e5e7eb;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 8px;

            .goal-bar-fill {
              height: 100%;
              background: linear-gradient(90deg, #3b82f6, #8b5cf6);
              border-radius: 6px;
              transition: width 0.5s ease;

              &.revenue {
                background: linear-gradient(90deg, #10b981, #22c55e);
              }
            }
          }

          .goal-footer {
            display: flex;
            justify-content: space-between;
            font-size: 12px;

            .goal-pct {
              font-weight: 600;
              color: var(--text-dark);
            }

            .goal-remaining {
              color: var(--text-muted);
            }
          }
        }
      }

      /* Distance Analytics */
      .distance-analytics {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 24px;

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

        .distance-summary {
          display: flex;
          flex-direction: column;
          gap: 16px;

          .distance-metric {
            .distance-label {
              font-size: 12px;
              color: var(--text-muted);
              margin-bottom: 4px;
            }

            .distance-value {
              font-size: 24px;
              font-weight: 700;
              color: var(--text-dark);
            }
          }
        }

        .distance-breakdown {
          display: flex;
          flex-direction: column;
          gap: 12px;

          .distance-category {
            .category-header {
              display: flex;
              justify-content: space-between;
              margin-bottom: 6px;

              .category-label {
                font-size: 13px;
                color: var(--text-dark);
              }

              .category-count {
                font-size: 13px;
                font-weight: 600;
                color: var(--text-medium);
              }
            }

            .category-bar {
              height: 8px;
              background: #e5e7eb;
              border-radius: 4px;
              overflow: hidden;

              .category-fill {
                height: 100%;
                border-radius: 4px;
                transition: width 0.3s ease;

                &.local {
                  background: #22c55e;
                }

                &.regional {
                  background: #3b82f6;
                }

                &.long-distance {
                  background: #8b5cf6;
                }

                &.cross-country {
                  background: #ef4444;
                }
              }
            }
          }
        }
      }

      /* Conversion Funnel */
      .conversion-funnel {
        min-height: 200px;
      }

      /* Top Routes */
      .top-routes {
        min-height: 100px;
      }
    }

    table {
      width: 100%;
      border-collapse: collapse;
      border-spacing: 0;
      background: var(--bg-white);
      border: 1px solid var(--border-dark);

      thead {
        background: var(--bg-white);
        border: 1px solid var(--border-dark);
        .sidebar {
          background: var(--bg-white);
          padding: 24px 0;
          overflow-y: auto;
          border-right: 1px solid var(--border-dark);

          .logo {
            padding: 0 20px 20px;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-dark);

            .brand-link {
              font-size: 20px;
              font-weight: 700;
              color: var(--text-dark);
              letter-spacing: -0.02em;
              transition: var(--transition);

              &:hover {
                color: var(--text-medium);
              }
            }

            .logo-image {
              max-width: 100%;
              max-height: 48px;
              display: block;
            }
          }

          h2 {
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-light);
            margin: 24px 0 8px;
            padding: 0 20px;
            display: flex;
            align-items: center;
            gap: 8px;

            &:first-of-type {
              margin-top: 0;
            }

            .nav-icon {
              width: 18px;
              height: 18px;
              opacity: 0.6;
              flex-shrink: 0;
            }
          }

          .nav-link {
            display: block;
            padding: 8px 20px;
            margin: 1px 12px;
            border-radius: var(--border-radius);
            color: var(--text-medium);
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);

            &:hover {
              background: var(--bg-gray-light);
              color: var(--text-dark);
            }

            &.active {
              background: var(--secondary-light);
              color: var(--secondary);
              font-weight: 600;
              border-left: 3px solid var(--secondary);
              padding-left: 17px;
            }
          }

          .logout-section {
            margin: 24px 12px 0;
            padding-top: 20px;
            border-top: 1px solid var(--border-dark);

            .logout-button {
              width: 100%;
              padding: 10px 16px;
              border-radius: var(--border-radius);
              border: 1px solid var(--border-dark);
              background: var(--bg-white);
              color: var(--text-dark);
              font-size: 14px;
              font-weight: 600;
              cursor: pointer;
              transition: var(--transition);

              &:hover {
                background: var(--text-dark);
                border-color: var(--border-dark);
                color: var(--bg-white);
              }
            }
          }
        }
      }

      tbody {
        tr {
          border-bottom: 1px solid var(--border-gray);
          transition: var(--transition);

          &:last-child {
            border-bottom: none;
          }

          &:hover {
            background: var(--bg-gray-light);
          }
        }
      }

      th,
      td {
        text-align: left;
        padding: 16px 20px;

        &.action-column {
          width: auto;
          text-align: right;

          display: flex;
          align-items: center;
          justify-content: flex-end;
          gap: 12px;

          a,
          button {
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);

            &:hover {
              text-decoration: underline;
            }
          }

          a {
            color: var(--secondary);

            &:hover {
              color: var(--secondary-dark);
            }
          }

          button {
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
          }

          .danger {
            color: #dc2626;

            &:hover {
              color: #b91c1c;
            }
          }
        }
      }

      th {
        font-weight: 600;
        font-size: 11px;
        color: var(--text-dark);
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }

      td {
        font-size: 13px;
        color: var(--text-dark);
      }
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 24px;
    }
  }

  &:not(:has(.admin)) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }
}

.form-group {
  margin-bottom: 20px;

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
  }

  input,
  select,
  textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-dark);
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
    font-family: inherit;

    &:focus {
      outline: 2px solid var(--primary);
      outline-offset: -1px;
      border-color: var(--primary);
    }

    &::placeholder {
      color: var(--text-light);
    }
  }

  select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a3a3a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
  }

  &:has(input[type="checkbox"]) {
    label {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 0;
      cursor: pointer;
    }

    input[type="checkbox"] {
      width: 18px;
      height: 18px;
      padding: 0;
      cursor: pointer;
      accent-color: var(--secondary);
    }
  }

  input[type="color"] {
    height: 48px;
    cursor: pointer;
    padding: 4px;
  }

  .attached-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .image-preview {
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-gray-light);
  }

  .preview-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
  }
}

.card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: 1px solid var(--border-dark);
}

.text-muted {
  color: var(--text-medium);
}

.text-light {
  color: var(--text-light);
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-dark);

  h1 {
    margin: 0 0 32px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.02em;
  }

  .btn-primary {
    width: 100%;
    margin-top: 8px;
  }

  a {
    color: var(--text-dark);
    font-size: 14px;
    text-align: center;
    display: block;
    margin-top: 16px;

    &:hover {
      color: var(--text-medium);
      text-decoration: underline;
    }
  }
}

/* Web Quote Header Styles */
.web-quote-header {
  margin: 0 auto;
  padding: 0 16px 24px;
  margin-bottom: 40px;
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    @media (min-width: 768px) {
      flex-direction: row;
      gap: 48px;
    }
  }

  .logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;

    @media (min-width: 768px) {
      margin-bottom: 0;
    }
  }

  .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;

    .logo-image {
      max-width: 200px;
      max-height: 60px;
      width: auto;
      height: auto;
      display: block;
    }
  }

  .logo-box {
    width: 48px;
    height: 48px;
    background: #f97316;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-text {
    color: white;
    font-weight: 700;
    font-size: 18px;
  }

  .nav-section {
    font-weight: 500;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    gap: 48px;
  }

  .contact-section {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 16px;

    @media (min-width: 768px) {
      text-align: right;
    }
  }

  .prominent-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    @media (min-width: 768px) {
      align-items: flex-end;
    }
  }

  .phone-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }

  .phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;

    &:hover {
      color: var(--secondary);
      transform: scale(1.05);
    }

    &.prominent {
      font-size: 28px;
      font-weight: 700;
      color: var(--secondary);
      background: var(--secondary-light);
      padding: 12px 20px;
      border-radius: var(--border-radius);
      border: 2px solid var(--secondary);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

      &:hover {
        background: var(--secondary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      }

      @media (max-width: 768px) {
        font-size: 24px;
        padding: 10px 16px;
      }
    }
  }

  .phone-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;

    .prominent & {
      width: 28px;
      height: 28px;
    }

    .phone-link:hover & {
      transform: rotate(15deg) scale(1.1);
      filter: brightness(0) invert(1);
    }
  }

  .phone-availability {
    font-size: 11px;
    color: var(--text-medium);
    font-weight: 500;
    background: var(--bg-gray-light);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
  }
}

/* Web Quote Styles */
.web-quote {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;

  h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 32px;
    letter-spacing: -0.02em;
  }

  h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
  }

  h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
  }

  .customer-info {
    background: var(--bg-gray-light);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 32px;

    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 16px;

      li {
        font-size: 14px;
        color: var(--text-medium);

        strong {
          color: var(--text-dark);
          font-weight: 600;
        }
      }
    }
  }

  .quote-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
  }

  .quote-main-content {
    min-width: 0;
  }

  .quote-sidebar {
    position: sticky;
    top: 20px; /* Overridden by JS for tall sidebars */
    align-self: start;
  }

  .products-section {
    ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .product-card {
      background: var(--bg-white);
      border: 1px solid var(--border-dark);
      border-radius: var(--border-radius);
      padding: 0;
      margin-bottom: 20px;
      transition: var(--transition-normal);
      display: grid;
      grid-template-columns: 220px 1fr auto;
      gap: 0;
      align-items: stretch;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
      position: relative;
      overflow: hidden;

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--secondary);
        opacity: 0;
        transition: opacity 0.25s ease;
      }

      &:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);

        &::before {
          opacity: 1;
        }
      }

      .product-image {
        pointer-events: none;
        background: var(--bg-gray-light);
        border-radius: var(--border-radius);
        padding: 0;
        display: flex;
        align-items: stretch;
        justify-content: center;

        .product-img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
          transition: transform 0.3s ease;
        }
      }

      &:hover .product-image .product-img {
        transform: scale(1.05);
      }

      .product-info {
        pointer-events: none;
        padding: 28px 0 28px 28px;

        .product-title {
          font-size: 26px;
          font-weight: 800;
          margin: 0 0 10px;
          color: var(--text-dark);
          letter-spacing: -0.02em;
        }

        .product-ideal {
          display: flex;
          align-items: center;
          gap: 12px;
          margin-bottom: 8px;

          strong {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-medium);
            text-transform: uppercase;
            letter-spacing: 0.05em;
          }
        }

        .ideal-list {
          list-style: none;
          margin: 0;
          padding: 0;
          display: flex;
          flex-wrap: wrap;
          gap: 8px;

          li {
            font-size: 14px;
            color: var(--text-dark);
            font-weight: 500;

            &::before {
              content: '✓';
              margin-right: 6px;
              color: var(--secondary);
              font-weight: 700;
            }
          }
        }
      }

      .product-actions {
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 20px;
        min-width: 160px;
        padding: 28px 28px 28px 0;

        .price-wrapper {
          display: flex;
          flex-direction: column;
          align-items: flex-end;
          gap: 6px;
        }

        .original-price {
          font-size: 18px;
          font-weight: 500;
          color: var(--text-light);
          text-decoration: line-through;
        }

        .product-price {
          font-size: 32px;
          font-weight: 800;
          color: var(--text-dark);
          letter-spacing: -0.02em;
          line-height: 1;

          .price-prefix {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-medium);
            display: block;
            margin-bottom: 4px;
          }
        }

        .discount-badge {
          background: var(--secondary-light);
          color: var(--secondary);
          padding: 8px 14px;
          border-radius: 0;
          font-size: 12px;
          font-weight: 700;
          border: 1px solid var(--secondary);
          text-transform: uppercase;
          letter-spacing: 0.02em;
        }

        .quantity-controls {
          display: flex;
          align-items: center;
          gap: 0;
          background: var(--bg-gray-light);
          border-radius: 0;
          padding: 6px;
          border: 1px solid var(--border-dark);

          .quantity-btn {
            width: 40px;
            height: 40px;
            border: 1px solid var(--border-gray);
            background: var(--bg-white);
            color: var(--secondary);
            font-size: 22px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--border-radius-sm);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

&:hover {
              background: var(--secondary);
                color: var(--bg-white);
                transform: scale(1.05);
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
              }

              &:active {
                transform: scale(0.98);
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
              }
          }

          .quantity-display {
            width: 56px;
            text-align: center;
            font-size: 20px;
            font-weight: 700;
            color: var(--text-dark);
            margin: 0 8px;
            background: transparent;
            border: 1px solid var(--border-gray);
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--border-radius-sm);
          }
        }
      }
    }
  }

  .summary-section {
    position: sticky;
    top: 20px;
    z-index: 10;

    turbo-frame {
      display: block;
    }

    .summary-card {
      background: var(--bg-white);
      border: 1px solid var(--border-dark);
      border-radius: 0;
      padding: 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      overflow: hidden;

      .summary-header {
        background: var(--secondary);
        padding: 24px 28px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .summary-title {
        font-size: 24px;
        font-weight: 700;
        color: #ffffff;
        margin: 0;
        letter-spacing: -0.02em;
      }

      .summary-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.2);
        padding: 6px 12px;
        border-radius: 0;
        font-size: 12px;
        font-weight: 600;
        color: #ffffff;

        svg {
          width: 14px;
          height: 14px;
        }
      }

      .empty-state {
        text-align: center;
        padding: 60px 32px;
        color: var(--text-light);

        svg {
          color: var(--text-light);
          margin-bottom: 16px;
        }

        p {
          font-size: 15px;
          margin: 0;
          color: var(--text-medium);
        }
      }

      .summary-content {
        padding: 28px;

        .summary-section {
          margin-bottom: 24px;
          padding-bottom: 20px;

          &:last-of-type {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
          }

          &.fees-section {
            background: var(--bg-gray-light);
            margin: 0 -28px 24px;
            padding: 20px 28px;
            border-bottom: none;
          }

          .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
          }

          .section-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-medium);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin: 0;
          }

          .promo-indicator {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: var(--primary);
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 0;
            text-transform: uppercase;
            letter-spacing: 0.03em;
          }
        }

        .summary-item {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 10px 0;
          font-size: 15px;
          color: var(--text-dark);

          &:last-child {
            padding-bottom: 0;
          }

          .item-left {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;

            .item-quantity {
              display: inline-flex;
              align-items: center;
              justify-content: center;
              min-width: 28px;
              height: 28px;
              background: var(--bg-gray-light);
              border-radius: 0;
              font-size: 13px;
              font-weight: 700;
              color: var(--text-dark);
            }

            .item-name {
              font-weight: 600;
              color: var(--text-dark);
            }

            .fee-note {
              display: block;
              font-size: 12px;
              font-weight: 400;
              color: var(--text-light);
              margin-top: 2px;
            }
          }

          .item-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;

            .item-original-price {
              font-size: 13px;
              color: var(--text-light);
              text-decoration: line-through;
            }

            .item-price {
              font-weight: 700;
              font-size: 17px;
              color: var(--secondary);

              .price-period {
                font-size: 13px;
                font-weight: 500;
                color: var(--text-medium);
              }

              .free-price {
                color: var(--secondary);
                font-weight: 700;
              }

              .call-price {
                color: var(--text-medium);
                font-size: 14px;
                font-weight: 500;
              }

              .custom-price {
                color: var(--secondary);
                font-weight: 600;
              }

              .tbd-price {
                color: var(--text-light);
                font-style: italic;
              }
            }
          }
        }

        .total-row {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 24px 0 0;
          margin-top: 20px;

          .total-label {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-dark);
          }

          .total-prices {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;

            .total-original {
              font-size: 16px;
              color: var(--text-light);
              text-decoration: line-through;
            }

            .total-amount {
              font-size: 32px;
              font-weight: 800;
              color: var(--text-dark);
              letter-spacing: -0.02em;

              &.call-price {
                font-size: 18px;
                font-weight: 600;
                color: var(--text-medium);
              }
            }
          }
        }

        .savings-badge {
          display: flex;
          align-items: center;
          gap: 14px;
          background: var(--secondary-light);
          border: 1px solid var(--secondary);
          border-radius: 0;
          padding: 16px 20px;
          margin-top: 24px;

          .savings-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--secondary);
            border-radius: 0;
            flex-shrink: 0;

            img, svg {
              width: 20px;
              height: 20px;
              filter: brightness(0) invert(1);
            }
          }

          .savings-content {
            display: flex;
            flex-direction: column;
            gap: 2px;

            strong {
              font-size: 14px;
              font-weight: 700;
              color: var(--secondary-dark);
            }

            span {
              font-size: 13px;
              color: var(--secondary);
            }
          }
        }
      }

      .submit-btn {
        display: block;
        text-align: center;
        width: calc(100% - 56px);
        margin: 0 28px 20px;
        padding: 18px 24px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 0;
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;

        &:hover {
          background: var(--primary-dark);
          transform: translateY(-2px);
        }

        &:active {
          transform: translateY(0);
        }
      }

      .whats-next-btn {
        width: 100%;
        margin: 0;
        padding: 16px 28px 24px;
        color: var(--text-medium);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        svg {
          transition: all 0.15s ease;
        }

        &:hover {
          color: var(--secondary);

          svg {
            transform: scale(1.1);
          }
        }
      }
    }

    .qualifying-text-card {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      background: var(--secondary-light);
      border: 1px solid var(--secondary);
      border-radius: 0;
      padding: 20px 24px;
      margin-top: 20px;

      svg {
        flex-shrink: 0;
        color: var(--secondary);
        margin-top: 2px;
      }

      p {
        margin: 0;
        color: var(--secondary-dark);
        font-size: 15px;
        line-height: 1.6;
        font-weight: 500;
      }
    }
  }
}

.whats-next-dialog {
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 600px;
  width: 90%;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  &::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }

  .dialog-content {
    display: flex;
    flex-direction: column;
  }

  .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border-gray);

    h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 700;
      color: var(--text-dark);
    }

    .dialog-close {
      background: none;
      border: none;
      padding: 8px;
      cursor: pointer;
      color: var(--text-medium);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      transition: var(--transition);

      &:hover {
        background: var(--bg-gray-light);
        color: var(--text-dark);
      }

      svg {
        width: 24px;
        height: 24px;
      }
    }
  }

  .dialog-body {
    padding: 24px;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    max-height: 60vh;
    overflow-y: auto;

    p {
      margin: 0 0 16px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

/* FAQs Section */
.faqs-section {
  width: 100%;
  padding: 48px 0;
  background: var(--bg-white);
  margin-top: 32px;
}

.faqs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.faqs-header {
  margin-bottom: 48px;
}

.faqs-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}

.faqs-highlight {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
}

.faqs-accent {
  color: var(--secondary);
}

.faqs-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  width: 100%;
}

.faq-question {
  width: 100%;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  opacity: 0.8;
}

.faq-question-text {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 18px;
  padding-right: 16px;
  flex: 1;
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-icon svg {
  display: block;
}

.faq-answer {
  padding: 0 0 16px 0;
}

.faq-answer p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
}

.faq-divider {
  border-bottom: 1px solid var(--border-gray);
  width: 100%;
}

/* Tab Styles */
.tabs-container {
  margin-bottom: 32px;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.tab-button {
  padding: 12px 24px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-button.active-tab {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.tab-button:hover {
  color: var(--text-dark);
}

@media (max-width: 1024px) {
  main .admin {
    grid-template-columns: 1fr;

    .sidebar {
      display: none;
    }

    .admin-content .two-col {
      grid-template-columns: 1fr;
    }
  }

  .web-quote {
    padding: 20px 16px;

    .quote-layout {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .quote-sidebar {
      position: static;
      order: -1;
    }

    .summary-section {
      position: static;

      .summary-card {
        border-radius: 0;

        .summary-header {
          padding: 20px;
        }

        .summary-title {
          font-size: 20px;
        }

        .summary-badge {
          font-size: 11px;
          padding: 5px 10px;
          border-radius: 0;
        }

        .summary-content {
          padding: 20px;

          .summary-section.fees-section {
            margin: 0 -20px 20px;
            padding: 16px 20px;
          }

          .total-row .total-prices .total-amount {
            font-size: 28px;
          }
        }

        .submit-btn {
          width: calc(100% - 40px);
          margin: 0 20px 16px;
          padding: 16px 20px;
          font-size: 16px;
          border-radius: 0;
        }

        .whats-next-btn {
          padding: 12px 20px 20px;
        }
      }

      .qualifying-text-card {
        padding: 16px 20px;
        margin-top: 16px;
        border-radius: 0;

        p {
          font-size: 14px;
        }
      }
    }

    .customer-info ul {
      grid-template-columns: 1fr;
    }

    .products-section .product-card {
      grid-template-columns: 1fr;
      gap: 0;
      padding: 0;
      border-radius: 0;

      &::before {
        display: none;
      }

      .product-image {
        padding: 0;
        border-radius: 0;

        .product-img {
          width: 100%;
          height: auto;
          max-height: 220px;
          object-fit: cover;
        }
      }

      .product-info {
        padding: 20px;

        .product-title {
          font-size: 22px;
        }

        .product-ideal strong {
          font-size: 12px;
        }

        .ideal-list {
          gap: 6px;

          li {
            font-size: 13px;
          }
        }
      }

      .product-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        padding-top: 0;
        border-top: none;
        gap: 16px;

        .price-wrapper {
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          width: 100%;
        }

        .product-price {
          font-size: 22px;
        }

        .original-price {
          display: none;
        }

        .discount-badge {
          font-size: 10px;
          padding: 4px 8px;
          border-radius: 0;
        }

        .quantity-controls {
          padding: 4px;
          border-radius: 0;

          .quantity-btn {
            width: 44px;
            height: 44px;
            font-size: 22px;
            border-radius: 0;
          }

          .quantity-display {
            width: 60px;
            font-size: 20px;
          }
        }

        /* When there's a discount, quantity goes on its own row */
        &:has(.price-wrapper) .quantity-controls {
          width: 100%;
          justify-content: center;
        }
      }
    }
  }

  .reviews-header h2 {
    font-size: 36px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .faqs-header h2 {
    font-size: 32px;
  }
}

/* Mobile Bottom Bar - Hidden by default */
.mobile-bottom-bar {
  display: none;
}

/* keyValueContainer height stabilization */
[data-webhook-preview-target="keyValueContainer"] {
  min-height: fit-content;
  transition: min-height 0.15s ease;
}

/* Nested form row stability */
.key-value-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
  position: relative;
}

.key-value-row:last-child {
  margin-bottom: 0;
}

/* Form input stability */
[data-nested-form-target="target"] {
  min-height: 48px;
  position: relative;
}

/* Custom value input styling */
.custom-value-input {
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  transition: var(--transition-fast);
  width: 200px;
}

/* URL parameter inputs styling */
.url-param-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .moving-plan-card {
    display: none;
  }
  .map-container {
    display: none;
  }

  .mobile-bottom-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .mobile-bottom-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary);
    padding: 14px 20px;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);

    svg {
      width: 22px;
      height: 22px;
      stroke: var(--bg-white);
    }

    &:hover,
    &:active,
    &:focus {
      color: var(--bg-white);
      opacity: 0.85;

      svg {
        stroke: var(--bg-white);
      }
    }
  }

  .mobile-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 10px 20px;
    border-top: 1px solid var(--border-gray);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
  }

  .mobile-total-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
  }

  .mobile-total-prices {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-original-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: line-through;
  }

  .mobile-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
  }

  /* Add padding to bottom of page to account for fixed bar */
  body {
    padding-bottom: 130px;
  }
}

.map-section {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 20px;
  box-sizing: border-box;

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

.moving-plan-card {
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 24px;
  }
}

.location-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.location-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;

  &.pickup {
    background: var(--secondary);
  }

  &.destination {
    background: var(--secondary);
  }

  .marker-icon {
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    border-radius: 50%;
    display: block;
  }
}

.location-details {
  flex: 1;

  strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
  }

  p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
  }
}

.location-divider {
  width: 2px;
  height: 24px;
  background: var(--secondary);
  margin-left: 15px;
  margin-bottom: 8px;
}

.map-container {
  width: 100%;
  overflow: hidden;

  iframe {
    display: block;
    max-width: 100%;
  }
}
