.competition-wrapper {
  background: #2C4177;
  padding: 2rem;
  border-radius: 12px;
  max-width: 720px;
  margin: 64px auto;
}

.competition-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.competition-wrapper p,
.competition-wrapper label {
  color: #fff !important;
}

small.description {
  color: #fff !important;
  margin-top: 15px;
  display: block;
}

.competition-form {
  margin-top: 1rem;
}

.competition-form input[type="text"],
.competition-form input[type="file"] {
  height: 45px;
}

.competition-form input#edit-imageuri-remove-button {
  background: #2C4177;
  color: #fff;
  border: 1px solid #fff !important;
  margin-top: 5px;
}

.competition-form input[type="submit"] {
  margin: 5px 0 0 0;
  border: none !important;
}

.competition-form input#edit-submit {
  margin: 40px 0 0 0;
}

.competition-form label#edit-mobilenumber-error {
  color: red;
  font-size: 12px;
}

.fade {
  opacity: 1 !important;
}

/*Melinda */

/* Competition Page Styles */
.competition-page-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 2rem 0;
  position: relative;
}

.competition-page-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(https://www.bakeitbetter.co.za/sites/bakeitbetter-co-za/modules/custom/bakeitbetter_always_on_competition/css/%2523grain)"/></svg>');
  pointer-events: none;
}

.competition-header {
  color: white;
  margin-bottom: 3rem;
}

.competition-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.competition-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Form Container */
.competition-form-container {
  position: relative;
  z-index: 10;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #007bff;
  color: white;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

.step.completed .step-number {
  background: #28a745;
  color: white;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
}

.step.active .step-label {
  color: #007bff;
  font-weight: 600;
}

/* Form Styling */
.competition-form {
  position: relative;
}

.form-item {
  margin-bottom: 2rem;
}

.form-item label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

/* File Upload Styling */
.custom-file {
  height: auto;
}

/* Checkbox Styling */
.form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-type-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #dee2e6;
}

/* Button Styling */
.competition-submit {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  width: 100%;
}

.competition-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3, #004085);
}

.competition-submit:active {
  transform: translateY(0);
}

.competition-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 20px;
}

.loading-content {
  text-align: center;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.loading-subtext {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Info Cards */
.competition-info {
  margin-top: 3rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.info-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.info-card h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* Alert Messages */
.alert {
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

/* Modal Enhancements */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border-radius: 15px 15px 0 0;
}

.modal-title {
  font-weight: 600;
}

.terms-content h6 {
  color: #007bff;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.terms-content ul {
  padding-left: 1.5rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .competition-title {
    font-size: 2rem;
  }
  
  .competition-subtitle {
    font-size: 1rem;
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 1rem;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  
  .step-number {
    margin-right: 1rem;
    margin-bottom: 0;
  }
  
  .info-card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Focus states for accessibility */
.form-control:focus,
.competition-submit:focus,
input[type="checkbox"]:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .competition-page-wrapper {
    background: #000;
  }
  
  .card {
    background: #fff;
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

.always-on-terms-link, .always-on-terms-link a {
  color: #fff !important;
  text-decoration: none;
}

.file--image a {
  color: #fff !important;
}

input[data-drupal-selector="edit-imageuri-remove-button"] {
    margin: 0 20px !important;
    padding: 10px 30px;
    font-size: 1rem;
}

#terms.competitions-full-width-text {
  max-width: 1200px;
}