/* Advanced Calculators Styles */

.calc-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--off-black) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.calc-hero .section-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.calc-hero .section-title::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin-left: auto;
  margin-right: auto;
}

.calc-hero .section-intro {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
}

/* Advanced Calculator Section */
.advanced-calc-section {
  padding: 4rem 0;
  background-color: var(--grey-light);
}

.calc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.calc-card-feature {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.calc-card-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.calc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calc-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
}

.calc-card-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}

.calc-card-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.calc-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.calc-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.calc-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.calc-card-feature .cta-button {
  align-self: flex-start;
}

/* How To Use Section */
.how-to-section {
  padding: 4rem 0;
  background: var(--white);
}

.how-to-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.how-to-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 0.75rem auto 0;
}

.how-to-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.how-to-card {
  background: var(--grey-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.how-to-card h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

.info-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 155, 50, 0.1) 100%);
  border-left: 4px solid var(--gold);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.info-box h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.info-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--grey-light);
}

.faq-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.faq-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 0.75rem auto 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: var(--grey-light);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: bold;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item a {
  color: var(--gold-text-link);
  text-decoration: none;
  font-weight: 500;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--black) 0%, var(--off-black) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.large-cta {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* Calculator Form Styles */
.calc-container {
  max-width: 1000px;
  margin: 0 auto;
}

.calc-intro {
  background: var(--grey-light);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--gold);
}

.calc-intro h2 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.calc-intro p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
  line-height: 1.6;
}

.calc-instructions {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(184, 155, 50, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.calc-instructions h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.calc-instructions ol {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.calc-instructions li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.calc-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .calc-form-wrapper {
    grid-template-columns: 1fr;
  }
}

.calc-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.calc-form h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--grey-light);
  padding-bottom: 1rem;
}

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

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

.form-group small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.calc-results {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.calc-results h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--grey-light);
  padding-bottom: 1rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card {
  background: var(--grey-light);
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 4px solid var(--gold);
}

.result-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.result-value {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.result-value.currency {
  color: var(--gold-dark);
}

.chart-container {
  margin-bottom: 2rem;
  background: var(--grey-light);
  padding: 2rem;
  border-radius: 8px;
}

.chart-container h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
}

.chart-container canvas,
.chart-container svg {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Table Styles */
.table-container {
  margin-top: 2rem;
  overflow-x: auto;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}

.calc-table thead {
  background: var(--grey-light);
  border-bottom: 2px solid #d0d0d0;
}

.calc-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}

.calc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  color: var(--text-secondary);
}

.calc-table tbody tr:hover {
  background-color: var(--grey-light);
}

.calc-table .currency {
  font-family: 'Courier New', monospace;
  text-align: right;
  font-weight: 500;
}

/* Export Buttons */
.export-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.export-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid #d0d0d0;
  background: var(--white);
  color: var(--text-dark);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.export-btn:hover {
  background: var(--grey-light);
  border-color: var(--gold);
}

.export-btn.primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.export-btn.primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* Disclaimer */
.calc-disclaimer {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 155, 50, 0.1) 100%);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.calc-disclaimer strong {
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .calc-cards-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .how-to-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .calc-form-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-hero {
    padding: 2.5rem 0;
  }

  .advanced-calc-section,
  .how-to-section,
  .faq-section,
  .cta-section {
    padding: 2.5rem 0;
  }
}
