/**
 * Plugin Name: AI Junk Removal Quote System
 * Stylesheet: Frontend Quote Form & Admin Dashboard Styling
 * Author: Rok Online (https://rokonline.com/)
 */

/* ==========================================================================
   1. FRONTEND MULTI-STEP QUOTE FORM STYLES
   ========================================================================== */

#qf-root, #qf-root * { 
  box-sizing: border-box; 
}

.qf-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.qf-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #3d2a6d;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.qf-progress-track {
  width: 100%;
  height: 8px;
  background: #e6e2ef;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}

.qf-progress-fill {
  height: 100%;
  width: 33.33%;
  background: #3d2a6d;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.qf-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.qf-subtitle {
  font-size: 14px;
  color: #4a4a4a;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.qf-center { 
  text-align: center; 
}

.qf-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0 0 24px 0;
}

.qf-field { 
  margin-bottom: 20px; 
}

.qf-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.qf-req { 
  color: #d0021b; 
}

.qf-field input[type="text"],
.qf-field input[type="tel"],
.qf-field input[type="email"],
.qf-field input[type="date"],
.qf-field select,
.qf-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #d7d7de;
  border-radius: 8px;
  color: #1a1a1a;
  background: #fff;
  font-family: inherit;
}

.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus {
  outline: none;
  border-color: #3d2a6d;
}

.qf-field.qf-invalid input,
.qf-field.qf-invalid select,
.qf-field.qf-invalid textarea {
  border-color: #d0021b;
}

.qf-error {
  display: none;
  color: #d0021b;
  font-size: 12.5px;
  margin-top: 6px;
}

.qf-field.qf-invalid .qf-error { 
  display: block; 
}

.qf-dropzone {
  border: 2px dashed #d7d7de;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  font-size: 14px;
  color: #555;
  background: #fafafa;
}

.qf-btn-select {
  background: #3d2a6d;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-left: 6px;
}

.qf-hint { 
  font-size: 12px; 
  color: #888; 
  margin-top: 8px; 
}

.qf-file-list { 
  margin-top: 10px; 
  font-size: 13px; 
  color: #333; 
}

.qf-file-list div { 
  padding: 2px 0; 
}

.qf-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #3d2a6d;
}

.qf-checkbox-row input { 
  margin-top: 3px; 
}

.qf-btn, .qf-btn-row .qf-btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  background: #f5b800;
  color: #1a1a1a;
  transition: filter 0.15s ease;
}

.qf-btn:hover { 
  filter: brightness(0.95); 
}

.qf-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.qf-btn-row { 
  display: flex; 
  flex-direction: column; 
}

.qf-thankyou { 
  text-align: center; 
  padding: 20px 0; 
}

.qf-check {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #1a9b52;
  font-size: 28px;
  margin: 0 auto 16px auto;
}

@media (max-width: 480px) {
  .qf-wrap { 
    padding: 24px 20px; 
  }
}


/* ==========================================================================
   2. WORDPRESS ADMIN DASHBOARD STYLES (Quote Management)
   ========================================================================== */

.ai-junk-admin-wrap {
  margin: 20px 20px 0 0;
}

.ai-junk-admin-card {
  background: #ffffff;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
}

.ai-junk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.ai-junk-table th, 
.ai-junk-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}

.ai-junk-table th {
  background-color: #f8f9fa;
  font-weight: 700;
  color: #1d2327;
}

.ai-junk-table tr:hover {
  background-color: #f6f7f7;
}

/* Status Badges */
.ai-junk-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.ai-junk-badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.ai-junk-badge-approved {
  background-color: #d1fae5;
  color: #065f46;
}

.ai-junk-badge-booked {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Image Thumbnails in Admin Table */
.ai-junk-thumb-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-junk-thumb-grid img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d7d7de;
}

/* Status Select Dropdown Fix */
.ai-junk-table select {
  width: 115px !important;
  height: 34px !important;
  line-height: 1.4 !important;
  padding: 4px 24px 4px 8px !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  border: 1px solid #8c8f94 !important;
  background-color: #ffffff !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.ai-junk-table input[type="number"] {
  width: 115px !important;
  height: 34px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  border: 1px solid #8c8f94 !important;
  box-sizing: border-box !important;
}

/* Soft Green Background Tint for Approved Quotes */
.ai-junk-table tr.ai-junk-row-approved {
  background-color: #f0fdf4 !important;
}

.ai-junk-table tr.ai-junk-row-approved:hover {
  background-color: #dcfce7 !important;
}