/* CNH Gratuita Frontend Styles */
.cnh-frontend-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f0f9f0 0%, #fff8e1 100%);
  min-height: 100vh;
}

.cnh-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.cnh-screen {
  display: block;
}

.cnh-screen-hidden {
  display: none;
}

.cnh-loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

.cnh-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2e7d32;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header */
.cnh-header {
  text-align: center;
  margin-bottom: 30px;
}

.cnh-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cnh-logo h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #2e7d32;
  margin: 0;
}

.cnh-subtitle {
  color: #4caf50;
  font-size: 1.1rem;
  margin: 0;
}

/* Icons */
.cnh-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.cnh-icon-large {
  width: 48px;
  height: 48px;
  color: #2e7d32;
}

/* Cards */
.cnh-info-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid #e8f5e8;
}

.cnh-card-header {
  padding: 20px;
  text-align: center;
}

.cnh-header-green {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: white;
}

.cnh-card-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.cnh-card-header p {
  margin: 0;
  opacity: 0.9;
}

.cnh-card-content {
  padding: 30px;
}

/* Info Sections */
.cnh-info-section {
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid;
}

.cnh-info-included {
  background: #e8f5e8;
  border-left-color: #4caf50;
}

.cnh-info-shipping {
  background: #fff3e0;
  border-left-color: #ff9800;
}

.cnh-info-docs {
  background: #e3f2fd;
  border-left-color: #2196f3;
}

.cnh-info-requirements {
  background: #ffebee;
  border-left-color: #f44336;
}

.cnh-info-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cnh-info-section ul {
  margin: 0;
  padding-left: 20px;
}

.cnh-info-section li {
  margin-bottom: 5px;
}

.cnh-shipping-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px;
  border-radius: 6px;
  margin: 10px 0;
}

.cnh-shipping-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff9800;
}

.cnh-shipping-time {
  font-size: 0.9rem;
  color: #666;
  margin: 5px 0 0 0;
}

/* Buttons */
.cnh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  justify-content: center;
}

.cnh-btn-primary {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: white;
}

.cnh-btn-primary:hover {
  background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.cnh-btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  margin-top: 20px;
}

.cnh-btn-back {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #2e7d32;
  transition: background-color 0.3s ease;
}

.cnh-btn-back:hover {
  background: rgba(46, 125, 50, 0.1);
}

/* Form */
.cnh-form-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.cnh-form-header h1 {
  color: #2e7d32;
  margin: 0;
  font-size: 1.5rem;
}

.cnh-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #e8f5e8;
}

.cnh-form-section {
  margin-bottom: 30px;
}

.cnh-form-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2e7d32;
  margin-bottom: 20px;
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e8;
}

.cnh-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cnh-form-group {
  margin-bottom: 20px;
}

.cnh-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.cnh-form-group input,
.cnh-form-group select,
.cnh-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.cnh-form-group input:focus,
.cnh-form-group select:focus,
.cnh-form-group textarea:focus {
  outline: none;
  border-color: #4caf50;
}

.cnh-form-group small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.9rem;
}

/* Checkbox */
.cnh-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
}

.cnh-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Form Actions */
.cnh-form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e8f5e8;
}

.cnh-btn-outline {
  background: transparent;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.cnh-btn-outline:hover {
  background: #2e7d32;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .cnh-container {
    padding: 15px;
  }

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

  .cnh-form-actions {
    flex-direction: column;
  }

  .cnh-shipping-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Success/Error Messages */
.cnh-message {
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cnh-message-success {
  background: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.cnh-message-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

/* Loading States */
.cnh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cnh-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}
