/* Modern and sleek styles for ERE Fiber */
body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #F3F4F6, #E5E7EB);
  color: #1F2937;
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo img {
  height: 120px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0.75rem 0;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: #EF4444;
  transform: translateY(-2px);
}

nav a.button {
  background: linear-gradient(90deg, #EF4444, #F87171);
  font-weight: 800;
  font-size: 1.1rem;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(239,68,68,0.3);
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

nav a.button:hover {
  background: linear-gradient(90deg, #DC2626, #FCA5A5);
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3), 0 0 15px rgba(239,68,68,0.5);
  color: white;
}

h1, h2, h3 {
  color: #1E40AF;
  font-weight: 700;
  margin: 0.5rem 0;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-group label {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 1rem;
  color: #6B7280;
  transition: all 0.2s ease;
  pointer-events: none;
}

.form-group input:not(:placeholder-shown) + label,
.form-group input:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group select:not(:placeholder-shown) + label,
.form-group select:focus + label {
  top: -0.75rem;
  left: 0.75rem;
  font-size: 0.85rem;
  color: #EF4444;
  background: white;
  padding: 0 0.25rem;
}

input, textarea, select {
  padding: 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

button, a.button {
  background: linear-gradient(90deg, #EF4444, #F87171);
  color: white;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.1rem;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  padding: 1.25rem 2.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(239,68,68,0.3);
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: inline-block;
}

button:hover, a.button:hover {
  background: linear-gradient(90deg, #DC2626, #FCA5A5);
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3), 0 0 15px rgba(239,68,68,0.5);
}

.result.error {
  color: #DC2626;
  text-align: center;
  margin: 1rem 0;
  background: #FEE2E2;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.result.success {
  color: #166534;
  text-align: center;
  margin: 1rem 0;
  background: #DCFCE7;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

footer {
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
  color: white;
  padding: 2rem;
}

footer a {
  color: #E5E7EB;
  margin: 0 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
  color: #EF4444;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  input, textarea, select {
    font-size: 1.1rem;
  }

  button, a.button {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }

  nav ul {
    display: none;
  }

  nav ul.active {
    display: flex;
    flex-direction: column;
    background: #1E40AF;
    position: absolute;
    top: 104px;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }

  nav a.button {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }

  #menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }

  .logo img {
    height: 96px;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) {
  nav ul {
    display: flex !important;
    gap: 1.5rem;
    align-items: center;
  }

  #menu-toggle {
    display: none;
  }
}