body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f7fa;
  margin: 0;
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: 20px auto;
  background: #fff;
  border: 2px solid #e0e6ed;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* Main Title and Description Styles */
.how-it-works {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 30px 25px;
  margin-bottom: 30px;
  text-align: center;
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.main-title {
  font-size: 2.5em;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 1px;
}

.community-description {
  font-size: 1.1em;
  margin: 0;
  color: #f8f9fa;
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Calculate Button Container */
.calculate-button-container {
  display: flex;
  justify-content: center;
  margin: 25px 0;
}

.calculate-button-container button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calculate-button-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.calculate-button-container button:active {
  transform: translateY(0);
}

/* New Input Layout Styles */
.input-layout {
  border: 2px solid #000;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
}

.note-section {
  text-align: center;
  margin-bottom: 20px;
}

.weightage-note {
  font-weight: bold;
  margin: 0;
  color: #333;
  font-size: 1.1em;
}

.weightage-remaining {
  font-weight: bold;
  margin: 5px 0 0 0;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  font-size: 1em;
}

.weightage-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.weightage-warning {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.main-input-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-section {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.value-inputs, .weightage-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.input-box {
  border: 2px solid #000;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 60px;
  justify-content: center;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.input-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-color: #2a7ae2;
}

.input-box label {
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
  color: #333;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-box input, .input-box select {
  width: 100%;
  max-width: 100px;
  border: 2px solid #ddd;
  padding: 6px 10px;
  text-align: center;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 500;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.input-box input:focus, .input-box select:focus {
  outline: none;
  border-color: #2a7ae2;
  box-shadow: 0 0 0 3px rgba(42, 122, 226, 0.1), inset 0 1px 3px rgba(0,0,0,0.1);
  transform: scale(1.02);
}

/* Simple Clean Slider Styles */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.slider-container input[type="range"] {
  width: 80%;
  max-width: 200px;
  height: 20px;
  border-radius: 10px;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin: 0;
  border: none;
  padding: 0;
}

/* Simple line track */
.slider-container input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  border: none;
  outline: none;
  margin: 8px 0;
}

.slider-container input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  border: none;
  outline: none;
}

/* Simple circular thumb */
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a90e2;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  margin-top: -8px;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a90e2;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.slider-container input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-container input[type="range"]:focus {
  outline: none;
}

.slider-value {
  font-weight: bold;
  color: #4a90e2;
  font-size: 0.9em;
  min-width: 25px;
  text-align: center;
}

.middle-section {
  display: flex;
  justify-content: center;
}

.gender-box {
  width: 200px;
}

.bottom-section {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.preferences-box {
  border: 2px solid #000;
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.preferences-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-color: #2a7ae2;
}

.preferences-label {
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weightage-box {
  border: 2px solid #000;
  padding: 12px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.weightage-box label {
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
  color: #333;
  font-size: 0.9em;
}

.weightage-box input {
  width: 100%;
  max-width: 120px;
  border: 2px solid #ddd;
  padding: 6px 10px;
  text-align: center;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 500;
  background: #fff;
  transition: all 0.3s ease;
}

.weightage-box input:focus {
  outline: none;
  border-color: #2a7ae2;
  box-shadow: 0 0 0 2px rgba(42, 122, 226, 0.1);
}

/* Weightage Chart Styles */
.weightage-chart {
  margin-top: 20px;
  padding: 15px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
}

.weightage-chart h3 {
  text-align: center;
  margin: 0 0 12px 0;
  color: #333;
  font-size: 1.1em;
}

.rectangular-pie-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chart-bar-container {
  position: relative;
  height: 40px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.chart-segments {
  display: flex;
  height: 100%;
  width: 100%;
}

.segment {
  height: 100%;
  transition: width 0.5s ease;
}

.rent-segment { background: #ff6b6b; }
.distance-segment { background: #4ecdc4; }
.area-segment { background: #45b7d1; }
.amenities-segment { background: #f9ca24; }
.beds-segment { background: #6c5ce7; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85em;
  font-weight: 500;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.rent-color { background: #ff6b6b; }
.distance-color { background: #4ecdc4; }
.area-color { background: #45b7d1; }
.amenities-color { background: #f9ca24; }
.beds-color { background: #6c5ce7; }

.bar-value {
  min-width: 35px;
  font-weight: bold;
  color: #333;
  text-align: right;
  font-size: 0.85em;
}

/* Contributor and Address Styles */
.contributor-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #2a7ae2;
}

.contributor-name, .contributor-branch {
  font-size: 0.9em;
  color: #495057;
  font-weight: 500;
}

.pg-address {
  margin-top: 8px;
  padding: 8px 12px;
  background: #e8f4ff;
  border-radius: 6px;
  color: #2a7ae2;
  font-weight: 500;
  font-size: 0.95em;
  border-left: 4px solid #2a7ae2;
}

/* Existing styles continue below */
fieldset {
  border: 2px solid #b3d8ff;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #fafdff;
  box-shadow: 0 2px 8px rgba(42, 122, 226, 0.04);
}
legend {
  font-size: 1.2em;
  text-align: center;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px 0;
}
label {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #2a3b4c;
  margin-bottom: 6px;
}
.prefs input, .prefs select {
  width: 100px;
  margin: 2px;
  border-radius: 6px;
  border: 1px solid #b3d8ff;
  padding: 4px 8px;
  font-size: 1em;
}
.results {
  margin-top: 20px;
}
.pg-card {
  border: 2px solid #b3d8ff;
  border-radius: 16px;
  margin: 22px 0;
  padding: 22px 24px 16px 24px;
  background: linear-gradient(120deg, #fafdff 80%, #e8f4ff 100%);
  box-shadow: 0 2px 16px rgba(42, 122, 226, 0.07);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pg-card:hover {
  box-shadow: 0 8px 32px rgba(42, 122, 226, 0.13);
  border-color: #2a7ae2;
}
.pg-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1a2a3a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.area-icon, .amenity-icon {
  font-size: 1.2em;
  margin-right: 2px;
}
.area-name {
  font-weight: 500;
  color: #2a7ae2;
}
.score-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.98em;
}
.score-table th, .score-table td {
  border: 1px solid #e0e6ed;
  padding: 6px 10px;
  text-align: center;
}
.score-table th {
  background: #e8f4ff;
  color: #1a2a3a;
  font-weight: 600;
}
.score-table td {
  background: #fafdff;
  font-size: 1.01em;
}
.score-table tr:hover td {
  background: #e8f4ff;
  transition: background 0.2s;
}
.match-score {
  font-size: 1.1em;
  color: #2a7ae2;
  font-weight: bold;
  margin-bottom: 6px;
}
.pg-details {
  font-size: 0.98em;
  color: #2a3b4c;
  margin-top: 4px;
}
.how-to-explain {
  background: #fffbe8;
  border: 2px solid #ffe082;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(255, 193, 7, 0.07);
}
.how-to-explain h2 {
  margin-top: 0;
  color: #b28704;
}
.how-to-explain ul {
  margin: 0 0 0 18px;
  color: #6d5c1c;
  font-size: 1.05em;
}
.area-amenity-row {
  gap: 40px;
  flex-wrap: wrap;
}
#areaPrefsContainer, #amenityPrefsContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
}
.area-pref-row, .amenity-pref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  justify-content: space-between;
  min-height: 30px;
}

.area-pref-row span, .amenity-pref-row span {
  min-width: 120px;
  font-weight: 500;
  color: #3a5a8a;
  display: flex;
  align-items: center;
}

.area-pref-row select, .amenity-pref-row select {
  min-width: 60px;
  border-radius: 6px;
  border: 1.5px solid #b3d8ff;
  padding: 4px 10px;
  font-size: 1em;
  background: #fafdff;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 30px;
}
.area-pref-row select:focus, .amenity-pref-row select:focus {
  border-color: #2a7ae2;
  box-shadow: 0 0 0 2px #e8f4ff;
  outline: none;
}
.area-pref-row span, .amenity-pref-row span {
  min-width: 90px;
  font-weight: 500;
  color: #3a5a8a;
}
input[type="number"] {
  border-radius: 6px;
  border: 1.5px solid #b3d8ff;
  padding: 4px 10px;
  font-size: 1em;
  background: #fafdff;
  margin-top: 2px;
  margin-bottom: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="number"]:focus {
  border-color: #2a7ae2;
  box-shadow: 0 0 0 2px #e8f4ff;
  outline: none;
}
button[type="button"] {
  background: #2a7ae2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 1.1em;
  font-weight: 500;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(42, 122, 226, 0.07);
  transition: background 0.2s, box-shadow 0.2s;
}
button[type="button"]:hover {
  background: #185bb5;
  box-shadow: 0 4px 16px rgba(42, 122, 226, 0.13);
}
.pg-green { color: #1ca14e; font-weight: bold; }
.pg-red { color: #e53935; font-weight: bold; }
.pg-yellow { color: #e6b800; font-weight: bold; }
.senior-note {
  margin-top: 10px;
  background: #f8f6e7;
  border-left: 4px solid #ffe082;
  padding: 8px 14px;
  border-radius: 6px;
  color: #6d5c1c;
  font-size: 1.04em;
  font-style: italic;
}
.amenity-pref-row input[type="checkbox"] {
  accent-color: #2a7ae2;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

.amenity-pref-row {
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  min-height: 30px;
}

/* Contributor and Address Styles */
.contributor-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #2a7ae2;
}

.contributor-name, .contributor-branch {
  font-size: 0.9em;
  color: #495057;
  font-weight: 500;
}

.pg-address {
  margin-top: 8px;
  padding: 8px 12px;
  background: #e8f4ff;
  border-radius: 6px;
  color: #2a7ae2;
  font-weight: 500;
  font-size: 0.95em;
  border-left: 4px solid #2a7ae2;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    margin: 15px;
    padding: 15px;
  }
  
  .main-title {
    font-size: 2.2em;
  }
  
  .community-description {
    font-size: 1em;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 10px;
    margin: 10px;
  }
  
  .main-title {
    font-size: 2em;
  }
  
  .community-description {
    font-size: 0.95em;
  }
  
  .how-it-works {
    padding: 25px 20px;
  }
  
  .top-section, .bottom-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .value-inputs, .weightage-inputs {
    flex-direction: row;
    gap: 10px;
  }
  
  .input-box {
    flex: 1;
    min-height: 50px;
  }
  
  .preferences-box {
    min-height: 150px;
  }
  
  .calculate-button-container button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 600px) {
  .container {
    border-width: 1px;
    padding: 5px;
    margin: 5px;
  }
  
  .main-title {
    font-size: 1.8em;
  }
  
  .community-description {
    font-size: 0.9em;
  }
  
  .how-it-works {
    padding: 20px 15px;
  }
  
  .input-layout {
    padding: 10px;
  }
  
  .top-section, .bottom-section {
    gap: 15px;
  }
  
  .value-inputs, .weightage-inputs {
    flex-direction: column;
    gap: 10px;
  }
  
  .input-box {
    min-height: 40px;
  }
  
  .preferences-box {
    min-height: 120px;
    padding: 10px;
  }
  
  .calculate-button-container button {
    padding: 10px 25px;
    font-size: 1em;
  }
  
  .pg-card {
    padding: 15px;
    margin: 15px 0;
  }
  
  .score-table th, .score-table td {
    padding: 4px 6px;
    font-size: 0.9em;
  }
  
  .contributor-info {
    flex-direction: column;
    gap: 5px;
  }
  
  .chart-legend {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.6em;
  }
  
  .community-description {
    font-size: 0.85em;
  }
  
  .input-box label {
    font-size: 0.85em;
  }
  
  .input-box input, .input-box select {
    max-width: 80px;
    font-size: 0.9em;
  }
  
  .preferences-label {
    font-size: 1em;
  }
  
  .calculate-button-container button {
    padding: 8px 20px;
    font-size: 0.95em;
  }
  
  .slider-container {
    gap: 8px;
  }
  
  .slider-value {
    font-size: 0.8em;
    min-width: 20px;
  }
}

/* Score Breakup Toggle Button */
.score-breakup-toggle {
  text-align: center;
  margin: 15px 0;
}

.toggle-btn {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
  background: linear-gradient(135deg, #357abd 0%, #2d6da3 100%);
}

.toggle-btn:active {
  transform: translateY(0);
} 