/*
  Custom CSS for InfraBuild AI
  Author: GitHub Copilot
*/

body {
  background-color: #f4f4f9;
  color: #333;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0; /* Remove padding for full-width sections */
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
  padding: 20px 0;
}

/* Header Styles */
.main-header {
  background: #fff;
  padding: 10px 5%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.main-header h1 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.75rem;
}

/* Hero Section */
.hero {
  background: #2c3e50;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero h2 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.button, a.button {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button:hover, a.button:hover {
  background: #2980b9;
}

.button.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.header-button {
  font-size: 0.95rem;
  padding: 10px 22px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* Features Section */
.features {
  display: flex;
  justify-content: space-around;
  padding: 40px 0;
  background: #fff;
}

.feature {
  text-align: center;
  max-width: 30%;
}

.feature h3 {
  color: #2c3e50;
}

/* Footer */
.main-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .features {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .feature {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .main-header {
    justify-content: center;
  }

  .main-header h1 {
    text-align: center;
  }
}

h2 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
}

form {
  max-width: 500px;
  margin: 40px auto; /* Add top margin */
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-sizing: border-box; /* So padding doesn't affect width */
}

input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

input[type="submit"]:hover {
  background-color: #2980b9;
}

/* Personality Test Styles */
.question {
  margin-bottom: 25px;
}

.question label {
  font-weight: normal;
}

.radio-group {
  margin-top: 10px;
}

.radio-group input[type="radio"] {
  margin-right: 10px;
}
