:root {
  --bg: #0c1424;
  --card: #1a2338;
  --accent: #5eb8ff;
  --red: #ff4455;
  --text: #e0f0ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0c1424 0%, #1a2338 100%);
  color: var(--text);
  padding: 15px;
  min-height: 100vh;
  line-height: 1.5;
}

/* Container - responsive */
.container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(94, 184, 255, 0.15);
}

/* Language Bar */
.lang-bar {
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lang-btn {
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(94, 184, 255, 0.25);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  transform: translateY(-3px);
  background: rgba(94, 184, 255, 0.25);
}

.lang-btn.active {
  background: #5eb8ff;
  color: #0c1424;
  border-color: #5eb8ff;
  box-shadow: 0 0 15px rgba(94, 184, 255, 0.6);
}

/* Header */
.header {
  background: linear-gradient(to bottom, #1f2a44, #0f182f);
  padding: 35px 20px 30px;
  text-align: center;
}

.globe {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #5eb8ff 45%, #1e3a8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 0 35px rgba(94, 184, 255, 0.8), inset 0 0 20px rgba(255,255,255,0.4);
  position: relative;
}

.state-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--red);
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px #ff4455;
}

.header h1 {
  font-size: 2.1rem;
  color: #bae6fd;
  margin-bottom: 10px;
}

.header .subtitle {
  background: rgba(94, 184, 255, 0.12);
  color: #bae6fd;
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-block;
  font-size: 1.05rem;
  border: 1px solid rgba(94, 184, 255, 0.25);
}

/* Form Area */
.form-area {
  padding: 35px 25px;
}

.section {
  margin-bottom: 40px;
}

.section-title {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 30px;
}

.full { grid-column: 1 / -1; }

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #a5b4fc;
}

input, select {
  width: 100%;
  padding: 14px 16px;
  background: #0f1b2e;
  border: 1px solid #334155;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  transition: all 0.3s;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 184, 255, 0.3);
}

/* Captcha */
.captcha-box {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
  margin-top: 10px;
}

.captcha {
  background: linear-gradient(135deg, #1e2937, #334155);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1.5rem;
  letter-spacing: 6px;
  font-weight: bold;
  color: #67e8f9;
  border: 2px solid #22d3ee;
  min-width: 160px;
  text-align: center;
}

.refresh-btn {
  padding: 12px 16px;
  background: #334155;
  border: 1px solid #64748b;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.4s;
}

.refresh-btn:hover {
  background: #22d3ee;
  color: #0c1424;
  transform: rotate(180deg);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px;
  margin-top: 30px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
  transition: all 0.4s;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.7);
}

/* Messages */
.success, .error {
  margin-top: 25px;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  display: none;
}

.success { background: rgba(74, 222, 128, 0.2); color: #4ade80; border: 1px solid #4ade80; }
.error   { background: rgba(248, 113, 113, 0.2); color: #f87171; border: 1px solid #f87171; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;     /* Na telefonu sve u jednoj koloni */
    gap: 20px;
  }
  
  .header h1 {
    font-size: 1.85rem;
  }
  
  .form-area {
    padding: 25px 20px;
  }
  
  .lang-bar {
    padding: 10px 10px;
    gap: 6px;
  }
  
  .lang-btn {
    padding: 8px 14px;
    font-size: 14px;
  }
  
  .captcha-box {
    flex-direction: column;
    align-items: stretch;
  }
  
  .captcha {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .container {
    border-radius: 16px;
  }
}