html, body {
  margin: 0;
  font-family: 'Monserrat', sans-serif;
  background: #f8fafc;
  color: #111;
  height:100%;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  color: white;
  text-align: center;
  padding-top: 80px; /* enough space for the absolute menu */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-menu {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.top-menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.top-menu li a:hover {
  color: #ffd700;
}

/* unvisited link */
a:link {
  color: red;
}

/* visited link */
a:visited {
  color: green;
}

/* mouse over link */
a:hover {
  color: grey;
}

/* selected link */
a:active {
  color: blue;
}

.hero {
  margin: 0;
  padding: 0;
}

.change-indicator {
  font-size: 1.2em;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.4);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.dropdowns select {
  padding: 8px 16px;
  font-size: 16px;
  margin: 0 10px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 20px;
  justify-content: center;
}

.content {
    max-width: 960px;
    margin: 60px auto;
    background: #fff;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    line-height: 1.8;
    color: #333;
}

.content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #111;
    font-size: 28px;
}

.content p {
    margin-bottom: 18px;
    font-size: 17px;
}

.content a {
    color: #0d6efd;
    text-decoration: underline;
}

.column-left {
  flex: 1 1 60%;
  min-width: 300px;
}

.column-right {
  flex: 1 1 35%;
  min-width: 300px;
}

.future-widgets {
  text-align: center;
  padding: 40px;
  font-style: italic;
  color: #888;
}

.site-footer {
  background: #1f2937;
  color: #f3f4f6;
  text-align: center;
  padding: 20px;
  margin-top: auto; /* Pushes footer to the bottom if not enough content */
}

.row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: flex-start;
}

.grey{
    background-color:#e7e4e4;
}

.column-left {
  flex: 1;
}

.column-legend {
  width: 30%;
  font-size: 14px;
}

.column-right {
  flex: 1.2;
}

#priceChart {
  width: 70%;
  max-width: 70%;
  height: 400px;
  margin: 0 auto;
}

#customLegend {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
#customLegend div {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
#customLegend span {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 3px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
}

.legend-left {
  display: flex;
  align-items: center;
}

.legend-left span {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 3px;
  display: inline-block;
}

.legend-right {
  font-weight: bold;
}

.change-up {
  color: red;
}

.change-down {
  color: green;
}

.contact-form {
      width: 50%;
      margin: 40px auto;
      background: #fff;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-form h2 {
      margin-bottom: 20px;
}
    
.contact-form label {
      display: block;
      margin-bottom: 6px;
      font-weight: bold;
}
    
.contact-form input, .contact-form textarea {
      width: 100%;
      padding: 10px;
      margin-bottom: 16px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-family: inherit;
}
    
.contact-form button {
      padding: 10px 20px;
      background: #1f2937;
      color: white;
      border: none;
      border-radius: 4px;
      font-size: 16px;
      cursor: pointer;
}
    
.contact-form button:hover {
     background: #374151;
}

.dropdowns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.dropdowns select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-color: #ffffff;
  border: 2px solid #1f2937;
  color: #1f2937;
  padding: 10px 40px 10px 14px; /* extra right padding for arrow */
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  min-width: 180px;

  background-image: url('data:image/svg+xml;utf8,<svg fill="%231f2937" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548L10 12.032l4.484-4.484L16 9.064l-6 6-6-6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.dropdowns select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
  outline: none;
}


.hero .dropdowns {
  margin-top: 10px;
}

    
.success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}
    
.error {
      background: #fee2e2;
      color: #991b1b;
      padding: 10px;
      border-radius: 6px;
      margin-bottom: 20px;
}
    


.price-form {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}
.price-form label,
.price-form input,
.price-form select,
.price-form button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.price-form input,
.price-form select,
.price-form button {
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .price-form {
        padding: 15px;
        font-size: 18px;
    }

    .price-form input,
    .price-form select,
    .price-form button {
        font-size: 18px;
        padding: 14px;
    }
}
