/* Styling for Contribute Upload Portal */
body.contribute-page {
  background: #0d0a12;
  color: #ede8f5;
  min-height: 100vh;
}

.shell.single-column {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.contribute-main {
  margin-top: 28px;
}

/* Hero */
.contribute-hero {
  margin-bottom: 24px;
}

.contribute-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #f5f2fa;
}

.contribute-hero .subtitle {
  font-size: 14.5px;
  color: #9d93a6;
  max-width: 680px;
  line-height: 1.6;
  margin: 0;
}

/* Form Layout */
.form-container {
  background: #171320;
  border: 1px solid #2b2338;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 820px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #d1c8db;
  margin-bottom: 8px;
}

.form-group .required {
  color: #f43f5e;
  margin-left: 4px;
}

.field-optional {
  font-size: 12px;
  color: #7b7185;
  font-weight: 400;
  margin-left: 4px;
}

.badge-recommend {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: #0f0c16;
  border: 1px solid #362c45;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #f1ecf7;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.field-hint {
  font-size: 12px;
  color: #7b7185;
  margin: 6px 0 0;
}

/* Dropzone */
.file-input-hidden {
  display: none;
}

.dropzone {
  border: 2px dashed #3a304a;
  border-radius: 10px;
  background: #120e1a;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.05);
}

.drop-svg {
  width: 34px;
  height: 34px;
  color: #a855f7;
  margin: 0 auto 10px;
  display: block;
  opacity: 0.85;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.dropzone:hover .drop-svg {
  transform: translateY(-2px);
  opacity: 1;
}

.dropzone-content strong {
  display: block;
  font-size: 14px;
  color: #ede7f5;
  margin-bottom: 4px;
}

.dropzone-content p {
  font-size: 12px;
  color: #7e738a;
  margin: 0;
}

.file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e1828;
  border: 1px solid #433658;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.file-meta strong {
  display: block;
  font-size: 13px;
  color: #f1ecf7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.file-meta span {
  font-size: 12px;
  color: #9d93a8;
}

.btn-remove,
.btn-remove-cover {
  background: #2b2238;
  border: 1px solid #4a3b61;
  color: #c9bfd6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.15s ease;
}

.btn-remove:hover,
.btn-remove-cover:hover {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #fff;
}

/* Cover Image Preview */
.cover-preview-box {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #433658;
}

.cover-preview-box img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.btn-remove-cover {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Progress Panel */
.upload-progress-panel {
  background: #120e1a;
  border: 1px solid #332945;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #d8cfe3;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #241d30;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #38bdf8);
  border-radius: 4px;
  transition: width 0.15s ease;
}

.progress-detail {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8c8296;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.btn-submit:hover:not(:disabled) {
  opacity: 0.94;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error-msg {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
}

/* Success Card */
.result-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.success-card {
  background: #171320;
  border: 1px solid #2e263d;
  border-radius: 12px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.success-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(34, 197, 94, 0.12);
  border: 1.5px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.check-svg {
  width: 28px;
  height: 28px;
  stroke: #4ade80;
}

.success-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #f3effa;
}

.success-desc {
  font-size: 13.5px;
  color: #9f96aa;
  line-height: 1.5;
  margin: 0 0 22px;
}

.submission-summary {
  background: #100d16;
  border: 1px solid #272033;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid #1c1726;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span:first-child {
  color: #8b8096;
}

.badge-pending {
  background: #eab30822;
  color: #facc15;
  border: 1px solid #eab30844;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.mail-notice {
  color: #38bdf8;
  font-size: 12px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.btn-primary {
  background: #7c3aed;
  color: #fff !important;
}

.btn-secondary {
  background: #241d30;
  border: 1px solid #3c3050;
  color: #d7cfe3;
}

.btn-secondary:hover {
  background: #302640;
}

.contribute-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 12px;
  color: #635b6e;
}
