/* Feedback Page Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary-color: #1f3b73; --primary-hover: #1b2f5b;
  --secondary-color: #0ea5e9; --danger-color: #dc2626;
  --bg-color: #1f3b73; --card-bg: #ffffff; --border-color: #d9e7ea;
  --text-primary: #1e293b; --text-secondary: #64748b;
  --success-color: #16a34a;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 24px;
  min-height: 100vh;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%),
    url('../icons/LuminoTec%20Logo.png') center / min(80vw, 800px) no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.container { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}
header h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.subtitle { color: rgba(255,255,255,0.85); font-size: 1rem; }

.form-section {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  margin-bottom: 28px;
  border: 1px solid rgba(0,0,0,0.05);
}
.form-section h2 { font-size: 1.2rem; margin-bottom: 20px; color: var(--primary-color); }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text-primary); }
.optional { font-size: 0.82rem; color: var(--text-secondary); font-weight: 400; margin-left: 4px; }
input[type="text"], textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(31,59,115,.1);
}
textarea { min-height: 110px; }

/* Star rating */
.star-rating { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input[type="radio"] { display: none; }
.star-rating label {
  font-size: 2.2rem;
  color: #d1d5db;
  cursor: pointer;
  margin: 0;
  transition: color .15s, transform .1s;
  line-height: 1;
  user-select: none;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label { color: #f59e0b; }
.star-rating label:hover { transform: scale(1.15); }
.star-hint { font-size: 0.82rem; color: var(--text-secondary); margin-top: 6px; min-height: 18px; }

/* Screenshot upload */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #f8fafc;
  position: relative;
}
.upload-area:hover, .upload-area.drag-over { border-color: var(--primary-color); background: #eff6ff; }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 2rem; margin-bottom: 6px; }
.upload-text { color: var(--text-secondary); font-size: 0.9rem; }
.upload-text strong { color: var(--primary-color); }

/* Preview */
#screenshot-preview { display: none; margin-top: 12px; position: relative; }
#screenshot-preview img { width: 100%; max-height: 200px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border-color); }
.remove-screenshot {
  position: absolute; top: 6px; right: 6px;
  background: rgba(220,38,38,.85); color: #fff;
  border: none; border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Form actions */
.form-actions { margin-top: 24px; }
.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%,-50%);
  transition: width .6s, height .6s;
}
.btn:hover::before { width: 400px; height: 400px; }
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,130,246,.4); }
.btn-primary:disabled { opacity: .65; transform: none; cursor: not-allowed; }
.btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
}
.btn-secondary:hover { transform: translateY(-2px); }

/* Status messages */
.msg { display: none; padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; margin-top: 14px; }
.msg.show { display: block; }
.msg-success { background: #dcfce7; color: var(--success-color); border: 1px solid #bbf7d0; }
.msg-error   { background: #fee2e2; color: var(--danger-color);  border: 1px solid #fecaca; }
.validation-msg { color: var(--danger-color); font-size: 0.85rem; margin-top: 4px; min-height: 16px; display: none; }
.validation-msg.show { display: block; }

/* Success screen */
#success-screen {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
#success-screen .success-icon { font-size: 3.5rem; margin-bottom: 16px; }
#success-screen h2 { color: var(--success-color); font-size: 1.6rem; margin-bottom: 8px; }
#success-screen p { color: var(--text-secondary); margin-bottom: 24px; }

header a.btn.btn-secondary:hover::before { width: 140px; height: 140px; }

@media (max-width: 600px) {
  body { padding: 12px; }
  .form-section { padding: 18px; }
  .star-rating label { font-size: 1.9rem; }
}
