/* ========================================
   Škola skijanja - Dark Glassmorphism Theme
   ======================================== */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* === Root Variables === */
:root {
  --primary-blue: #0d6efd;
  --primary-blue-light: #3d8bfd;
  --primary-blue-dark: #0a58ca;
  --success-green: #198754;
  --danger-red: #dc3545;
  --text-white: #ffffff;
  --text-dark: #212529;
  --text-muted: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 20px;
  --transition: all 0.3s ease;
}

/* === Global Styles === */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(to bottom, #E3F2FD 0%, #BBDEFB 30%, #FFFFFF 100%);
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
  color: #003C71;
  line-height: 1.6;
}

* {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Hero Section - Modern Unified Design === */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Panorama Background */
.hero-panorama {
  width: 100%;
  height: 380px;
  background-image: url('/images/skijanje1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panorama Overlay for Text */
.hero-panorama-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 10;
  pointer-events: none;
}

.hero-panorama-overlay * {
  pointer-events: auto;
}

/* Prijelaz efekt ispod panorame - uklonjen za minimalni prostor */
.hero-section::after {
  display: none;
}

/* Hero Content - Logos below panorama (hidden - logos removed) */
.hero-content {
  display: none;
}

/* Hero Title - Overlay on Panorama */
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 
               2px 2px 8px rgba(0, 0, 0, 0.95),
               0 0 30px rgba(0, 0, 0, 0.9),
               0 0 60px rgba(0, 0, 0, 0.7),
               0 0 100px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* Hero Subtitle - Overlay on Panorama */
.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 1),
               1px 1px 6px rgba(0, 0, 0, 0.95),
               0 0 25px rgba(0, 0, 0, 0.9),
               0 0 50px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.3px;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* Hero Logos Box - Utisnuti izgled (bez boxa) */
.hero-logos-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.95;
}

.hero-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* === Subheading === */
.subheading-section {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.subheading-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #003C71;
  margin: 0;
}

/* === Main Content Wrapper === */
.main-content-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 2rem;
  min-height: auto;
  margin-top: 0;
}

/* === Form Wrapper (Glassmorphism) === */
.form-wrapper {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px 25px 50px;
  box-shadow: 0 8px 32px rgba(0, 60, 113, 0.1);
  margin: 30px auto 120px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* === Form Navigation Buttons === */
.form-navigation-buttons {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 60, 113, 0.1);
}

.navigation-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.nav-button-left {
  flex: 0 0 auto;
}

.nav-button-right {
  flex: 0 0 auto;
  margin-left: auto;
}

.btn-submit-large {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
  min-width: 200px;
}

/* === Success Screen === */
.success-screen {
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  font-size: 70px;
  color: var(--success-green);
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-heading {
  font-size: 2rem;
  font-weight: 600;
  color: #003C71;
  margin-bottom: 1rem;
}

.success-text {
  font-size: 1.1rem;
  color: #003C71;
  margin-bottom: 0.5rem;
}

.success-redirect-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.success-redirect-text #countdown {
  font-weight: 600;
  color: var(--primary-blue-light);
  font-size: 1.1rem;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  color: #003C71;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Naslovi na panorami ostaju bijeli */
.hero-title,
.hero-subtitle {
  color: #ffffff !important;
}

h2 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 60, 113, 0.2);
  color: #003C71;
}

h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003C71;
}

/* === Forms === */
.form-label {
  color: #003C71;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.form-control,
.form-select,
textarea {
  width: 100%;
  border: 2px solid rgba(0, 60, 113, 0.4);
  border-radius: 10px;
  background: #ffffff;
  color: #003C71;
  padding: 14px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 60, 113, 0.08);
}

.form-control::placeholder {
  color: rgba(0, 60, 113, 0.5);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #0078C9;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 120, 201, 0.15), 0 2px 8px rgba(0, 60, 113, 0.12);
  outline: none;
  color: #003C71;
}

/* Select dropdown styling - Clean native appearance */
.form-select {
  cursor: pointer;
  padding-right: 14px;
}

.form-select option {
  background: #ffffff;
  color: #003C71;
  padding: 8px;
}

.form-select option:hover,
.form-select option:focus {
  background: #E3F2FD;
  color: #003C71;
}

.form-select option:checked {
  background: #0078C9;
  color: #ffffff;
}

.form-select:focus {
  border-color: #0078C9;
  box-shadow: 0 0 0 3px rgba(0, 120, 201, 0.15), 0 2px 8px rgba(0, 60, 113, 0.12);
  outline: none;
  background-color: #ffffff;
}

.form-control.is-invalid {
  border-color: var(--danger-red);
}

.form-control.is-invalid:focus {
  border-color: var(--danger-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  font-weight: 500;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
  border-radius: 10px;
  border: 2px solid rgba(0, 60, 113, 0.4);
  padding: 12px 14px;
  background: #ffffff;
  color: #003C71;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 60, 113, 0.08);
}

textarea.form-control:focus {
  border-color: #0078C9;
  box-shadow: 0 0 0 3px rgba(0, 120, 201, 0.15), 0 2px 8px rgba(0, 60, 113, 0.12);
  outline: none;
  background: #ffffff;
  color: #003C71;
}

textarea.form-control::placeholder {
  color: rgba(0, 60, 113, 0.5);
}

/* === Kindergarten Autocomplete === */
.kindergarten-autocomplete-wrapper {
  position: relative;
}

.kindergarten-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kindergarten-suggestion-item {
  padding: 12px 16px;
  color: var(--text-dark);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
  font-size: 0.95rem;
}

.kindergarten-suggestion-item:last-child {
  border-bottom: none;
}

.kindergarten-suggestion-item:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

.kindergarten-suggestion-item:active {
  background-color: rgba(13, 110, 253, 0.2);
}

.kindergarten-autocomplete-wrapper .form-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-check {
  margin: 1rem 0;
}

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.25em;
  cursor: pointer;
  background-color: #ffffff;
  border: 2px solid rgba(0, 60, 113, 0.5);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 60, 113, 0.1);
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #0078C9;
  border-color: #0078C9;
  box-shadow: 0 2px 6px rgba(0, 120, 201, 0.3);
}

.form-check-input:focus {
  border-color: #0078C9;
  box-shadow: 0 0 0 3px rgba(0, 120, 201, 0.15), 0 1px 3px rgba(0, 60, 113, 0.1);
  outline: none;
}

.form-check-label {
  margin-left: 0.5rem;
  cursor: pointer;
  user-select: none;
  color: #003C71;
  font-weight: 400;
}

.gdpr-link {
  color: #00d4a4;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.gdpr-link:hover {
  color: #00b894;
  text-decoration: underline;
}

/* === Buttons === */
.btn {
  border-radius: 25px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #003C71;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: #0078C9;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 120, 201, 0.3);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #F5C400;
  color: #003C71;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 196, 0, 0.4);
}

.btn-success {
  background-color: #2ecc71;
  border: none;
  color: #003C71;
  font-weight: 500;
  font-size: 16px;
  padding: 14px;
  border-radius: 10px;
  width: 100%;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-success:hover:not(:disabled) {
  background-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
  color: #003C71;
}

.btn-success:disabled {
  background-color: rgba(46, 204, 113, 0.5);
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-outline-secondary {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #003C71;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* === Modal === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-dialog {
  max-width: 800px;
  width: 100%;
  margin: auto;
}

.modal-content {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: rgba(255, 255, 255, 0.1);
  color: #003C71;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  color: #003C71;
  font-weight: 600;
  margin: 0;
  font-size: 1.25rem;
}

.btn-close {
  background: transparent;
  border: none;
  color: #003C71;
  opacity: 0.8;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0) invert(1);
}

.btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  color: #003C71;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.modal-footer .gap-3 {
  gap: 1rem !important;
}

/* === Progress Bar === */
.progress-container {
  margin-bottom: 1.5rem;
}

.progress {
  height: 0.5rem;
  background: rgba(0, 60, 113, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  background: linear-gradient(90deg, #64B5F6 0%, #42A5F5 50%, #2196F3 100%);
  height: 100%;
  transition: width 0.5s ease;
  animation: progressAnimation 0.5s ease-out;
}

@keyframes progressAnimation {
  from {
    width: 0%;
  }
}

.progress-text {
  color: #003C71;
  font-weight: 500;
  font-size: 0.9rem;
}

/* === Step Content === */
.step-container {
  position: relative;
  min-height: 400px;
}

.step-content {
  animation: stepFadeIn 0.4s ease-out;
}

.step3-form-fields .row {
  margin-bottom: 16px;
}

.step3-form-fields .mb-4 {
  margin-bottom: 16px !important;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === Review Cards === */
.review-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.review-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003C71;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.review-card-content {
  color: #003C71;
}

.review-card-content p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.review-card-content strong {
  color: #003C71;
  font-weight: 500;
  margin-right: 0.5rem;
}

/* === Alerts === */
.alert {
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(25, 135, 84, 0.2);
  color: #d1e7dd;
  border-left: 4px solid var(--success-green);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.2);
  color: #f8d7da;
  border-left: 4px solid var(--danger-red);
}

/* === Bottom Banner (Sticky) === */
.banner-bottom {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 15px 10px;
  height: 90px;
  border-top: 2px solid rgba(0, 60, 113, 0.1);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 60, 113, 0.1);
}

.banner-bottom img {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.banner-bottom img:hover {
  transform: scale(1.05);
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .hero-section {
    min-height: 240px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero-panorama {
    height: 240px;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
  }

  .hero-section::after {
    display: none;
  }

  .hero-panorama-overlay {
    padding: 1.5rem 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.15) 100%);
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 800;
    text-shadow: 3px 3px 14px rgba(0, 0, 0, 1),
                 2px 2px 10px rgba(0, 0, 0, 0.95),
                 0 0 35px rgba(0, 0, 0, 0.9),
                 0 0 70px rgba(0, 0, 0, 0.7),
                 0 0 110px rgba(0, 0, 0, 0.5);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 700;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 1),
                 1px 1px 8px rgba(0, 0, 0, 0.95),
                 0 0 30px rgba(0, 0, 0, 0.9),
                 0 0 60px rgba(0, 0, 0, 0.7);
  }

  .main-content-wrapper {
    padding: 0.25rem 1rem 1.5rem;
    margin-top: 0;
  }

  .form-wrapper {
    width: 92%;
    margin: 10px auto 120px;
    padding: 20px 20px 40px;
  }

  .banner-bottom {
    padding: 12px 10px;
    gap: 25px;
    height: 80px;
  }

  .banner-bottom img {
    height: 60px;
  }

  .modal-dialog {
    margin: 1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .banner-bottom {
    gap: 2rem;
    flex-direction: column;
    padding: 15px 0;
  }

  .banner-bottom img {
    height: 50px;
  }

  .form-wrapper {
    margin-bottom: 100px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .btn-outline-secondary {
    margin-bottom: 0.5rem;
  }

  .navigation-buttons-row {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-button-left,
  .nav-button-right {
    width: 100%;
  }

  .nav-button-left .btn,
  .nav-button-right .btn {
    width: 100%;
  }

  .btn-submit-large {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    min-width: auto;
    width: 100%;
  }

  .step-container {
    min-height: 300px;
  }

  .review-card {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.25rem;
  }

  .main-content-wrapper {
    padding: 0.25rem 0.75rem;
  }

  .banner-bottom {
    padding: 15px 10px;
    gap: 25px;
    height: 85px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid rgba(0, 60, 113, 0.1);
    box-shadow: 0 -4px 25px rgba(0, 60, 113, 0.1);
  }

  .banner-bottom img {
    height: 65px;
    width: auto;
    max-width: none;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 60, 113, 0.2));
  }

  .form-wrapper {
    width: 98%;
    padding: 20px 15px;
    margin-bottom: 140px;
    border-radius: 15px;
  }

  .main-content-wrapper {
    padding: 0.25rem 0.5rem 2rem;
    min-height: auto;
  }

  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    font-weight: 500;
  }

  .form-control,
  .form-select,
  textarea {
    padding: 12px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  button,
  .btn-success,
  .btn-primary {
    font-size: 15px;
    padding: 12px;
  }

  .step-content h6 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .step-container {
    min-height: auto;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
  }

  .step-content {
    padding: 0.5rem 0;
  }

  .step-content h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .form-navigation-buttons {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .progress-bar-container {
    margin-bottom: 0.75rem;
  }

  .progress-bar {
    height: 6px;
    border-radius: 3px;
  }

  .progress-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .navigation-buttons-row {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .nav-button-left,
  .nav-button-right {
    width: 100%;
  }

  .nav-button-left .btn,
  .nav-button-right .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  .btn-submit-large {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    width: 100%;
    min-width: auto;
  }

  .success-screen {
    padding: 2rem 1rem;
  }

  .success-icon {
    font-size: 45px;
    margin-bottom: 1rem;
  }

  .success-heading {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .success-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }

  .success-redirect-text {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
  }

  .success-redirect-text #countdown {
    font-size: 1rem;
  }

  .success-screen .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    max-width: 280px;
  }

  .kindergarten-autocomplete-wrapper {
    margin-bottom: 0.5rem;
  }

  .kindergarten-autocomplete-wrapper .form-text {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-top: 0.4rem;
  }

  .kindergarten-suggestions {
    max-height: 200px;
    font-size: 0.85rem;
  }

  .kindergarten-suggestion-item {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .gdpr-link {
    font-size: 0.8rem;
  }

  .form-check-label {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .col-12.col-md-6 {
    margin-bottom: 0.75rem;
  }

  .mb-3,
  .mb-4 {
    margin-bottom: 0.75rem !important;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: 220px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero-panorama {
    height: 220px;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
  }

  .hero-section::after {
    display: none;
  }

  .hero-panorama-overlay {
    padding: 1rem 0.75rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.2) 100%);
  }

  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 6px;
    font-weight: 800;
    text-shadow: 3px 3px 16px rgba(0, 0, 0, 1),
                 2px 2px 12px rgba(0, 0, 0, 0.95),
                 0 0 40px rgba(0, 0, 0, 0.9),
                 0 0 80px rgba(0, 0, 0, 0.7),
                 0 0 120px rgba(0, 0, 0, 0.5);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 700;
    text-shadow: 2px 2px 14px rgba(0, 0, 0, 1),
                 1px 1px 10px rgba(0, 0, 0, 0.95),
                 0 0 35px rgba(0, 0, 0, 0.9),
                 0 0 70px rgba(0, 0, 0, 0.7);
  }

  .hero-logos-box {
    padding: 0;
    gap: 20px;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    max-width: 95%;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero-logo {
    height: 55px;
  }

  /* Main Content - pomaknuto prema gore */
  .main-content-wrapper {
    padding: 0.25rem 0.5rem 1rem;
    margin-top: 0;
  }

  .form-wrapper {
    width: 98%;
    padding: 18px 15px 35px;
    margin-bottom: 140px;
    border-radius: 15px;
  }

  /* Step Container - optimiziran za mobilni prikaz */
  .step-container {
    min-height: auto;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .step-content {
    padding: 0.25rem 0;
  }

  .step-content h6 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .progress-bar-container {
    margin-bottom: 0.5rem;
  }

  .progress-text {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }

  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .form-control,
  .form-select,
  textarea {
    padding: 10px;
    font-size: 14px;
  }

  .form-navigation-buttons {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }

  .navigation-buttons-row {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .nav-button-left .btn,
  .nav-button-right .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Bottom banner u mobilnom - stil panorame s logotipima */
  .banner-bottom {
    padding: 18px 15px;
    gap: 0;
    height: auto;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid rgba(0, 60, 113, 0.1);
    box-shadow: 0 -4px 25px rgba(0, 60, 113, 0.1);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .banner-bottom img {
    height: 70px;
    width: auto;
    max-width: 45%;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 60, 113, 0.2));
  }

  .banner-bottom img:first-child {
    margin-right: auto;
  }

  .banner-bottom img:last-child {
    margin-left: auto;
  }

  body {
    padding-bottom: 0;
  }
}

/* === Accessibility === */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus {
  outline: none;
}

/* === Loading States === */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* === Print Styles === */
@media print {
  .modal,
  .btn,
  .alert {
    display: none !important;
  }

  body {
    background: white;
  }
}

/* === Landing Page Styles === */
.content-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
}

.details-box {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  color: white;
  position: sticky;
  top: 20px;
}

.details-box h4 {
  color: white;
  font-weight: 600;
  font-size: 1.5rem;
}

.details-box ul {
  list-style: none;
  padding: 0;
}

.details-box ul li {
  color: white;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.details-box ul li:last-child {
  border-bottom: none;
}

.price-box {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.price-icon {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4ade80;
  line-height: 1;
}

.price-amount {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

.price-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
}

.accordion-item {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
}

.accordion-button {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #e3f2fd;
  border: none;
  border-radius: var(--border-radius);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.accordion-button:hover {
  background: #bbdefb;
  transform: translateX(5px);
}

.accordion-button span {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 0.5rem;
  color: var(--primary-blue);
}

@media (max-width: 768px) {
  .details-box {
    position: relative;
    top: 0;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    padding: 0 1rem;
  }
}
