/* style.css – Compact MSSP Widget with “Orbitron” Cyber-Theme */

/* 1) Import futuristic “Orbitron” font from Google */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
  /* Brand Gradient */
  --gradient-start: #6A00FF;
  --gradient-end:   #00D8FF;
  --gradient:       linear-gradient(135deg, var(--gradient-start), var(--gradient-end));

  /* Panel & Text */
  --card-bg:        rgba(10, 18, 30, 0.85);
  --text:           #e0e9f8;

  /* Option Labels */
  --label-bg:       rgba(20, 30, 50, 1);
  --label-hover:    rgba(20, 30, 50, 0.9);

  /* Inputs */
  --input-bg:       rgba(255, 255, 255, 0.08);
  --input-border:   #555;

  /* Font */
  --font-cyber:     'Orbitron', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  font-family: var(--font-cyber);
  color: var(--text);
}

/* ——— Quiz Container ——— */
#assessment-app {
  position: relative;
  background: var(--card-bg);
  border: 2px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

/* ——— Progress Bar ——— */
.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 5px;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

#bar {
  background: var(--gradient-end);
  width: 0%;
  height: 100%;
  transition: width 0.4s ease;
  box-shadow: 0 0 6px var(--gradient-end);
}

/* ——— Questions & Options ——— */
form h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  text-align: center;
  line-height: 1.3;
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Blinking cursor effect */
form h2::after {
  content: "_";
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%,100%  { opacity: 0; }
}

form label {
  display: block;
  background: var(--label-bg);
  padding: 0.6rem 0.8rem;
  margin: 0.4rem 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

form label:hover {
  background: var(--label-hover);
  border-color: var(--gradient-end);
}

form input[type="radio"] {
  margin-right: 0.6rem;
  accent-color: var(--gradient-end);
}

/* ——— Buttons ——— */
button {
  display: block;
  width: 100%;
  padding: 0.7rem;
  margin-top: 1rem;
  background: var(--gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 8px var(--gradient-end);
  transition: filter 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
}

button:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ——— Consultation Form ——— */
.consult-fields {
  margin-top: 1.2rem;
}

.consult-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.consult-fields input {
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-cyber);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.consult-fields input:hover {
  background: rgba(255, 255, 255, 0.12);
}

.consult-fields input:focus {
  border-color: var(--gradient-end);
  box-shadow: 0 0 0 2px rgba(0, 216, 255, 0.3);
  outline: none;
}

.consult-fields input::placeholder {
  color: #aaa;
  opacity: 1;
}

.status {
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
}  
