/* Import fonts and base variables */
@import url("../style.css");

:root {
  --color-bg: #0f0f11;
  --color-surface: #1a1a1d;
  --color-border: #2a2a2e;
  --color-light: #f5f5f7;
  --color-secondary: #cbd5e0;
  --color-accent: #7f5af0;
  --color-accent-hover: #6c4de0;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* Global Reset */
body {
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-light);
  margin: 0;
  padding: 0;
}

/* Header */
.site-header {
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

/* Desktop Nav */
.navlinks {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .navlinks {
    display: none; /* hide desktop nav on mobile */
  }
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}

.mobile-nav.active {
  display: flex; /* only show when toggled */
}
.navlinks a {
  color: var(--color-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navlinks a:hover {
  color: var(--color-accent);
}

.cta-btn {
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--color-accent-hover);
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--color-light);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1rem auto;
  color: var(--color-secondary);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent), #2cb67d);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-content .btn {
  background: #fff;
  color: #1a202c;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.cta-content .btn:hover {
  transform: scale(1.05);
}

/* Role Descriptions */
.role-descriptions {
  background-color: var(--color-surface);
  padding: 60px 20px;
  text-align: center;
}

.role-descriptions h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--color-light);
}

/* Application Form Section */
.apply-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #0f0f11, #1a1a1d);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-form {
  max-width: 850px;
  width: 100%;
  background: rgba(26, 26, 29, 0.95); /* glassy dark */
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.6s ease;
}

.apply-form h2 {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-family: var(--font-heading);
}

.form-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-secondary);
}

/* Inputs */
.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 15px;
  background: #111;
  color: var(--color-light);
  transition: all 0.3s ease;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--color-accent);
  background: #1a1a1d;
  box-shadow: 0 0 8px rgba(127,90,240,0.6);
  outline: none;
}

/* Buttons */
.btn {
  background: var(--color-accent);
  color: #fff;
  padding: 14px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Agreement Checkbox */
.agreement {
  margin: 1.5rem 0;
  font-size: 14px;
  color: var(--color-secondary);
}

.agreement a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Form Sections */
.form-section {
  margin-bottom: 2rem; /* spacing between sections */
}

/* Two-column layout */
.two-col {
  display: flex;
  gap: 1rem;            /* space between columns */
  margin-bottom: 1rem;  /* space below each row */
}

.two-col > div {
  flex: 1;              /* equal width for each column */
}

/* Responsive stacking for mobile */
@media (max-width: 768px) {
  .two-col {
    flex-direction: column;
  }
}

/* Ensure labels and inputs align nicely */
.apply-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-light);
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  margin-bottom: 1rem; /* consistent spacing below fields */
}

/* Extra polish for small screens */
@media (max-width: 480px) {
  .apply-form {
    padding: 1.5rem;
  }
  .apply-form h2 {
    font-size: 1.8rem;
  }
}

/* WhatsApp Floating Button */
.btn.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: auto;
  padding: 12px 18px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn.whatsapp:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

/* Animation */
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .section-head {
    font-size: 1.75rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .two-col {
    flex-direction: column;
  }
}


/* Role Grid Layout */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual Role Card */
.role-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.role-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-accent);
}

.role-card p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Hiring Process Section */
.hiring-process {
  background-color: var(--color-surface);
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
}

.hiring-process h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--color-light);
}

.hiring-process ol {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  text-align: left;
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.8;
}

.hiring-process ol li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 1.5em;
}

.hiring-process ol li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2cb67d;
  font-weight: bold;
}

/* Benefits Section */
.benefits-section {
  padding: 5rem 1.5rem;
  background: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.benefit-card h3 {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: var(--color-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Shared Section Styling */
.faq-section,
.commission-calculator,
.payment-policy {
  padding: 60px 20px;
  background-color: var(--color-surface);
  text-align: center;
  border-radius: 12px;
}

.section-head {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-accent);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.faq-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-accent);
}

.faq-card p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Payment Policy List */
.payment-policy ul {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  padding-left: 20px;
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.8;
}

.payment-policy ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 1.5em;
}

.payment-policy ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2cb67d;
  font-weight: bold;
}



/* Tools container (currency + language) */
.tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto; /* push to right side in desktop nav */
}

.tools label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

.tools select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

#google_translate_element {
  font-size: 0.9rem;
}

/* Desktop nav positioning */
.site-header .tools {
  margin-left: 2rem;
}

/* Mobile nav styling */
.mobile-nav .tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #333;
}

.mobile-nav .tools label {
  color: #fff;
}

.mobile-nav .tools select {
  width: 100%;
}

/* Spinner animation */
#formStatus.loading::after {
  content: "⏳";
  margin-left: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
