/* Modern Calculator Design - Commute Cost Calculator */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Modern Calculator Container */
.modern-calculator {
  max-width: 750px !important;
  width: 100%;
  margin: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Calculator Header */
.calculator-header {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.calculator-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calculator-subtitle {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 300;
}

/* Calculator Content */
.calculator-content {
  padding: 30px;
}

/* Input Section */
.input-section {
  margin-bottom: 30px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.input-column {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #053b7d;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #053b7d;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: white;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #053b7d;
  box-shadow: 0 0 0 3px rgba(5, 59, 125, 0.1);
}

.form-control:hover {
  border-color: #298bac;
}

.form-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 4px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 59, 125, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 59, 125, 0.4);
}

.btn-secondary {
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Results Section */
.results-section {
  margin-top: 30px;
}

.results-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #dee2e6;
}

.results-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #053b7d;
  text-align: center;
  margin: 0 0 25px 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.result-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.result-card.highlight {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  border: none;
}

.result-card.highlight .result-label,
.result-card.highlight .result-description {
  color: rgba(255, 255, 255, 0.9);
}

.result-card.highlight-secondary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
}

.result-card.highlight-secondary .result-label,
.result-card.highlight-secondary .result-description {
  color: rgba(255, 255, 255, 0.9);
}

.result-card.highlight-secondary .result-value {
  color: white;
}

.result-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.result-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #053b7d;
  margin-bottom: 6px;
}

.result-card.highlight .result-value {
  color: white;
}

.result-description {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.3;
}

/* Comparison Section */
.comparison-section,
.environment-section,
.tips-section {
  margin-top: 25px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.comparison-section h4,
.environment-section h4,
.tips-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #053b7d;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #053b7d;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.comparison-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.comparison-card.best {
  border-color: #28a745;
  background: #d4edda;
}

.comparison-card h5 {
  font-size: 1rem;
  color: #053b7d;
  margin: 0 0 10px 0;
}

.comparison-card .cost {
  font-size: 1.3rem;
  font-weight: 700;
  color: #053b7d;
  margin-bottom: 5px;
}

.comparison-card .cost-label {
  font-size: 0.8rem;
  color: #6c757d;
}

.comparison-card .savings {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dee2e6;
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 600;
}

/* Environment Section */
.environment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.environment-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.environment-label {
  color: #495057;
}

.environment-value {
  font-weight: 600;
  color: #053b7d;
}

.environment-value.warning {
  color: #dc3545;
}

.environment-value.good {
  color: #28a745;
}

/* Tips Section */
.tip-item {
  padding: 10px 15px;
  margin: 8px 0;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #298bac;
  font-size: 0.95rem;
}

.tip-item.warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.tip-item.success {
  background: #d4edda;
  border-left-color: #28a745;
}

/* Error Message */
.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .input-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .calculator-title {
    font-size: 1.8rem;
  }

  .calculator-content {
    padding: 20px;
  }

  .input-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

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

  .result-card {
    padding: 15px;
  }

  .result-value {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .calculator-header {
    padding: 20px;
  }

  .calculator-title {
    font-size: 1.6rem;
  }

  .calculator-subtitle {
    font-size: 1rem;
  }

  .calculator-content {
    padding: 15px;
  }

  .input-column {
    padding: 15px;
  }

  .result-card {
    padding: 12px;
  }

  .result-value {
    font-size: 1.2rem;
  }
}

/* Copy Widget Section */
.copy-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.disclaimer-text {
  text-align: center;
  font-weight: 600;
  color: #053b7d;
  margin: 20px 0 10px 0;
}

#new-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.smaller-button {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
}

/* Override sub-container width constraints */
.sub-container {
  max-width: none !important;
  width: 100%;
  overflow: visible;
}

/* Two-column Flex layout */
body .container {
  padding: 10px 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

body .breadcrumb {
  flex: 0 0 100% !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

body .left-section {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
}

body .ad-container,
body .blog-feed,
body .extra-section {
  order: 2 !important;
  flex: 0 0 320px !important;
  width: 320px !important;
  align-self: flex-start !important;
  float: none !important;
  margin: 0 !important;
}

body .left-section .content {
  padding: 0 10px !important;
  margin: 0 !important;
}

body .left-section .sub-container {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  body .container {
    display: block !important;
  }
  body .ad-container,
  body .blog-feed,
  body .extra-section,
  body .left-section {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
}

@media (min-width: 1025px) {
  body .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 12px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 10px 15px !important;
  }

  body .left-section {
    flex: 0 1 auto !important;
    max-width: calc(100% - 340px) !important;
    min-width: 0 !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 15px !important;
  }

  body .right-column-wrapper {
    width: 320px !important;
    flex: 0 0 320px !important;
    order: 2 !important;
    align-self: flex-start !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body .ad-container,
  body .blog-feed,
  body .extra-section {
    width: 100% !important;
    flex: 0 0 auto !important;
    order: unset !important;
    align-self: stretch !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: #333;
    overflow: hidden;
  }
}

/* Article content */
.content {
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 10px !important;
}

.content h2 {
  color: #053b7d;
  margin-top: 30px;
}

.content h3 {
  color: #298bac;
  margin-top: 20px;
}

.content p {
  margin-bottom: 15px;
  color: #495057;
}
