/* Jobs Page Specific Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primaryGreen), var(--darkGreen));
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--HeaderFont);
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-header p {
  font-family: var(--BodyFont);
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Job Application Section */
.job-application-section {
  padding: 80px 0;
  background: var(--lightGray);
}

.application-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Application Form */
.application-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.application-form-wrapper h2 {
  font-family: var(--HeaderFont);
  font-size: 2rem;
  color: var(--primaryGreen);
  margin-bottom: 15px;
}

.application-form-wrapper p {
  font-family: var(--BodyFont);
  color: var(--mediumGray);
  margin-bottom: 30px;
  line-height: 1.6;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--BodyFont);
  font-weight: 600;
  color: var(--darkGray);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--BodyFont);
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primaryGreen);
  box-shadow: 0 0 0 3px rgba(0, 115, 88, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input[type="file"] {
  padding: 8px;
  border: 2px dashed #ddd;
  background: var(--lightGray);
}

.form-group small {
  margin-top: 5px;
  color: var(--mediumGray);
  font-size: 12px;
  font-style: italic;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.application-form .btn {
  align-self: flex-start;
  padding: 15px 40px;
  font-size: 16px;
  margin-top: 10px;
}

/* Form Message */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  display: none;
  font-family: var(--BodyFont);
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Company Info Sidebar */
.company-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  font-family: var(--HeaderFont);
  font-size: 1.3rem;
  color: var(--primaryGreen);
  margin-bottom: 20px;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card ul li {
  font-family: var(--BodyFont);
  color: var(--mediumGray);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.info-card ul li::before {
  content: "•";
  color: var(--primaryGreen);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.info-card p {
  font-family: var(--BodyFont);
  color: var(--mediumGray);
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-card .btn-secondary {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 14px;
  display: inline-block;
  text-decoration: none;
}

/* Loading State */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%,
  20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%,
  100% {
    content: "...";
  }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .application-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company-info-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-header p {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  .application-form-wrapper {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .company-info-sidebar {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 20px;
  }

  .application-form .btn {
    width: 100%;
    text-align: center;
  }

  .job-application-section {
    padding: 60px 0;
  }
}
