/* ============================================================
   GetJobAlert.net — Main Stylesheet
   ============================================================ */

:root {
  --primary:       #1565C0;
  --primary-dark:  #0D47A1;
  --primary-light: #E3F2FD;
  --accent:        #FF6F00;
  --accent-light:  #FFF3E0;
  --text:          #212121;
  --muted:         #616161;
  --bg:            #F5F7FA;
  --card-bg:       #FFFFFF;
  --border:        #E0E0E0;
  --success:       #2E7D32;
  --danger:        #C62828;
  --radius:        12px;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 28px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

/* ─── Navbar ──────────────────────────────────────────────── */
.site-nav {
  background: var(--primary-dark);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-nav .logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-nav .logo span { color: var(--accent); }
.lang-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.25); }
.lang-dropdown { min-width: 160px; }
.lang-dropdown .dropdown-item { font-size: 0.9rem; }
.lang-dropdown .dropdown-item:active { background: var(--primary); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 55%, #1A237E 100%);
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 350px; height: 350px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: rgba(255,111,0,0.08);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.btn-hero {
  background: var(--accent);
  color: #fff;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,111,0,0.4);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,111,0,0.5);
  color: #fff;
}

/* ─── Section ─────────────────────────────────────────────── */
.section { padding: 70px 0; }
.section-alt { background: #fff; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

/* ─── Company Cards ───────────────────────────────────────── */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.company-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.company-card .icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.company-card .co-name { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.company-card .co-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* ─── How It Works ────────────────────────────────────────── */
.step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
}
.step-num {
  width: 52px; height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h5 { font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin: 0; }

/* ─── Registration Form ───────────────────────────────────── */
.form-section {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
  padding: 70px 0;
}
.form-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  padding: 40px;
}
.form-card h2 { font-weight: 800; color: var(--primary-dark); margin-bottom: 6px; }
.form-card .form-sub { color: var(--muted); margin-bottom: 28px; font-size: 0.93rem; }
.form-section-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid var(--border);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}

/* Company Checkboxes */
.co-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.co-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.co-check-item:hover { border-color: var(--primary); background: var(--primary-light); }
.co-check-item input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.co-check-item.checked { border-color: var(--primary); background: var(--primary-light); }
.co-check-item .co-icon { font-size: 1.3rem; }
.co-check-item .co-label { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.co-check-item .co-price { font-size: 0.78rem; color: var(--muted); }

/* Package Toggle */
.pkg-toggle { display: flex; gap: 12px; }
.pkg-card {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.pkg-card:hover { border-color: var(--primary); }
.pkg-card.active { border-color: var(--primary); background: var(--primary-light); }
.pkg-card .pkg-name { font-weight: 700; font-size: 1rem; }
.pkg-card .pkg-price { font-size: 0.85rem; color: var(--muted); }
.pkg-card .pkg-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}

/* Order Summary */
.order-summary {
  background: var(--bg);
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
}
.order-summary .co-list { list-style: none; padding: 0; margin: 0 0 12px; }
.order-summary .co-list li {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.order-summary .co-list li:last-child { border-bottom: none; }
.order-total {
  display: flex; justify-content: space-between;
  font-weight: 800; font-size: 1.1rem;
  margin-top: 8px; padding-top: 10px;
  border-top: 2px solid var(--primary);
  color: var(--primary-dark);
}

/* Payment Section */
.payment-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.pay-tab {
  flex: 1; padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  background: var(--card-bg);
}
.pay-tab:hover { border-color: var(--primary); }
.pay-tab.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.pay-tab .pay-icon { font-size: 1.3rem; display: block; margin-bottom: 4px; }

.paypal-box {
  background: #FFF8E1;
  border: 1.5px solid #FFE082;
  border-radius: 10px;
  padding: 18px 20px;
}
.paypal-id-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.paypal-id-row span { flex: 1; font-weight: 700; font-size: 1rem; }
.btn-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-copy:hover { background: var(--primary-dark); }
.btn-copy.copied { background: var(--success); }

.stripe-box {
  background: #F3F0FF;
  border: 1.5px solid #B39DDB;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
}
.stripe-box p { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 6px;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-stripe {
  background: #6772E5;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-stripe:hover { background: #5469d4; }

/* ─── Success Page ────────────────────────────────────────── */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  max-width: 520px;
  box-shadow: var(--shadow-hover);
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-card h2 { font-weight: 800; color: var(--success); margin-bottom: 16px; }

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: #0D1B2A;
  color: rgba(255,255,255,0.75);
  padding: 50px 0 30px;
}
footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
footer .divider { border-color: rgba(255,255,255,0.1); margin: 24px 0 16px; }
footer .rights { font-size: 0.83rem; text-align: center; opacity: 0.5; }

/* ─── WhatsApp Floating Button ────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ─── Admin Panel ─────────────────────────────────────────── */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--primary-dark);
  position: fixed;
  top: 0; left: 0;
  padding-top: 20px;
}
.admin-sidebar .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 20px 24px;
  display: block;
  text-decoration: none;
}
.admin-sidebar .brand span { color: var(--accent); }
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.75);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-left-color: var(--accent);
}
.admin-main {
  margin-left: 240px;
  padding: 28px;
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  margin: -28px -28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar h4 { margin: 0; font-weight: 700; }
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.stat-card.orange { border-left-color: var(--accent); }
.stat-card.green  { border-left-color: var(--success); }
.stat-card.red    { border-left-color: var(--danger); }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.stat-card.orange .stat-num { color: var(--accent); }
.stat-card.green  .stat-num { color: var(--success); }
.stat-card.red    .stat-num { color: var(--danger); }
.stat-card .stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.badge-pending  { background: #FFF3E0; color: #E65100; }
.badge-approved { background: #E8F5E9; color: #2E7D32; }
.badge-rejected { background: #FFEBEE; color: #C62828; }
.badge-active   { background: #E8F5E9; color: #2E7D32; }
.badge-blocked  { background: #FFEBEE; color: #C62828; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-card { padding: 24px 18px; }
  .co-check-grid { grid-template-columns: 1fr 1fr; }
  .pkg-toggle { flex-direction: column; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 16px; }
  .whatsapp-float { bottom: 18px; right: 18px; }
}

/* RTL overrides */
[dir="rtl"] .admin-sidebar { left: auto; right: 0; }
[dir="rtl"] .admin-main    { margin-left: 0; margin-right: 240px; }
[dir="rtl"] .admin-sidebar .nav-link { border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .admin-sidebar .nav-link:hover,
[dir="rtl"] .admin-sidebar .nav-link.active { border-right-color: var(--accent); }
[dir="rtl"] .whatsapp-float { right: auto; left: 28px; }
