/*-------------------------------------------
  GOV THEME VARIABLES
-------------------------------------------*/
:root {
  --gov-blue: #00467f;
  --gov-gold: #ffd700;
  --gov-blue-dark: #00315c;
  --gov-blue-light: #0067b9;
  --gov-success: #28a745;
  --gov-error: #dc3545;
}


/* ================================================
   1) Let clicks pass through the shine overlays
   ================================================ */
.eoi-container::before,
.eoi-form button::after {
  pointer-events: none;
}

/* ================================================
   2) Ensure your form fields sit above the shine
   ================================================ */
.eoi-form input,
.eoi-form textarea,
.eoi-form select,
.eoi-form label {
  position: relative;
  z-index: 1;
}

/*-------------------------------------------
  FORM CONTAINER
-------------------------------------------*/
.eoi-container {
  background: linear-gradient(152deg, var(--gov-blue) 0%, var(--gov-blue-dark) 100%);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 40, 80, 0.3);
  max-width: 860px;
  margin: 3rem auto;
  color: white;
  border: 3px solid var(--gov-gold);
  position: relative;
  overflow: hidden;
}

/* Animated “shine” overlay */
.eoi-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 48%, rgba(255,215,0,0.1) 50%, transparent 52%);
  animation: bg-shine 20s linear infinite;
  opacity: 0.3;
}

/*-------------------------------------------
  HEADER & STEPS
-------------------------------------------*/
.eoi-container h2 {
  color: var(--gov-gold);
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
  text-align: center;
}

.eoi-container p {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.eoi-step {
  display: flex;
  gap: 1rem;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  align-items: center;
}

.eoi-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gov-blue-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.eoi-step a.button {
  background: var(--gov-gold);
  color: var(--gov-blue-dark);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/*-------------------------------------------
  FORM FIELDS
-------------------------------------------*/
.eoi-form input[type="text"],
.eoi-form input[type="email"],
.eoi-form input[type="tel"],
.eoi-form input[type="file"],
.eoi-form textarea,
.eoi-form select {
  width: 100%;
  padding: 1rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--gov-blue-dark);
  background: rgba(255,255,255,0.97);
  border: 3px solid var(--gov-gold);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eoi-form select option {
  background: #ffffff;
  color: var(--gov-blue-dark);
  line-height: 2rem;
}

.eoi-form input:focus,
.eoi-form textarea:focus,
.eoi-form select:focus {
  outline: none;
  border-color: var(--gov-blue-light);
  box-shadow: 0 0 0 4px rgba(0,118,255,0.25);
  background: rgba(255,255,255,0.98);
  transform: translateY(-2px);
}

.eoi-form label {
  display: block;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/*-------------------------------------------
  BUTTON
-------------------------------------------*/
.eoi-form button[type="submit"],
.eoi-form .button-primary {
  background: linear-gradient(135deg, var(--gov-gold) 0%, #ffea00 100%);
  color: var(--gov-blue-dark);
  padding: 1.25rem 3rem;
  border: none;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto 0;
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
  position: relative;
  overflow: hidden;
}

.eoi-form button[type="submit"]::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.3) 50%, transparent 52%);
  animation: button-shine 6s linear infinite;
  opacity: 0.4;
}

.eoi-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

.eoi-form button[type="submit"]:active {
  transform: translateY(1px);
}

/*-------------------------------------------
  RESPONSE MESSAGES
-------------------------------------------*/
.eoi-success,
.eoi-error {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 12px;
  font-size: 1.1rem;
  backdrop-filter: blur(4px);
}

.eoi-success {
  background: rgba(40, 167, 69, 0.15);
  border-left: 6px solid var(--gov-success);
}

.eoi-error {
  background: rgba(220, 53, 69, 0.15);
  border-left: 6px solid var(--gov-error);
}

/*-------------------------------------------
  ANIMATIONS + MEDIA
-------------------------------------------*/
@keyframes bg-shine {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes button-shine {
  from { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

@media (max-width: 768px) {
  .eoi-container {
    padding: 2rem;
    margin: 1.5rem auto;
    border-radius: 15px;
  }
  .eoi-step {
    flex-direction: column;
    text-align: center;
  }
  .eoi-form button[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
  }
  
  
  /* Clearer message visibility */
.eoi-success,
.eoi-error {
    color: var(--gov-blue-dark) !important; /* Dark text for better contrast */
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    border: 2px solid transparent;
}

.eoi-success {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--gov-success);
}

.eoi-error {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--gov-error);
}

/* Message animations */
.eoi-success,
.eoi-error {
    animation: messageSlideIn 0.5s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
  
}
