/* ==============================================================================
   KENYA WORK ASSOCIATION BOARD (KWAB) - OFFICIAL STYLESHEET
   100% Native Lightweight CSS3 (Green / Dark Theme)
   ============================================================================== */

:root {
  --bg-dark: #0b1d13;
  --bg-card: rgba(22, 35, 26, 0.85);
  --bg-modal: #16231a;
  --accent-green: #1b7a3e;
  --accent-light-green: #22c55e;
  --accent-red: #d97706;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --border-color: #1f3a29;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.header-top {
  background-color: #05140c;
  padding: 8px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

.main-header {
  background-color: #0b2216;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.brand-title h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.brand-title p {
  font-size: 12px;
  color: var(--text-gray);
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-btn {
  background-color: var(--accent-green);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #0b2216 0%, #0d2e1e 100%);
  padding: 40px 20px;
  text-align: center;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 24px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-red {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
  transition: transform 0.2s;
}

.btn-green {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
  transition: transform 0.2s;
}

.btn-red:hover, .btn-green:hover {
  transform: translateY(-2px);
}

.process-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
}

.section-heading p {
  font-size: 13.5px;
  color: var(--text-gray);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.step-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-light-green);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--text-gray);
}

/* Verification Form & Certificate Preview Section */
.verification-section {
  background-color: #ffffff;
  color: #111827;
  padding: 40px 20px;
  text-align: center;
}

.verification-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 8px;
}

.verification-sub {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 24px;
}

.search-box-form {
  max-width: 560px;
  margin: 0 auto 12px;
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background-color: #15803d;
  color: white;
  border: none;
  padding: 0 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.example-hint {
  font-size: 12px;
  font-style: italic;
  color: #6b7280;
  margin-bottom: 32px;
}

.certificate-preview-container {
  max-width: 800px;
  margin: 0 auto;
  border: 4px double #15803d;
  border-radius: 8px;
  padding: 8px;
  background-color: #f9fafb;
}

.certificate-preview-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  background-color: #0e2015;
  border: 1px solid #1f3a29;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: white;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  background-color: #05140c;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-gray);
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background-color: var(--accent-green);
  color: white;
  box-shadow: 0 2px 8px rgba(27, 122, 62, 0.4);
}

.modal-shield-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background-color: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-light-green);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13.5px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.otp-box {
  width: 44px;
  height: 52px;
  background-color: #08140c;
  border: 1.5px solid #1f3a29;
  border-radius: 8px;
  color: white;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.otp-box:focus {
  border-color: var(--accent-light-green);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.btn-submit {
  width: 100%;
  background-color: #15803d;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.resend-link {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-gray);
}

.resend-link a {
  color: var(--accent-light-green);
  text-decoration: none;
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: auto;
  background-color: #05140c;
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-gray);
  border-top: 1px solid var(--border-color);
}
