* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
}

.cert-registration-container,
.cert-login-container,
.cert-dashboard-container,
.cert-module-container {
  max-width: 800px;
  margin: 50px auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 5px rgba(192, 57, 43, 0.3);
}

.btn-primary {
  background: #c0392b;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.btn-primary:hover {
  background: #a93226;
}

.btn-secondary {
  background: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}

.form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.module-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #c0392b;
}

.module-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.certificate-box {
  background: #d4edda;
  border: 2px solid #28a745;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin: 30px 0;
}

.certificate-box h3 {
  color: #155724;
  font-size: 24px;
  margin-bottom: 10px;
}

.mcq-item {
  background: #f9f9f9;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.mcq-item label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.cert-error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .cert-registration-container,
  .cert-login-container,
  .cert-dashboard-container,
  .cert-module-container {
    padding: 20px;
    margin: 20px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }
}
