/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra Child Theme for customizations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ===========================
   Hero Savings Calculator
   =========================== */

/* Section and container */
.hero-calculator-section {
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.hero-calculator-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  
}

/* Header */
.hero-calculator-header {
  text-align: center;
  margin-bottom: 30px;
}

.hero-calculator-header h1 {
  margin: 0;
  color: #003366;
  font-size: 35.2px;
  font-weight: 700 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.hero-calculator-header p {
  margin-top: 10px;
  color: #666;
  font-size: 17.6px;
}

/* ===========================
   Slider
   =========================== */
.hero-calculator-slider-section {
  margin-top: 30px;
}

.hero-calculator-slider-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #003366;
}

.hero-calculator-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  outline: none;
  cursor: pointer;
  box-shadow: none !important;
  border: 1px solid #b2b2b2 !important;
}

/* Remove default shadows/borders */
.hero-calculator-slider::-webkit-slider-runnable-track {
  border: none !important;
  box-shadow: none !important;
  height: 8px;
  border-radius: 5px;
  background: #ddd;
}
.hero-calculator-slider::-moz-range-track {
  border: none !important;
  box-shadow: none !important;
  height: 8px;
  border-radius: 5px;
  background: #ddd;
}
.hero-calculator-slider::-ms-track {
  box-shadow: none !important;
  color: transparent !important;
  height: 8px;
  border-radius: 5px;
  background: #ddd;
}

/* Thumb styles (red, no shadow) */
.hero-calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #c0392b !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  margin-top: -6px; /* align with track */
}
.hero-calculator-slider::-moz-range-thumb {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #c0392b !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.hero-calculator-slider::-ms-thumb {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #c0392b !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

/* Labels under slider */
.hero-calculator-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.8px!important;
  font-family: Arial, sans-serif;
  color: #666;
  margin-top: 5px;
}

/* ===========================
   Veteran Toggle
   =========================== */
.hero-calculator-veteran-toggle {
  margin: 25px 0;
  text-align: center;
}

.hero-calculator-veteran-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 24px 30px;
  border-radius: 12px;
  border: 3px solid #ffd700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-calculator-veteran-toggle label:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}
.hero-calculator-veteran-toggle input {
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.hero-calculator-veteran-toggle span {
  font-weight: bold;
  color: white;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.extra-savings-label {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ffd700;
  color: #1e3c72;
  font-size: 10px;
  font-weight: bold;
  padding: 0px 6px;
  border-radius: 0 8px 0 8px;
}

/* ===========================
   Savings Breakdown
   =========================== */
.hero-calculator-savings {
  background: #f9f9f9;
  padding: 20px;
}
.hero-calculator-savings h3 {
  color: #003366;
  text-align: center;
  margin-bottom: 15px;
  font-size:18.72px;
  font-family: Arial, sans-serif;
}
.hero-calculator-savings-items {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-calculator-savings-items div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}
.hero-calculator-savings-items div span:first-child {
  font-weight: bold;
  color: #000;
  font-size: 16px;
}
.hero-calculator-savings-items div span:last-child {
  color: #c0392b;
  font-weight: bold;
  font-size: 16px;
}

/* ===========================
   Total
   =========================== */
.hero-calculator-total {
  background: #003366;
  color: white;
  padding: 15px 20px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-calculator-total h2 {
  color: #fff;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-family: Arial, sans-serif;
}

/* ===========================
   Button
   =========================== */
.hero-calculator-button {
  text-align: center;
  margin-top: 0;
}
.hero-calculator-button button {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
  display: inline-block;
}
.hero-calculator-button button:hover {
  background: #a93226;
}
