body.page .apk-submit-container,
.apk-submit-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  background: transparent;
  padding: 20px !important;
  border-radius: 0;
  overflow: visible;
  min-height: 100vh;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.apk-submit-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
  background: transparent;
  border-bottom: none;
}

.apk-submit-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.apk-submit-header p {
  font-size: 1.1rem;
  color: #5f6368;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
}

#apk-submit-form {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

.apk-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 0 0 24px 0;
  font-size: 14px;
  grid-column: 1 / span 2;
}

.apk-success {
  background: #d1fae5;
  border-left: 4px solid #10b981;
  color: #065f46;
}

.apk-error {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.apk-guidelines-box {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  grid-column: 1 / span 2;
}

.guidelines-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #1a73e8;
}

.apk-guidelines-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #202124;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apk-guidelines-box ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.apk-guidelines-box ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.6;
}

.apk-guidelines-box ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #5f6368;
  font-weight: bold;
  font-size: 16px;
}

.guidelines-warning {
  background: #fef7e0;
  border: none;
  border-left: 4px solid #f6b100;
  border-radius: 4px;
  padding: 16px 16px 16px 48px;
  color: #202124;
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
  line-height: 1.6;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guidelines-warning:before {
  content: "⚠";
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 18px;
  color: #f6b100;
}

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

.apk-form-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.apk-form-section {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
  transition: box-shadow 0.3s ease;
}

.apk-form-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #1a73e8;
}

.apk-form-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #202124;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apk-form-group {
  margin-bottom: 20px;
}

.apk-form-group:last-child {
  margin-bottom: 0;
}

.apk-form-group label {
  display: block;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
  font-size: 14px;
}

.optional-label {
  font-weight: 400;
  color: #5f6368;
  font-size: 0.9rem;
}

.apk-form-group input[type="text"],
.apk-form-group input[type="email"],
.apk-form-group input[type="url"],
.apk-form-group select,
.apk-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  background: #ffffff;
  color: #202124;
}

.apk-form-group input::placeholder,
.apk-form-group textarea::placeholder {
  color: #80868b;
}

.apk-form-group input:focus,
.apk-form-group select:focus,
.apk-form-group textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.apk-form-group small {
  display: block;
  margin-top: 4px;
  color: #80868b;
  font-size: 0.85rem;
  line-height: 1.5;
}

.required {
  color: #d93025;
}

.apk-upload-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex: 1;
  background: #ffffff;
}

.radio-label:hover {
  border-color: #1a73e8;
  background: #f8f9fa;
}

.radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
  accent-color: #1a73e8;
}

.radio-label input[type="radio"]:checked + span {
  font-weight: 600;
  color: #202124;
}

.radio-label span {
  font-size: 14px;
  color: #5f6368;
}

.apk-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
}

.apk-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.file-upload-area {
  position: relative;
  border: 2px dashed #dadce0;
  border-radius: 8px;
  padding: 30px 15px;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.3s, background-color 0.3s;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #1a73e8;
  background: #f5f9ff;
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #1a73e8;
}

.file-upload-text {
  font-size: 0.95rem;
  color: #5f6368;
  margin-bottom: 4px;
  font-weight: 400;
  display: block;
}

.file-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.screenshot-field {
  margin-bottom: 12px;
}

.screenshot-field input {
  margin-bottom: 0;
}

.apk-btn-link {
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.apk-btn-link:hover {
  text-decoration: underline;
}

.apk-btn-primary {
  padding: 16px 48px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.1s;
  background: #1a73e8;
  color: #ffffff;
  width: auto;
  margin: 20px auto 40px;
  display: block;
  box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3);
  min-height: 56px;
  min-width: 200px;
}

.apk-btn-primary:hover {
  background: #0d62d9;
  box-shadow: 0 4px 8px rgba(26, 115, 232, 0.4);
}

.apk-btn-primary:active {
  transform: translateY(1px);
}

.apk-btn-primary:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

#upload-progress-container {
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dadce0;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
  position: relative;
  overflow: hidden;
}

.upload-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.upload-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

#upload-progress-percent {
  font-weight: 600;
  color: #1a73e8;
}

#upload-progress-status {
  color: #5f6368;
  font-size: 0.85rem;
}

.upload-complete {
  color: #10b981 !important;
}

.upload-error {
  color: #ef4444 !important;
}

@media (max-width: 992px) {
  .apk-form-row {
    grid-template-columns: 1fr;
  }

  .apk-guidelines-box,
  .apk-message {
    grid-column: 1;
  }

  .apk-submit-header h2 {
    font-size: 2rem;
  }

  .apk-form-column {
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .apk-submit-container {
    padding: 16px !important;
  }

  .apk-submit-header {
    padding: 20px 0;
  }

  .apk-submit-header h2 {
    font-size: 1.75rem;
  }

  .apk-submit-header p {
    font-size: 1rem;
  }

  .apk-guidelines-box {
    padding: 20px 16px;
  }

  .apk-form-section {
    padding: 20px 16px;
  }

  .apk-btn-primary {
    padding: 14px 32px;
    min-width: 180px;
    font-size: 1rem;
  }

  .file-upload-area {
    padding: 20px 10px;
  }

  .file-upload-icon {
    font-size: 2rem;
  }
}
