/* EPA Templates Styles */

/* Template Header */
.template-header {
  background: linear-gradient(135deg, #f5f3f0 0%, #e8e2d8 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.template-header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #8b7355;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.header-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

.legal-notice {
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(139,115,85,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.legal-notice h3 {
  color: #8b7355;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 400;
}

.legal-notice p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.legal-notice ul {
  margin: 15px 0;
  padding-left: 20px;
}

.legal-notice li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Template Selection */
.template-selection {
  background: white;
  padding: 60px 0;
}

.template-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.template-card {
  background: #fafafa;
  padding: 40px 30px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid rgba(139,115,85,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.template-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.template-card h3 {
  color: #8b7355;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 400;
}

.template-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.template-features {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.feature-tag {
  background: #8b7355;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Template Sections */
.template-section {
  background: #fafafa;
  padding: 60px 0;
}

.template-section.hidden {
  display: none;
}

.template-header-section {
  text-align: center;
  margin-bottom: 40px;
}

.template-header-section h2 {
  color: #8b7355;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 10px;
}

.template-description {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.template-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* EPA Form Template */
.epa-form-template {
  background: white;
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(139,115,85,0.1);
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #8b7355;
}

.form-header h3 {
  color: #8b7355;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.form-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.form-reference {
  color: #999;
  font-size: 0.9rem;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h4 {
  color: #8b7355;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139,115,85,0.2);
}

.form-fields {
  display: grid;
  gap: 15px;
}

.field-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.field-group label {
  min-width: 120px;
  color: #2c2c2c;
  font-weight: 400;
}

.field-line {
  flex: 1;
  border-bottom: 1px solid #333;
  height: 20px;
  min-width: 200px;
}

/* Checkbox Section */
.checkbox-section {
  display: grid;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

.checkbox-item label {
  color: #2c2c2c;
  font-weight: 400;
  line-height: 1.4;
}

/* Radio Section */
.mode-selection {
  display: grid;
  gap: 15px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
}

.radio-group label {
  color: #2c2c2c;
  font-weight: 400;
}

/* Text Area */
.text-area textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

/* Multiple Attorneys */
.multiple-attorneys {
  display: grid;
  gap: 30px;
}

.attorney-block {
  background: #fafafa;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(139,115,85,0.1);
}

.attorney-block h5 {
  color: #8b7355;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 15px;
}

/* Signature Section */
.signature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.signature-block {
  text-align: center;
}

.signature-block h5 {
  color: #8b7355;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 15px;
}

.signature-line {
  border-bottom: 1px solid #333;
  height: 30px;
  margin-bottom: 10px;
}

.signature-date {
  color: #666;
  font-size: 0.9rem;
}

/* Witness Section */
.witness-section {
  display: grid;
  gap: 30px;
}

.witness-block {
  background: #fafafa;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(139,115,85,0.1);
}

.witness-block h5 {
  color: #8b7355;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 15px;
}

.witness-details {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
}

/* Guide Section */
.guide-section {
  background: white;
  padding: 60px 0;
}

.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.guide-section h2 {
  color: #8b7355;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  text-align: center;
}

.guide-section h3 {
  color: #8b7355;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139,115,85,0.2);
}

.guide-item {
  margin-bottom: 30px;
  padding: 20px;
  background: #fafafa;
  border-radius: 4px;
  border: 1px solid rgba(139,115,85,0.1);
}

.guide-item h4 {
  color: #8b7355;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 15px;
}

.guide-item ul {
  margin: 0;
  padding-left: 20px;
}

.guide-item li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #2c2c2c;
}

.guide-item p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #2c2c2c;
}

.guide-item a {
  color: #8b7355;
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .template-header h1 {
    font-size: 2rem;
  }
  
  .template-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .template-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .epa-form-template {
    padding: 20px;
  }
  
  .field-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .field-group label {
    min-width: auto;
  }
  
  .field-line {
    width: 100%;
    min-width: auto;
  }
  
  .signature-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .multiple-attorneys {
    gap: 20px;
  }
  
  .witness-section {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .template-header {
    padding: 60px 0 40px;
  }
  
  .template-header h1 {
    font-size: 1.8rem;
  }
  
  .legal-notice {
    padding: 20px;
  }
  
  .template-card {
    padding: 30px 20px;
  }
  
  .template-icon {
    font-size: 2.5rem;
  }
  
  .epa-form-template {
    padding: 15px;
  }
  
  .form-section h4 {
    font-size: 1.1rem;
  }
  
  .guide-item {
    padding: 15px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .template-actions,
  .template-selection,
  .guide-section {
    display: none !important;
  }
  
  .template-section {
    background: white !important;
    padding: 0 !important;
  }
  
  .epa-form-template {
    box-shadow: none !important;
    border: 1px solid #333 !important;
    padding: 20px !important;
  }
  
  .form-section {
    break-inside: avoid;
    margin-bottom: 20px;
  }
  
  .signature-section {
    break-inside: avoid;
  }
  
  .witness-section {
    break-inside: avoid;
  }
}
