.contactez-page {
  /* Fix Chrome perceived zoom/scale issues: ensure base font size is normal */
  font-size: 16px;
}

.contactez-page .contactez-main {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px 140px;
  box-sizing: border-box;
}

.contactez-page .form-container {
  background: rgba(20, 40, 30, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
  margin: 20px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  color: #fff;
  font-family: 'Google Sans Flex', 'Segoe UI', sans-serif;
}

.contactez-page .contactez-title {
  font-size: clamp(2.75rem, 5vw, 3.25rem);
  margin: 0 0 16px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-family: 'Google Sans Flex', sans-serif; /* title uses medium */
}

.contactez-page .subtitle {
  font-family: 'Google Sans Flex', sans-serif; /* subtitles use small */
  font-weight: 600;
}

.contactez-page .subtitle {
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0.8;
}

.contactez-page .progress-container {
  margin-bottom: 30px;
  position: relative;
}

.contactez-page .progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin: 0;
}

.contactez-page .progress-line-bg {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.contactez-page .progress-line-fill {
  position: absolute;
  top: 15px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #4caf50;
  z-index: 0;
  transition: width 0.4s ease;
}

.contactez-page .step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #14281e;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.contactez-page .step-indicator.active,
.contactez-page .step-indicator.completed {
  border-color: #4caf50;
  background: #4caf50;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
  font-weight: 700;
}

.contactez-page .step-indicator.final-burst {
  animation: finalBurst 1.2s ease forwards;
  box-shadow:
    0 0 18px rgba(76, 175, 80, 0.6),
    0 0 30px rgba(76, 175, 80, 0.35);
}
.contactez-page .step-indicator.final-burst::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: sparklingAura 1.2s ease forwards;
}

@keyframes finalBurst {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sparklingAura {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.contactez-page .form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.contactez-page .form-step.active {
  display: block;
}

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

.contactez-page .input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contactez-page .input-group label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-family: 'Google Sans Flex', 'Segoe UI', sans-serif;
}

.contactez-page input[type='text'],
.contactez-page input[type='email'],
.contactez-page input[type='tel'],
.contactez-page textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 14px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.contactez-page input::placeholder,
.contactez-page textarea::placeholder,
.contactez-page input::-webkit-input-placeholder,
.contactez-page textarea::-webkit-input-placeholder,
.contactez-page input:-ms-input-placeholder,
.contactez-page textarea:-ms-input-placeholder {
  font-family: 'Google Sans Flex', 'Segoe UI', sans-serif;
}

.contactez-page input:focus,
.contactez-page textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #4caf50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}

.contactez-page textarea {
  resize: none;
  height: 100px;
}

.contactez-page .input-error {
  border-color: #ff4444;
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.2);
}

.contactez-page .photo-choice {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.contactez-page .radio-option {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contactez-page .radio-option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contactez-page .radio-option input {
  display: none;
}

.contactez-page .radio-option.selected {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  color: #4caf50;
}

.contactez-page #photo-upload-container {
  margin-top: 10px;
  animation: slideDown 0.3s ease;
}

.contactez-page .photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 100px;
}

.contactez-page .photo-upload:hover {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.contactez-page .photo-upload.has-file {
  border: none;
  padding: 0;
}

.contactez-page .photo-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 20;
  transition: all 0.2s;
  line-height: 1;
  padding-bottom: 2px;
}

.contactez-page .photo-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.contactez-page .photo-upload-icon {
  font-size: 1.5rem;
}

.contactez-page .photo-upload-text {
  font-size: 0.9rem;
  color: #ffffff;
  margin-top: 5px;
}

.contactez-page .photo-upload-text.is-selected {
  color: #4caf50;
}

.contactez-page .hidden-input {
  display: none;
}

.contactez-page .buttons-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 12px;
}

.contactez-page .btn-prev.is-hidden ~ .btn-next {
  margin: 0 auto;
}

@keyframes stepExplosion {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  40% {
    transform: scale(1.4);
    box-shadow: 0 0 20px 10px rgba(76, 175, 80, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@keyframes stepSparkle {
  0%,
  100% {
    background-color: #4caf50;
    border-color: #4caf50;
  }
  25% {
    background-color: #69f0ae;
    border-color: #fff;
  }
  50% {
    box-shadow:
      0 0 15px #fff,
      0 0 30px #4caf50;
  }
}

.step-indicator.explosion-effect {
  animation:
    stepExplosion 0.8s ease-out forwards,
    stepSparkle 0.8s ease-in-out forwards;
}

.contactez-page .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #ffffff;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.contactez-page .checkbox-group input {
  margin-top: 3px;
  accent-color: #4caf50;
  width: 18px;
  height: 18px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.contactez-page .checkbox-group input:checked {
  transform: scale(1.2);
}

.contactez-page .checkbox-group label {
  transition: all 0.3s ease;
  cursor: pointer;
}

.contactez-page .checkbox-group input:checked + label {
  color: #4caf50;
  text-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
  font-weight: 600;
}

.contactez-page input::placeholder,
.contactez-page textarea::placeholder {
  color: #ffffff;
  opacity: 1;
}

.contactez-page .form-error {
  text-align: center;
  font-size: 0.85rem;
  color: #ffd4d4;
  margin-top: 12px;
  min-height: 1.2em;
}

.contactez-page .turnstile-wrapper {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.contactez-page .contactez-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contactez-page .is-hidden {
  display: none;
}

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

@media (max-width: 640px) {
  .contactez-page .form-container {
    padding: 24px;
  }

  .contactez-page .buttons-container {
    flex-direction: column;
  }

  .contactez-page .btn-next {
    margin-left: 0;
  }
}
