/* General Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Red Theme Color */
:root {
  --primary-red: #fd0000;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-red);
  padding: 5px 5px;
  color: white;
}

.main-header .logo {
  height: 40px;
}

.main-header nav a {
  color: white;
  margin-left: 10px;
  text-decoration: none;
  font-weight: bold;
}

.main-header nav a:hover {
  text-decoration: underline;
}

/* Login Page */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #fff;
}

.login-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-box .logo {
  max-height: 60px;
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.login-box button:hover {
  background-color: #cc0000;
}

/* Dashboard - Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1024px;
  margin: 40px auto;
  padding: 0 20px;
  justify-items: center;
}

.category-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 210px;
}

.category {
  background-color: var(--primary-red);
  color: white;
  padding: 20px;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  line-height: 1.4;
}

.category:hover {
  background-color: #cc0000;
}

/* Survey Form */
.questionnaire {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.questionnaire h2 {
  margin-bottom: 20px;
  color: var(--primary-red);
  text-align: center;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.radio-option {
  margin: 5px 0;
}

.radio-option input {
  margin-right: 8px;
}

/* Buttons */
.btn-red {
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.btn-red:hover {
  background-color: #cc0000;
}

.btn-gray {
  background-color: #666;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.btn-gray:hover {
  background-color: #cc0000;
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}
.upload-icon {
  width: 24px;
  height: 24px;
  margin-top: 8px;
  cursor: pointer;
  float:left;
}
.file-count {
  font-size: 12px;
  color: #666;
  text-align: left;
  padding: 10px 40px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .main-header {
    flex-direction: column;
    align-items: normal;
  }

  .main-header nav {
    margin-top: 10px;
	text-align: center;
  }

  .category {
    height: 100px;
    font-size: 1.1rem;
  }

  .category-grid {
    padding: 15px;
    gap: 15px;
  }

  .questionnaire {
    padding: 15px;
  }
}

@media (max-width: 600px) {
	.category-wrapper {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  width: 100%;
	}
  .category {
    height: 90px;
    font-size: 1.2rem;
  }
}
