/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fonts */
@font-face {
  font-family: 'Alaska';
  src: url('Alaska-BlackContrast.otf') format('opentype');
  font-weight: bold;
}
@font-face {
  font-family: 'Alaska';
  src: url('Alaska-BookContrast.otf') format('opentype');
  font-weight: normal;
}

body {
  font-family: 'Alaska', sans-serif;
  font-weight: normal;
  background: url('rockme-1.png') no-repeat center center / cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
  text-align: center;
  color: #fff;
}

@media (max-width: 600px) {
  body {
    background-image: url('rockme-2.png');
  }
}

main {
  max-width: 600px;
  width: 100%;
}

/* Headings - Alaska Bold */
h1 {
  font-family: 'Alaska', sans-serif;
  font-weight: bold;
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.sub-text {
  font-weight: normal;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 480px;
  margin: 0 auto 20px;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Custom file label - Alaska Bold for 'Choose File' */
.custom-file-label {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Alaska', sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
}

#fileInput {
  display: none;
}

/* "No file selected" text - Alaska Regular in white */
#fileLabel {
  font-family: 'Alaska', sans-serif;
  font-weight: normal;
  color: #fff;
  font-size: 0.9rem;
}

/* Inputs - Alaska Medium and #4ca9a1 text */
input[type='text'],
input[type='email'] {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  margin-bottom: 10px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #4ca9a1;
  font-size: 0.95rem;
  text-align: center;
  font-family: 'Alaska', sans-serif;
  font-weight: 500; /* Medium */
}

::placeholder {
  color: #aaa;
}

/* Decade Picker */
.decade-label {
  font-size: 0.9rem;
  font-family: 'Alaska', sans-serif;
  font-weight: bold;
  margin: 6px 0;
}

.decade-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}

.decade-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff; /* Always visible */
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Alaska', sans-serif;
  font-weight: 500; /* Medium */
}

/* Hover effect */
.decade-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Selected state */
.decade-btn.selected {
  background: #fff;
  border-color: #fff;
  color: #4ca9a1;
}

/* Consent container */
.consent {
  display: flex;
  align-items: center; /* aligns checkbox with text */
  gap: 10px;
  margin-bottom: 8px;
  max-width: 520px;
  text-align: left;
  line-height: 1.3;
  font-size: 0.85rem;
}

/* Custom round "radio-style" checkboxes */
.consent input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  position: relative;
  cursor: pointer;
  outline: none;
  margin: 0;
  flex: 0 0 18px;
  transition: box-shadow 0.15s ease, transform 0.05s ease;
}

/* inner dot */
.consent input[type='checkbox']::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.12s ease-in-out;
}

/* checked state */
.consent input[type='checkbox']:checked::after {
  opacity: 1;
}

/* hover/focus polish */
.consent input[type='checkbox']:hover {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
}
.consent input[type='checkbox']:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}
.consent input[type='checkbox']:active {
  transform: scale(0.96);
}

.consent label {
  display: block;
}

/* Rock Me Button - Alaska Bold with #4ca9a1 text */
/* FIX: Border always visible to prevent layout shift on hover */
.rock-btn {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  background: #fff;
  color: #4ca9a1;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Alaska', sans-serif;
  font-weight: bold;
}

.rock-btn:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* Result display */
#result {
  margin-top: 15px;
}

/* Progress bar styles */
.progress-container {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.progress-container p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ca9a1, #fff);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Result success styles */
.result-success {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(76, 169, 161, 0.3);
  animation: slideInUp 0.5s ease;
}

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

.result-heading {
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.stage-name {
  font-family: 'Alaska', sans-serif;
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4ca9a1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.result-image {
  max-width: 100%;
  border-radius: 12px;
  margin: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-message {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Create Another Button */
.create-another-btn {
  margin-top: 12px;
  width: 100%;
  max-width: 300px;
  padding: 8px 16px;
  background: #4ca9a1;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  border: 2px solid #4ca9a1;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Alaska', sans-serif;
  transition: all 0.3s ease;
}

.create-another-btn:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

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

/* Footer */
footer {
  margin-top: 10px;
  font-size: 0.7rem;
  color: #fff;
  opacity: 0.8;
  font-family: 'Alaska', sans-serif;
  font-weight: normal;
}

/* Drag and Drop hover effect */
.custom-file-label.dragover {
  border-color: #4ca9a1;
  background-color: rgba(76, 169, 161, 0.1);
}
