html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #1a1a1a;
  min-height: 100vh;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
}

@media (min-width: 768px) {
  body {
    padding: 40px 20px;
  }

  .container {
    min-height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

.header {
  background: #000;
  padding: 0;
  text-align: center;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

.content {
  padding: 30px 20px;
}

@media (min-width: 768px) {
  .content {
    padding: 40px 50px;
  }
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 500;
}

.section {
  margin-bottom: 35px;
}

.section-title {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title .accent {
  color: #c4d600;
}

/* Photo Upload Section */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

@media (min-width: 600px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
}

.upload-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 3px dashed #ddd;
  border-radius: 12px;
  background: #f9f9f9;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

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

.upload-btn.has-photo {
  border-color: #c4d600;
  border-style: solid;
  background: #f0f5d4;
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: #999;
}

.upload-btn.has-photo .upload-icon {
  color: #c4d600;
}

.upload-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-align: center;
  padding: 0 10px;
}

.upload-btn.has-photo .upload-label {
  color: #000;
}

.upload-sublabel {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.upload-btn.has-photo .upload-sublabel {
  color: #c4d600;
  font-weight: 600;
}

.photo-preview {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
}

.upload-btn.has-photo .photo-preview {
  display: block;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(196, 214, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.upload-btn.has-photo .photo-overlay {
  opacity: 0;
}

.upload-btn.has-photo:active .photo-overlay {
  opacity: 1;
}

input[type="file"] {
  display: none;
}

.photo-hint {
  text-align: center;
  color: #999;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
}

/* Form fields */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.required {
  color: #c4d600;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #c4d600;
}

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

.submit-btn {
  width: 100%;
  padding: 18px;
  background: #000;
  color: #c4d600;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: #1a1a1a;
}

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

.submit-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

.submit-btn.loading {
  background: #333;
  cursor: wait;
  position: relative;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #c4d600;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  background: #ffe0e0;
  color: #d32f2f;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  display: none;
  border-left: 4px solid #d32f2f;
}

.success-message {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.success-message::before {
  content: "✓";
  display: block;
  font-size: 48px;
  margin-bottom: 10px;
  color: #4caf50;
}
