/*
Theme Name: Ganpati SmartCare Service
Theme URI: https://ganpatiservice.com
Author: Ganpati Service Team
Author URI: https://ganpatiservice.com
Description: Premium Appliance Repair & Doorstep Service Booking & Tracking WordPress Theme with Google Sheets CRM Sync & Dynamic Menu.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ganpati-smartcare
Tags: service, appliance-repair, booking, crm, tracking, responsive-layout, custom-menu
*/

:root {
  --primary: #1e3c72;
  --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --accent: #ff6b35;
  --accent-hover: #e85a24;
  --success: #10b981;
  --dark: #0f172a;
  --light: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #334155;
  --text-muted: #64748b;
  --radius: 14px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background: #f1f5f9;
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.site-header {
  background: var(--primary-gradient);
  color: white;
  padding: 14px 24px;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: #ff6b35;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 12px;
  opacity: 0.85;
}

/* Header Navigation Bar */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-emergency {
  background: #ef4444;
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2s infinite;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Main Container */
.main-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border-radius: 20px;
  padding: 35px 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-text h1 {
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 800;
}

.hero-text p {
  font-size: 16px;
  opacity: 0.9;
}

.trust-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tabs */
.nav-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.tab-btn {
  padding: 10px 22px;
  border: none;
  background: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* Grid Layout */
.portal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
}

@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  border: 1px solid var(--border);
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

/* Product Selector */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.product-chip {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}

.product-chip:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.product-chip.selected {
  border-color: var(--primary);
  background: #eff6ff;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(30, 60, 114, 0.15);
}

.product-chip .icon {
  font-size: 28px;
  display: block;
  margin-bottom: 5px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  background: #fff;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Quick Status Tracker */
.track-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

/* Status Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 15px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  margin-bottom: 20px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--border);
}

.timeline-step.completed::before {
  border-color: var(--success);
  background: var(--success);
}

.timeline-step.active::before {
  border-color: var(--accent);
  background: white;
}

/* Success Modal / Box */
.success-banner {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  display: none;
}

.ticket-number {
  font-size: 24px;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 1px;
  background: #d1fae5;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  margin: 10px 0;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 35px 20px 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

/* Floating Action Button for Mobile */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fab-call { background: #1e3c72; }
.fab-wa { background: #25d366; }
