/* Calculator page styles — designed to work WITH the site's main.css + modern.css */

.calc-section { padding-top: 32px; padding-bottom: 64px; }

/* Equal-height columns */
.calc-section .row.g-4 > [class*="col-"] { display: flex; }

/* Cards */
.calc-card {
  background: #fff;
  border: 1px solid rgba(20,37,54,.08);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(20,37,54,.055);
  padding: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Labels */
.calc-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #142536;
  margin-bottom: 5px;
}

/* Inputs */
.calc-input {
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(20,37,54,.14);
  border-radius: 8px;
  padding: 10px 14px;
  background-color: #f9f8f5;
  color: #142536;
}
.calc-input:focus {
  border-color: #c7925b;
  box-shadow: 0 0 0 3px rgba(199,146,91,.14);
  background-color: #fff;
}
.calc-input[readonly] {
  background-color: #f3f1ec;
  color: #4a5566;
}
/* Select */
.calc-select {
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(20,37,54,.14);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  background-color: #f9f8f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23142536' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  color: #142536;
  appearance: none;
  -webkit-appearance: none;
}
.calc-select:focus {
  border-color: #c7925b;
  box-shadow: 0 0 0 3px rgba(199,146,91,.14);
}

/* Toggle radio buttons */
.calc-toggles {
  display: flex;
  background: #f3f1ec;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(20,37,54,.1);
}
.calc-toggles label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #647182;
  border-radius: 8px;
  transition: background .2s, color .2s;
  line-height: 1.3;
}
.calc-toggles input[type="radio"] { display: none; }
.calc-toggles input[type="radio"]:checked + label {
  background: #c7925b;
  color: #fff;
}

/* Push the reset button to the bottom of the left card */
.calc-card > .btn-calc-reset { margin-top: auto; }

/* Section blocks (FT/PT) */
.section-block { display: none; flex-direction: column; gap: 16px; }
.section-block.active { display: flex; }

/* Groups (Employee/Employer) */
.calc-group {
  border: 1px solid rgba(20,37,54,.1);
  border-radius: 10px;
  padding: 18px 16px 10px;
  position: relative;
}
.calc-group-badge {
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-employee { background: #c7925b; color: #fff; }
.badge-employer { background: #142536; color: #fff; }

/* Rows */
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20,37,54,.06);
  gap: 12px;
}
.calc-row:last-child { border-bottom: none; }
.calc-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.calc-row-title { font-size: 13px; color: #4a5566; line-height: 1.4; }
.calc-label-sub { font-size: 10px; color: #c7925b; display: block; font-weight: 600; line-height: 1.4; }
.calc-val { font-size: 14px; font-weight: 700; color: #142536; white-space: nowrap; }

/* Sum total row */
.calc-row-total {
  border-top: 2px solid rgba(20,37,54,.12);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 8px;
}
.calc-row-total .calc-row-title { font-weight: 800; color: #142536; }
.calc-row-total .calc-val { font-size: 15px; font-weight: 900; color: #c7925b; }

/* Result panel */
.calc-result {
  background: #f9f8f5;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(199,146,91,.25);
  text-align: center;
}
.calc-result-label {
  font-size: 11px;
  font-weight: 800;
  color: #c7925b;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.calc-result-value {
  font-size: 32px;
  font-weight: 900;
  color: #142536;
  line-height: 1.2;
}
.calc-result-sub { margin-top: 4px; font-size: 13px; }

/* Section titles */
.calc-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #c7925b;
  border-left: 3px solid #c7925b;
  padding-left: 10px;
  margin-bottom: 8px;
}

/* Stat cards (years/months/days) */
.calc-stat-card {
  background: #f9f8f5;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(20,37,54,.1);
}
.calc-stat-num { font-size: 22px; font-weight: 900; color: #142536; }
.calc-stat-label { font-size: 10px; font-weight: 800; color: #647182; text-transform: uppercase; }

/* Leave hero */
.calc-leave-hero {
  background: #f9f8f5;
  border: 1px solid rgba(199,146,91,.25);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-leave-days { font-size: 20px; font-weight: 900; color: #142536; }
.calc-leave-money { font-size: 13px; font-weight: 800; color: #c7925b; }

/* Grand total */
.calc-grand-total {
  border: 1px solid rgba(199,146,91,.3);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background-color: #f9f8f5;
}
.calc-grand-total .calc-label { color: #142536; margin-bottom: 8px; }
.calc-grand-input {
  text-align: center;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #c7925b !important;
  border-color: rgba(199,146,91,.3) !important;
  background-color: #fff !important;
}

/* Buttons */
.btn-calc-action {
  display: block;
  width: 100%;
  background: #c7925b;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.btn-calc-action:hover { background: #b5834f; }

.btn-calc-reset {
  display: block;
  width: 100%;
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.btn-calc-reset:hover { background: #bb2d3b; color: #fff; }

/* Modals */
.calc-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.calc-modal-content {
  background: #fff;
  margin: 12% auto;
  padding: 30px;
  border: 1px solid rgba(20,37,54,.1);
  width: 90%;
  max-width: 460px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.calc-modal-content h2 {
  color: #c7925b;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 800;
}
.calc-modal-content .close-btn {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}
.calc-modal-content .close-btn:hover { color: #c7925b; }

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Responsive */
@media (max-width: 991px) {
  .calc-card { padding: 20px; }
}
@media (max-width: 767px) {
  .calc-section { padding-top: 20px; padding-bottom: 40px; }
  .calc-card { padding: 16px; }
  .calc-toggles { flex-direction: column; gap: 4px; }
  .calc-toggles label { font-size: 11px; padding: 8px; }
  .calc-result-value { font-size: 24px; }
  .calc-stat-num { font-size: 18px; }
  .calc-grand-input { font-size: 18px !important; }
}
