/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

/* Navbar */
nav {
  background: linear-gradient(90deg, #1e3a8a, #ef4444);
  color: white;
  padding: 1rem;
  position: relative;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: center; /* Keep menu centered */
  align-items: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.navbar a:hover {
  color: #ffde59;
}

/* --- USER BUBBLE --- */
.user-bubble {
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(90deg, #1e3a8a, #ef4444);
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  line-height: 42px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.user-bubble:hover {
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  color: #1e3a8a;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  width: 140px;
  text-align: center;
  z-index: 20;
}

.user-dropdown p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.user-dropdown button {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
}

.user-dropdown button:hover {
  background-color: #dc2626;
}

.user-bubble:hover .user-dropdown {
  display: block;
}

/* Hero / Page Header */
header {
  background: #1e3a8a;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.2rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 600px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Buttons (restored original colors) */
button {
  background: #ef4444;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

button:hover {
  background: #dc2626;
}

/* Form Sections */
.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

/* Form Card */
.form-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  transition: all 0.3s ease;
}

/* Form Labels */
.form-card label {
  display: block;
  font-weight: bold;
  margin-top: 15px;
}

/* Inputs and Selects unified design */
.form-card input,
.form-card select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 5px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.25s ease;
}

.form-card input:hover,
.form-card select:hover {
  border-color: #2563eb;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.15);
}

.form-card input:focus,
.form-card select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
  background-color: #fff;
}

/* Make phone number section aligned and full width */
.phone-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- ENHANCED Job Type, Category, and Phone Number Styling --- */
select[name="jobType"],
select[name="category"],
input[name="phone"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 1rem;
  background-color: #f9fafb;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #2563eb 50%),
                    linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(1.1em + 2px),
                       calc(100% - 17px) calc(1.1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select[name="jobType"]:hover,
select[name="category"]:hover,
input[name="phone"]:hover,
select[name="jobType"]:focus,
select[name="category"]:focus,
input[name="phone"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
  background-color: #fff;
  transform: scale(1.01);
}

/* --- Custom Dropdown (Open list) Styling --- */
select[name="jobType"]::-webkit-listbox,
select[name="category"]::-webkit-listbox {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 6px;
}

select[name="jobType"] option,
select[name="category"] option {
  border-radius: 10px;
  padding: 10px 12px;
  background-color: #ffffff;
  color: #111827;
  transition: background 0.2s ease;
}

select[name="jobType"] option:hover,
select[name="category"] option:hover {
  background-color: #e5f0ff;
}

/* Buttons */
.btn-primary, .btn-success {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: #e63946;
  color: #fff;
}

.btn-success {
  background-color: #38a169;
  color: #fff;
}

.btn-primary:hover, .btn-success:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Footer */
footer {
  background: #1e3a8a;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.apply-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px;
  flex-wrap: wrap;
}

.apply-side-img {
  width: 160px;
  height: auto;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.apply-side-img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.form-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 350px;
}

.form-card label {
  display: block;
  font-weight: 600;
  margin-top: 12px;
}

.form-card input,
.form-card select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.btn-success {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-success:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .apply-side-img {
    width: 100px;
  }
}

.apply-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px 1fr;
  min-height: 90vh;
  position: relative;
}


.side-image:hover {
  opacity: 0.35;
}

.apply-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

.form-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 350px;
}

.form-card label {
  display: block;
  font-weight: 600;
  margin-top: 12px;
}

.form-card input,
.form-card select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.btn-success {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-success:hover {
  background-color: #0056b3;
}

/* 📱 Responsive design */
@media (max-width: 900px) {
  .apply-wrapper {
    grid-template-columns: 1fr;
  }
  .side-image {
    display: none;
  }
  .apply-form-container {
    padding: 40px 20px;
  }
}


