* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

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

header {
  text-align: center;
  padding: 30px 0;
  background-color: #1e1e24;
  color: #d4af37;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  color: #fff;
  letter-spacing: 1px;
}

.logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  border-radius: 50%;  
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  font-size: 40px;  
}

.calculator {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  background-color: white;
  padding: 30px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.input-section {
  flex: 1;
  min-width: 300px;
}

.result-section {
  flex: 1;
  min-width: 300px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid #d4af37;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #d4af37;
  outline: none;
}

button {
  background-color: #1e1e24;
  color: #d4af37;
  border: 2px solid #d4af37;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  font-weight: 600;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  background-color: #d4af37;
  color: #1e1e24;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
}

.result-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #1e1e24;
  font-size: 1.2rem;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calculation-steps {
  margin-bottom: 20px;
}

.calculation-step {
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #d4af37;
}

.final-result {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e1e24;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  background-color: rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.pet-icon {
  font-size: 3rem;
  text-align: center;
  margin: 15px 0;
  color: #d4af37;
}

footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #eee;
}

.copyright {
  color: #999;
  font-size: 0.8rem;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .calculator {
    flex-direction: column;
  }

  header h1 {
    font-size: 2rem;
  }
}

.error {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

/* Animal selection styles */
.animal-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.animal-option {
  flex: 1;
  text-align: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.animal-option:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
}

.animal-option.selected {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.1);
}

.animal-option i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #d4af37;
}

/* Luna Gallop specific styling */
.luna-accent {
  display: inline-block;
  height: 1px;
  width: 50px;
  background-color: #d4af37;
  margin: 0 10px;
  vertical-align: middle;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #1e1e24;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horse-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #1e1e24;
  border-radius: 50%;
  position: relative;
  margin-right: 10px;
}

.horse-icon:after {
  content: "♞";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #d4af37;
  font-size: 18px;
}
