/* HR Tools Common Styles */

/* ===== Calculator Section ===== */
.hr-tools-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0px 15px;
  width: 100%;
}
/* Formula Display */
.formula {
    
    overflow-x: auto;

}


/* ===== Intro Heading & Text ===== */
.hr-tools-header {
  margin-bottom: 40px;
}

.hr-tools-header h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 16px;
}

.hr-tools-header p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
  color: #555;
}

/* ===== White Card ===== */
.hr-tools-card {
  background: #fafafe;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-top: 40px;
}

.hr-tools-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 10px;
}

.hr-tools-card p {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin: 0 auto 30px auto;
}

/* ===== Form Layout ===== */
.hr-tools-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.ETR-form{
  display: block;
  max-width: 500px;
  margin: auto;
}
.hr-tools-card h1{
  text-align: center;
  margin-bottom: 30px;
}

.hr-tools-form .form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ETR-form .form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px;
}

.hr-tools-form .form-label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
  font-size: 0.95rem;
}
.hr-tools-form .form-group{
  position: relative;
}
.hr-tools-form .form-group.date-input{
  background-image: url('../img/calendar.png');
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) 40px;
    background-size: 13px;
}
.hr-tools-form .form-input {
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
  display:block;
  height:47px;
  width:100%;
  background-color: white;
}
.hr-tools-form input.form-input[type='date']{
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
}
.hr-tools-form .form-input:focus {
  border-color: #4e5af4;
}

/* ===== Submit Button ===== */
.hr-tools-btn {
  grid-column: 1 / 3;
  background: #4e5af4;
  color: #fff;
  border: none;
  padding: 14px 35px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
  margin:auto;
  margin-bottom: 10px;
  width: 500px;
}

.hr-tools-btn:hover {
  background: #3f4dda;
}

.hr-tools-btn:active {
  background: #3741bb;
}

/* ===== Results Section ===== */
.hr-tools-results {
  display: none;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
}

.hr-tools-results.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hr-tools-results h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.hr-tools-results h4::before {
  content: "";
  width: 4px;
  height: 24px;
  background-color: #4e5af4;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.hr-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.hr-tools-card-result {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hr-tools-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.hr-tools-card-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4e5af4;
}

.hr-tools-card-subtitle {
  font-size: 0.8rem;
  color: #777;
  margin-top: 3px;
}

/* ===== Content Below Card ===== */
.hr-tools-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
  margin: 40px 0 20px;
  line-height: 1.3;
}

.hr-tools-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
}

.hr-tools-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 10px;
}

.hr-tools-section ol {
  margin: 20px 0;
  padding-left: 25px;
}
.hr-tools-section ul {
  list-style-type: disc !important;
  margin: 20px 0;
  padding-left: 25px;
}

.hr-tools-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

.hr-tools-section strong {
  font-weight: 600;
  color: #333;
}

.hr-tools-section a {
  color: #4e5af4;
  text-decoration: none;
  transition: color 0.3s;
}

.hr-tools-section a:hover {
  color: #3f4dda;
  text-decoration: underline;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  .hr-tools-card {
    padding: 25px 20px;
  }

  .hr-tools-card h3 {
    font-size: 1.3rem;
  }

  .hr-tools-header h2 {
    font-size: 1.5rem;
  }

  .hr-tools-form {
    grid-template-columns: 1fr;
  }

  .hr-tools-btn {
    grid-column: auto;
    width: 100%;
    margin-bottom: 10px;
  }

  .hr-tools-grid {
    grid-template-columns: 1fr;
  }

  .hr-tools-card-result {
    padding: 15px 10px;
  }

  .form-input,
  .form-label {
    font-size: 0.9rem;
  }

  .hr-tools-section h2 {
    font-size: 1.5rem;
  }

  .hr-tools-section h3 {
    font-size: 1.2rem;
  }

  .hr-tools-section p,
  .hr-tools-section li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hr-tools-card h3,
  .hr-tools-header h2 {
    font-size: 1.25rem;
  }

  .hr-tools-header p {
    font-size: 0.9rem;
  }

  .form-input {
    font-size: 0.85rem;
    padding: 10px;
  }

  .hr-tools-btn {
    font-size: 0.95rem;
    padding: 12px 25px;
    margin-bottom: 10px;
  }

  .hr-tools-card-subtitle,
  .hr-tools-card-title,
  .hr-tools-card-value {
    font-size: 0.85rem;
  }

  .hr-tools-section h2 {
    font-size: 1.3rem;
  }

  .hr-tools-section h3 {
    font-size: 1.1rem;
  }

  .hr-tools-section p,
  .hr-tools-section li {
    font-size: 0.9rem;
  }
} 
