/*
Theme Name: Pricing Calculator Theme
Description: A one-page WordPress theme featuring a contractor pricing calculator
Author: Your Name
Version: 1.0
License: GPL v2 or later
*/

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-in-out;
}

.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.header-icon {
  padding: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px -10px rgba(102, 126, 234, 0.5);
  color: white;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1a202c;
  margin: 0;
}

.header p {
  color: #718096;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-in-out;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 0.75rem 0.75rem 0 0;
}

.card-header.accent {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: white;
  border-bottom: 1px solid rgba(237, 137, 54, 0.2);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.card-content {
  padding: 1.5rem;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

@media (min-width: 1024px) {
  .lg-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .header p {
    font-size: 1rem;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Results Styles */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.result-highlight {
  background: rgba(16, 185, 129, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin: 1rem 0;
}

.result-highlight .result-row {
  border-bottom: none;
  padding: 0;
}

.result-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #059669;
}

.result-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #059669;
}

.result-subtitle {
  font-size: 0.875rem;
  color: rgba(5, 150, 105, 0.8);
  margin-top: 0.25rem;
}

/* Breakdown Section */
.breakdown {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.breakdown h4 {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.breakdown-total {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.breakdown-total .breakdown-value {
  color: #ed8936;
}

/* Support Section */
.support-section {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.support-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
}

.support-section p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.support-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-paypal {
  background-color: #0070ba;
  color: white;
}

.btn-paypal:hover {
  background-color: #005ea6;
}

.btn-coffee {
  background-color: #FFDD00;
  color: black;
}

.btn-coffee:hover {
  background-color: rgba(255, 221, 0, 0.9);
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

/* Responsive Design */
@media (max-width: 640px) {
  .container {
    padding: 0.5rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .support-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    justify-content: center;
  }
}