:root {
  --primary-color: #6200ea;
  --primary-hover: #3700b3;
  --bg-color: #f3f4f6;
  --text-color: #333;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  
  /* Lotto Ball Colors */
  --ball-yellow: #fbc400;
  --ball-blue: #69c8f2;
  --ball-red: #ff7272;
  --ball-gray: #aaaaaa;
  --ball-green: #b0d840;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  height: fit-content;
  margin-top: 2rem;
}

header {
  text-align: center;
}

header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

header p {
  color: #666;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px 0 rgba(98, 0, 234, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.results {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 200px;
  justify-content: center;
}

.placeholder-text {
  text-align: center;
  color: #999;
  font-size: 1.1rem;
}

.lotto-set {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
  animation: fadeIn 0.5s ease-out;
}

.lotto-ball {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
  box-shadow: inset -2px -2px 6px rgba(0,0,0,0.2);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Color classes handled by JS */
.ball-yellow { background-color: var(--ball-yellow); color: #333; text-shadow: none; }
.ball-blue { background-color: var(--ball-blue); }
.ball-red { background-color: var(--ball-red); }
.ball-gray { background-color: var(--ball-gray); }
.ball-green { background-color: var(--ball-green); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .lotto-ball {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .container {
    padding: 1.5rem;
  }
}

/* Contact Form Section */
.contact-form-section {
  width: 100%;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.contact-form-section h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-form-section p {
  color: #666;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.2);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn-primary {
  margin-top: 1rem;
  width: 100%;
}