/* File: /home4/ramrosoft/mybas.com.au/assets/css/calculator.css */

/* Calculator page specific styles */
.calculator-page .hero {
  background: linear-gradient(135deg, #0052cc, #007bff);
  color: #fff;
  padding: 5rem 0;
}

.calculator-hero {
  text-align: center;
}

.calculator-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.calculator-hero .subtitle {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.calculator-hero .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Calculator container */
.calculator-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  max-width: 900px;
  overflow: hidden;
}

/* Calculator tabs */
.calculator-tabs {
  display: flex;
  background: #f5f8fd;
  border-bottom: 1px solid #e6e9ef;
}

.calculator-tab {
  flex: 1;
  padding: 1.2rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: #445378;
}

.calculator-tab:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

.calculator-tab.active {
  color: #0052cc;
  background-color: #fff;
}

.calculator-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0052cc;
}

/* Calculator content */
.calculator-content {
  padding: 2rem;
}

.calculator-panel {
  display: none;
}

.calculator-panel.active {
  display: block;
}

.calculator-description {
  margin-bottom: 2rem;
  color: #445378;
  text-align: center;
  font-size: 1.1rem;
}

/* Calculator form */
.calculator-form {
  margin-bottom: 2.5rem;
}

.calculator-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
}

.calculator-form input[type="number"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1.2rem;
  transition: border-color 0.3s ease;
}

.calculator-form input[type="number"]:focus {
  border-color: #0052cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

/* Calculator results */
.calculator-result {
  background: #f5f8fd;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e6e9ef;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row.highlight {
  background-color: #e8f0ff;
  margin: 0 -1.5rem;
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: #0052cc;
}

.result-row .label {
  font-weight: 600;
  color: #445378;
}

.result-row .value {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
}

/* GST info section */
.gst-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gst-info-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.gst-info-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #0052cc;
  font-size: 1.3rem;
}

.gst-info-card ul, .gst-info-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.gst-info-card li {
  margin-bottom: 0.5rem;
}

/* Formula table */
.formula-table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.formula-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.formula-table th {
  background-color: #0052cc;
  color: #fff;
  padding: 1rem;
  text-align: left;
}

.formula-table td {
  padding: 1rem;
  border-bottom: 1px solid #e6e9ef;
}

.formula-table tr:nth-child(even) {
  background-color: #f5f8fd;
}

.formula-table tr:last-child td {
  border-bottom: none;
}

/* BAS GST section */
.bas-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.bas-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bas-content h3 {
  color: #0052cc;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.bas-fields-list {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.bas-fields-list li {
  margin-bottom: 0.5rem;
}

.bas-fields-list strong {
  color: #0052cc;
  font-weight: 700;
}

/* CTA sections */
.cta-box {
  background: linear-gradient(135deg, #0052cc, #007bff);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
  color: #fff;
}

.cta-box h4 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.cta-section {
  background: linear-gradient(135deg, #0052cc, #007bff);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.cta-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  .bas-info {
    grid-template-columns: 1fr;
  }
  
  .gst-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .calculator-tabs {
    flex-direction: column;
  }
  
  .calculator-tab {
    border-bottom: 1px solid #e6e9ef;
  }
  
  .calculator-tab.active::after {
    display: none;
  }
  
  .gst-info-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-hero h1 {
    font-size: 2.2rem;
  }
  
  .calculator-hero .subtitle {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .calculator-content {
    padding: 1.5rem;
  }
  
  .result-row {
    flex-direction: column;
  }
  
  .result-row .value {
    margin-top: 0.5rem;
  }
}