/* CALCULATOR PAGE STYLES */

#calculator-section {
  background: var(--bg-light);
  padding: 60px 20px 80px;
  min-height: calc(100vh - 200px);
}

.calculator-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calculator-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.jobDropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
#jobLabel {
  margin: 0;
}
.jobDropdown {
  position: relative;
  width: 200px;
  justify-self: center;
}
#jobs {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  position: absolute;
  padding-top: 1em;
  box-shadow: 0 8px 12px -4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  background-color: white;
  width: 100%;
  top: 85%; 
  left: 0;
  border-bottom-left-radius: .5em;
  border-bottom-right-radius: .5em;
}
.view {
  display: flex;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: .5rem;
  border-radius: .5em;
  align-items: center;
}
#carrot {
  all: unset;
  display: flex;
  padding: 3px;
  margin-left: auto;
  cursor: pointer;
  width: 20px;
  height: 20px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color .3s ease, transform .2s ease;
}
#carrot.active {
  transform: rotate(180deg);
}
input {
  margin: 0;
  height: 15px;
  width: 15px;
}
label {
  margin: 0;
}
#jobs.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.jobInput {
  display: flex;
  padding: .5rem;
  align-items: center;
  gap: .5rem;
}
/* Calculator Card */
.calculator-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 15px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
  pointer-events: none;
}

.input-wrapper input {
  padding-left: 35px;
}

.form-group input {
  width: 100%;
  padding: 12px 5px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.calculate-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 1rem;
}

#calculator-form p {
  text-align: center;
  color: var(--text-light);
}

/* Results Card */
.results-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
  justify-content: center;
  align-items: center;
}

.results-placeholder {
  text-align: center;
  color: var(--text-light);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.results-placeholder h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.results-placeholder p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Results Display */
#results h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}
#totalCharges {
  background-color: var(--primary);
}

#results p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 1rem;
}

#results p strong {
  color: var(--text);
  font-weight: 600;
}

#results p:last-child {
  color: white;
  background-color: var(--primary);
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1rem;
  border: 2px solid var(--primary);
}

#results p:last-child strong {
  color: var(--white);
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Call to Action */
.calculator-cta {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.calculator-cta h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.calculator-cta p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--primary);
}

/* Responsive Design */
@media (min-width: 768px) {
  .calculate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  .cta-button-secondary:hover {
    background: var(--primary);
    color: var(--white);
  }
}
@media (min-width: 768px) {
  #carrot:hover {
    background-color: #f5f5f5;
  }
}
@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .results-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .calculator-card, .results-card {
    padding: 1.5rem;
  }

  .form-section-title {
    font-size: 1.3rem;
  }

  .calculator-cta {
    padding: 2rem 1.5rem;
  }

  .calculator-cta h2 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button, .cta-button-secondary {
    width: 100%;
  }
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (500px <= width <= 768px) {
  .info-card:nth-child(3) {
    justify-self: center;
    grid-column: 1/3;
  }
}

@media (max-width: 500px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
}