/* ===================================================== */
/* SMART PUMP SELECTION TOOL – FOCUSED DESIGN */
/* ===================================================== */

:root {
  --primary-color: #8b0d1a;       /* Deep Red */
  --primary-light: #c0392b;       /* Lighter Red */
  --accent-color: #2980b9;        /* Blue for technical */
  --bg-card: #ffffff;
  --bg-input: #f8f9fa;
  --text-main: #2c3e50;
  --text-muted: #7f8c8d;
  --border-radius: 8px;
  --shadow-card: 0 10px 30px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* --- Main Card --- */
.pump-search-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 30px;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-top: 5px solid var(--primary-color);
  position: relative;
}

/* --- Header --- */
.search-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.header-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.search-title {
  margin: 0;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 700;
}

.search-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Core Section (The Top 3) --- */
.core-search-section {
  background: rgba(139, 13, 26, 0.03); /* Faint red tint */
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(139, 13, 26, 0.1);
  margin-bottom: 20px;
}

/* Hero Fields Styling */
.hero-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: block;
}

.hero-field label i {
  margin-right: 5px;
  opacity: 0.8;
}

/* Larger Inputs for Core Fields */
.hero-field input,
.hero-field select {
  height: 50px; /* Taller than standard */
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  width: 100%;
  padding: 0 15px;
  transition: var(--transition);
  background: white;
}

.hero-field input:focus,
.hero-field select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(139, 13, 26, 0.1);
  outline: none;
}

/* Unit Badge styling */
.input-container { position: relative; }

.unit-badge {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  background: #eee;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
}

.required { color: red; }

/* --- Toggle Button Area --- */
.toggle-container {
  text-align: center;
  margin: 10px 0 20px 0;
  position: relative;
}

/* Draw a line behind the button */
.toggle-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: 0;
}

.classification-btn {
  background: white;
  border: 1px solid var(--accent-color) !important;
  color: var(--accent-color) !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1 !important;
  transition: var(--transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.classification-btn:hover {
  background: var(--accent-color);
  color: white !important;
}

.arrow-indicator {
  transition: transform 0.3s ease;
}

.arrow-indicator.rotate {
  transform: rotate(180deg);
}

/* --- Advanced Fields (Hidden) --- */
.advanced-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease;
  opacity: 0;
  margin-bottom: 0;
}

.advanced-wrapper.open {
  max-height: 800px; /* Arbitrary large height to allow content */
  opacity: 1;
  margin-bottom: 25px;
}

.advanced-inner-content {
  padding: 15px;
  background: #f8f9fa;
  border-radius: var(--border-radius);
}

/* Standard Fields styling */
.field-group { margin-bottom: 15px; }

.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
  display: block;
}

.field-group select,
.field-group input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 13px;
}

.field-group select:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* --- Search Footer --- */
.search-footer {
  margin-top: 10px;
}

.search-btn {
  width: 100%;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(139, 13, 26, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 13, 26, 0.4);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-field {
    margin-bottom: 15px;
  }
  .pump-search-card {
    padding: 20px;
  }
}