/* --- Competitions Section --- */
.competitions {
  background: #fff;
  padding: 60px 0;
  font-size: 1.1rem;
}

.competitions h2 {
  text-align: center;
  font-size: 2.25rem;
  color: #333;
  margin: 1.5rem 0;
  font-weight: 700;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
}

.comp-list p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

/* hide all sections initially */
.section-content {
  display: none;
}

.competitions a {
  color: #3a4784;
  text-decoration: none;
  font-weight: 600;
}

.competitions a:hover {
  text-decoration: underline;
}

/* PDF viewer */
.pdf-viewer-frame {
  width: 100%;
  max-width: 1100px;
  height: 1000px;
  display: block;
  margin: 1.5rem auto;
  border: 0px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.08);
  font-family: inherit;
}

/* PDF Buttons */
.pdf-buttons {
  display: flex;
  font-family: inherit;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pdf-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

.pdf-btn:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pdf-btn.active {
  background: #3a4784;
  color: white;
  border-color: #3a4784;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 71, 132, 0.3);
}

.pdf-btn i {
  width: 18px;
  height: 18px;
}

.pdf-content {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Competition Outline Content Styling */
.division-info {
  background: #f0f4ff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.division-info p {
  color: #3a4784;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.rules-section {
  margin: 1.5rem 0;
}

.rules-section h4 {
  color: #3a4784;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.comp-list ul {
  margin: 1rem 0;
  padding-left: 3rem;
  margin-right: 3rem;
}

.comp-list li {
  margin-bottom: 0.8rem;
}

.awards-list {
  font-weight: 600;
  margin: 1rem 0 2rem 2rem;
}

.judging-criteria {
  margin: 1.5rem 0;
}

.judging-criteria h4 {
  color: #3a4784;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

/* Responsive for competitions section */
@media (max-width: 600px) {
  .comp-list details {
    padding: 1rem 0.8rem;
  }
  .competitions {
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .pdf-viewer-frame {
    height: 500px;
  }
}

/* --- Submission form (competitions) --- */
#submission-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  max-width: 720px;
  margin: 1rem auto 0 auto;
  align-items: start;
}

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

.form-group label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
  text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  width: 100%;
}

.form-group input[type="file"] {
  padding: 6px 10px;
}

/* button states — we use button text and color for feedback */
.cta-button.loading {
  opacity: 0.95;
  pointer-events: none;
}

.cta-button.success {
  background: #28a745;
  color: #fff;
}

.cta-button.error {
  background: #dc3545;
  color: #fff;
}

/* submission status paragraph styles */
.submission-status {
  margin-top: 0.5rem;
  font-weight: 600;
  text-align: left;
  min-height: 1.2rem;
}
.submission-status.loading {
  color: #6b7280; /* gray */
}
.submission-status.success {
  color: #28a745; /* green */
}
.submission-status.error {
  color: #dc3545; /* red */
}
.submission-status.invalid {
  color: #ff8800; /* orange */
}

.muted.small {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}
