/* Reset and layout */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Header & Footer */
.header, .footer {
  background: #0077B9;
  color: #fff;
  padding: 12px 40px;
}

.footer {
  text-align: center;
  font-size: 12px;
  margin-top: auto;
  padding: 10px 40px;
}

/* Header top section - FIXED for left alignment */
.header-top {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-right: 30px; /* Space between brand and navigation */
}

.logo {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tagline {
  font-size: 14px;
  font-weight: 500;
  margin: 3px 0 0 0;
  color: #ffeb3b;
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
  animation: flash 1.8s infinite alternate;
  margin-left: 20px;
  display: inline-block;
  padding-left: 70px;
}

@keyframes flash {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

/* Combined header links and nav - FIXED for left alignment */
.header-links-and-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Header links */
.header-links {
  display: flex;
  gap: 20px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.header-link i {
  font-size: 18px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav a.active {
  font-weight: 700;
  color: #ffeb3b;
}

.nav a i {
  font-size: 18px;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 30px 60px;
  text-align: left;
  flex: 1;
}

h2 {
  font-size: 20px;
  margin-bottom: 18px;
  color: #222;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.full-width {
  grid-column: 1 / span 2;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: #0078D7;
  outline: none;
  box-shadow: 0 0 4px rgba(0,120,215,0.4);
}

.btn {
  display: inline-block;
  background: #0078D7;
  color: #fff;
  padding: 12px 25px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 25px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005a9e;
}

/* Form field visibility */
.linkedin-only {
  display: block;
}

.other-sources {
  display: none;
}

.source-not-linkedin .linkedin-only {
  display: none;
}

.source-not-linkedin .all-sources {
  display: block;
}

.source-linkedin .linkedin-only,
.source-linkedin .all-sources {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .header-top {
    flex-wrap: wrap;
  }
  
  .header-links-and-nav {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .brand {
    margin-right: 0;
  }
  
  .header-links-and-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .container {
    margin: 30px;
  }
}

@media (max-width: 768px) {
  .header, .footer {
    padding: 10px 20px;
  }
  
  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .container {
    margin: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .full-width {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 8px 15px;
  }
  
  .header-links, .nav {
    gap: 8px;
  }
  
  .nav {
    flex-wrap: wrap;
  }
  
  .nav a, .header-link {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .nav a i, .header-link i {
    font-size: 16px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .tagline {
    font-size: 12px;
    padding-left: 50px;
  }
}