/* Metro Elite Transfer - Recruiting Page Styles */

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

:root {
  --max-page-width: 1170px;
  --white: #f3f4f7;
  --black: #000000;
  --text-color: #434343;
  --brand-color: #111111;
  --heading-color: #000;
  --btn-font: "Poppins", sans-serif;
}

/* Base */
a {
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* App Container */
.app {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  min-height: 100vh;
}

.app__container {
  max-width: var(--max-page-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  top: 0;
  z-index: 1000;
}

.logo {
  max-width: 200px;
  height: auto;
}

.phone__link {
  padding: 12px 20px;
  background-color: var(--white);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s;
}

.phone__link:hover {
  background-color: #d2d6e4;
}

.phone__icon {
  fill: var(--brand-color);
  width: 18px;
  height: 18px;
}

.phone__number {
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
}

/* Hero Section */
.recruit-hero {
  background: linear-gradient(to right, #ffffff, #f6f6f5);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.recruit-hero__logo {
  max-width: 280px;
  margin-bottom: 10px;
}

.recruit-hero__company {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.recruit-hero__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.recruit-hero__tagline {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 600px;
  line-height: 1.6;
}

.recruit-hero__cta {
  margin-top: 20px;
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--btn-font);
}

.btn--primary {
  background-color: var(--brand-color);
  color: #fff;
  border: 2px solid var(--brand-color);
  border-radius: 3px;
}

.btn--primary:hover {
  background-color: #fff;
  color: var(--brand-color);
}

.btn--secondary {
  background-color: var(--brand-color);
  color: #fff;
  border-radius: 4px;
  border: none;
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Benefits Section */
.recruit-benefits {
  padding: 80px 20px;
  background-color: #fff;
}

.recruit-benefits__title {
  font-size: 2.2rem;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 50px;
}

.recruit-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  text-align: center;
  border-radius: 5px;
  transition: all 0.3s;
}

.benefit-card:hover {
  border-color: var(--brand-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card__icon {
  width: 50px;
  height: 50px;
  fill: var(--brand-color);
  margin-bottom: 20px;
}

.benefit-card__title {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.benefit-card__text {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Form Section */
.recruit-form {
  padding: 80px 20px;
  background: linear-gradient(to right, #f6f6f5, #ffffff);
  max-width: 600px;
  margin: 0 auto;
}

.recruit-form__title {
  font-size: 2.2rem;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 15px;
}

.recruit-form__subtitle {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 40px;
}

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

.form__group {
  display: flex;
  flex-direction: column;
}

.form__label {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.form__input,
.form__textarea {
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background: #fff;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--brand-color);
}

.form__input--error {
  border-color: #dc3545 !important;
}

.form__input--file {
  padding: 12px;
  cursor: pointer;
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 15px;
  margin-top: 10px;
}

.file-preview__name {
  font-size: 0.9rem;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 40px);
}

.file-preview__remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  transition: color 0.2s;
}

.file-preview__remove:hover {
  color: #dc3545;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
}

.form__btn {
  padding: 15px 30px;
  background-color: var(--brand-color);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form__btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Message */
.form--success {
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.success-icon {
  width: 60px;
  height: 60px;
  fill: #28a745;
  margin-bottom: 20px;
}

.success-title {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.success-text {
  color: var(--text-color);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 50px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer__title {
  color: var(--heading-color);
  font-size: 1.8rem;
  font-weight: 700;
}

.footer__text {
  color: var(--text-color);
  text-align: center;
  max-width: 500px;
}

.footer__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

.footer__list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer__link {
  color: var(--text-color);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--brand-color);
}

.socials {
  display: flex;
  gap: 15px;
}

.socials__icon {
  width: 24px;
  height: 24px;
  fill: var(--brand-color);
  transition: fill 0.3s;
}

.socials__icon--facebook:hover { fill: #1877f2; }
.socials__icon--linkedin:hover { fill: #0077b5; }

.footer__logo--small {
  width: 40px;
  margin-top: 20px;
}

.footer__copyright {
  color: var(--text-color);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0 15px;
    justify-content: center;
    height: 50px;
  }
  
  .logo {
    max-width: 180px;
  }
  
  .phone__link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--brand-color);
    padding: 0;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  .phone__link:hover {
    background-color: #1a1a1a;
  }
  
  .phone__icon {
    fill: #fff;
    width: 24px;
    height: 24px;
  }
  
  .phone__number {
    display: none;
  }
  
  .recruit-hero {
    padding: 60px 20px;
  }
  
  .recruit-hero__title {
    font-size: 2.2rem;
  }
  
  .recruit-hero__tagline {
    font-size: 1rem;
  }
  
  .recruit-benefits {
    padding: 60px 20px;
  }
  
  .recruit-benefits__title {
    font-size: 1.8rem;
  }
  
  .recruit-form {
    padding: 60px 20px;
  }
  
  .footer__nav {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .recruit-hero__logo {
    max-width: 200px;
  }
  
  .recruit-hero__title {
    font-size: 1.8rem;
  }
  
  .benefit-card {
    padding: 30px 20px;
  }
}


/* Job Details Section */
.job-details {
  padding: 60px 20px;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.job-details__header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.job-details__location {
  display: inline-block;
  background-color: #f5f5f5;
  color: var(--text-color);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.job-details__title {
  font-size: 2.2rem;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.job-details__meta {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.job-details__type,
.job-details__salary {
  display: inline-block;
  background-color: var(--brand-color);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
}

.job-details__salary {
  background-color: #28a745;
}

.job-details__content {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.job-details__subtitle {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-color);
  display: inline-block;
}

.job-details__text {
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1rem;
}

.job-details__list {
  list-style: none;
  padding: 0;
}

.job-details__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-color);
  line-height: 1.5;
}

.job-details__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-color);
  font-weight: bold;
}

.job-details__list--traits li::before {
  content: "★";
}

.job-details__note {
  margin-top: 15px;
  padding: 15px;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Schedule Box */
.schedule-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background-color: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.schedule-text {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Compensation Box */
.compensation-box {
  background-color: var(--white);
  border-radius: 8px;
  padding: 25px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.compensation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.compensation-item:last-of-type {
  border-bottom: none;
}

.compensation-label {
  color: var(--text-color);
  font-weight: 500;
}

.compensation-value {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.compensation-note {
  margin-top: 15px;
  color: var(--text-color);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .job-details {
    padding: 40px 20px;
  }
  
  .job-details__title {
    font-size: 1.8rem;
  }
  
  .job-details__subtitle {
    font-size: 1.1rem;
  }
  
  .job-details__meta {
    flex-direction: column;
    align-items: center;
  }
  
  .schedule-box {
    grid-template-columns: 1fr;
  }
  
  .compensation-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}


/* Checkbox styling */
.form__group--checkbox {
  margin-top: 10px;
}

.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--text-color);
  line-height: 1.5;
}

.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--brand-color);
}

.form__checkbox-label span {
  flex: 1;
}
