/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header styles */
.Header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.Header__left {
    display: flex;
    align-items: center;
}

.Header__logo {
    height: 50px;
    width: auto;
}

.Header__right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.Header__nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.Header__nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    margin: 0 0.5rem;
}

.Header__nav a:hover {
    color: #666;
    text-decoration: underline;
}

/* Active navigation link */
.Header__nav a.active {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
}

/* Navigation for logged in users - all black text */
.Header__nav a[href*="dashboard"] {
    color: #333;
    font-weight: 500;
}

.Header__nav a[href*="post-job"],
.Header__nav a[href*="create-cv"] {
    color: #333;
    font-weight: 500;
}

.Header__nav a[href*="search"] {
    color: #333;
    font-weight: 500;
}

.Header__nav a[href*="applications"] {
    color: #333;
    font-weight: 500;
}

.Header__languages {
    display: flex;
    gap: 0.5rem;
}

.Header__language {
    background-size: cover;
    background-position: center;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.Header__language:hover {
    transform: scale(1.1);
}

.Header__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.Header__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.Header__user-info a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.Header__account-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.Header__account-links a {
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.Header__login-btn {
    color: #333;
    background: transparent;
    border: 1px solid #ddd;
}

.Header__login-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.Header__register-btn {
    color: #fff;
    background: #007bff;
    border: 1px solid #007bff;
}

.Header__register-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Mobile menu */
.control-checkbox {
    display: none;
}

.Header__right-button {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero section */
.Hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.Hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.Hero__content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
}

/* Registration form */
.RegisterForm {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.RegisterForm__type {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #007bff;
    position: relative;
    background: #f8f9fa;
}

.RegisterForm__type input[type="radio"] {
    display: none;
}

.RegisterForm__type label {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.RegisterForm__type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #007bff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.RegisterForm__type input[type="radio"]:checked + label {
    color: white;
}

#registertype-employer:checked ~ .RegisterForm__type::before {
    transform: translateX(100%);
}

.Form__header {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.5rem;
}

.RegisterForm__sections {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.RegisterForm__employee,
.RegisterForm__employer {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, opacity;
}

.RegisterForm__employee {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.RegisterForm__employer {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

/* Default state - employee form visible */
.RegisterForm__employee.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.RegisterForm__employer.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

/* Form visibility states */
.RegisterForm__employee:not(.active) {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.RegisterForm__employer:not(.active) {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

/* Form inputs */
.Input {
    margin-bottom: 1.5rem;
}

.Input__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.Input__input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.Input__input:focus {
    outline: none;
    border-color: #007bff;
}

.InputGroup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.InputGroup .Input {
    margin-bottom: 0;
}

/* Date of birth inputs */
#input-employee-dob .InputGroup {
    grid-template-columns: 1fr 2fr 1fr;
}

/* Radio buttons */
.InputGroup input[type="radio"] {
    display: none;
}

.InputGroup label {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.InputGroup input[type="radio"]:checked + label {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Buttons */
.Button {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.Button:hover {
    background: #0056b3;
}

.RegisterForm__buttons {
    margin-top: 2rem;
}

/* Services section */
.Services {
    padding: 4rem 2rem;
    background: #fff;
}

.Services__header {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.Services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.Services__grid > div {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Services__grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.Services__grid i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.Services__grid p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* Footer */
.Footer {
    background: #333;
    color: #fff;
    padding: 3rem 2rem 1rem;
}

.Footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.Footer__column-header {
    margin-bottom: 1.5rem;
    color: #007bff;
}

.Footer__link-list {
    list-style: none;
    margin-bottom: 2rem;
}

.Footer__link-list li {
    margin-bottom: 0.5rem;
}

.Footer__link-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.Footer__link-list a:hover {
    color: #007bff;
}

.Footer__social-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.Footer__social-media a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.Footer__social-media a:hover {
    color: #007bff;
}

.Footer__logo {
    height: 60px;
    margin-bottom: 1rem;
}

.Footer__copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Flash messages */
.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
    position: sticky;
    top: 10px;
    z-index: 1100;
}

.flash-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive design */
@media (max-width: 768px) {
    .Header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .Header__right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .Header__nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .Hero {
        height: auto;
        min-height: 400px;
        padding: 2rem 1rem;
    }
    
    .Hero__content {
        padding: 2rem 1rem;
    }
    
    .InputGroup {
        grid-template-columns: 1fr;
    }
    
    #input-employee-dob .InputGroup {
        grid-template-columns: 1fr;
    }
    
    .Services {
        padding: 2rem 1rem;
    }
    
    .Services__header {
        font-size: 2rem;
    }
    
    .Footer {
        padding: 2rem 1rem 1rem;
    }
    
    .Footer__columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .RegisterForm {
        padding: 1rem;
    }
    
    .Services__grid {
        grid-template-columns: 1fr;
    }
}

/* User Dashboard */
.Dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.Dashboard__header {
    text-align: center;
    margin-bottom: 3rem;
}

.Dashboard__header h1 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.Dashboard__header p {
    font-size: 1.1rem;
    color: #666;
}

.Dashboard__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.Dashboard__card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.Dashboard__card h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.ProfileInfo p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.ProfileInfo strong {
    color: #007bff;
}

.QuickActions, .AccountActions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.QuickActions .Button, .AccountActions .Button {
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.Button--secondary {
    background-color: #6c757d;
    color: white;
}

.Button--secondary:hover {
    background-color: #5a6268;
}

.Button--danger {
    background-color: #dc3545;
    color: white;
}

.Button--danger:hover {
    background-color: #c82333;
}

/* Login Page */
.LoginPage {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.LoginForm {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    max-width: 400px;
    width: 100%;
}

.LoginForm h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.LoginForm .Input {
    margin-bottom: 1.5rem;
}

.LoginForm__buttons {
    margin-top: 2rem;
}

.LoginForm__buttons .Button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.LoginForm__links {
    margin-top: 2rem;
    text-align: center;
}

.LoginForm__links p {
    color: #666;
    margin-bottom: 0.5rem;
}

.LoginForm__links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.LoginForm__links a:hover {
    text-decoration: underline;
}

/* Dashboard buttons */
.Dashboard__buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Job list styles */
.JobList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.JobItem {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.JobItem:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.JobItem h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.JobItem p {
    margin-bottom: 0.5rem;
    color: #666;
}

.JobItem .Button {
    margin-top: 1rem;
    width: auto;
    padding: 0.5rem 1rem;
}

/* Application List Styles */
.ApplicationList {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ApplicationItem {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.ApplicationItem:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ApplicationItem h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ApplicationItem p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ApplicationActions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.status-pending {
    color: #f39c12;
    font-weight: 600;
}

.status-reviewed {
    color: #3498db;
    font-weight: 600;
}

.status-accepted {
    color: #27ae60;
    font-weight: 600;
}

.status-rejected {
    color: #e74c3c;
    font-weight: 600;
}

/* Candidate List Styles */
.CandidateList {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.CandidateItem {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.CandidateItem:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.CandidateInfo {
    flex: 1;
    min-width: 250px;
}

.CandidateInfo h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.CandidateInfo p {
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.CandidateActions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Job Actions */
.JobActions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Form Styles for Post Job */
.Input textarea {
    resize: vertical;
    min-height: 100px;
}

.Input select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.Input select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .CandidateItem {
        flex-direction: column;
        align-items: stretch;
    }
    
    .CandidateActions {
        justify-content: center;
    }
    
    .ApplicationActions {
        justify-content: center;
    }
    
    .JobActions {
        justify-content: center;
    }
}

/* Hero slider form styles */
.hero-slider-form {
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hero slider form inherits normal form styles */

.hero-slider-form .Form__header {
    font-size: 1rem; /* Reduced from default */
    margin-bottom: 1rem; /* Reduced from default */
}

.hero-slider-form .RegisterForm__buttons {
    margin-top: 1rem; /* Reduced from 2rem */
}

.hero-slider-form:target {
    animation: formHighlight 2s ease;
}

@keyframes formHighlight {
    0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 0 30px rgba(0, 123, 255, 0.4); }
    100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
}

/* Scroll to form button styles */
.Header__register-btn {
    position: relative;
    overflow: hidden;
}

.Header__register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.Header__register-btn:hover::before {
    left: 100%;
} 

/* Form input error styles */
.input-error {
  border: 2px solid #e74c3c !important;
  background: #fff0f0;
  position: relative;
}
.input-error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.input-error-message .icon {
  font-style: normal;
  font-weight: bold;
  color: #e74c3c;
} 

/* SIMPLE TAB SYSTEM - GUARANTEED TO WORK */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab {
  padding: 0.7rem 2.2rem;
  border: none;
  background: #f3f6fa;
  color: #222;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.tab.active {
  background: #007bff;
  color: #fff;
}

.forms-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.cv-form {
  width: 100%;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Input styling for CV forms */
.cv-form .Input {
  margin-bottom: 20px;
}

.cv-form .Input__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.cv-form .Input__input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #333;
  box-sizing: border-box;
}

.cv-form .Input__input:focus {
  outline: none;
  border-color: #007bff;
}

.cv-form .InputGroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.cv-form .InputGroup .Input {
  margin-bottom: 0;
}

.cv-form #input-employee-dob .InputGroup {
  grid-template-columns: 1fr 2fr 1fr;
}

.cv-form .InputGroup input[type="radio"] {
  display: none;
}

.cv-form .InputGroup .Input__button {
  display: block;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  background: #f8f9fa;
  color: #333;
  transition: all 0.3s ease;
}

.cv-form .InputGroup input[type="radio"]:checked + .Input__button {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.cv-form .Button {
  width: 100%;
  padding: 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cv-form .Button:hover {
  background: #0056b3;
}

.cv-form .RegisterForm__buttons {
  margin-top: 30px;
}

.cv-form .Form__header {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: #333;
} 

/* POPUP BUTTONS IN HERO SECTION */
.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.cv-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 30px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cv-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3, #004085);
}

.cv-button i {
  font-size: 1.5rem;
}

.employer-btn {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.employer-btn:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* POPUP MODAL */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.popup-container {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.popup-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

.popup-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: #f1f1f1;
  color: #333;
}

.popup-content {
  padding: 30px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

/* FORM STYLING */
.form-fields {
  display: block;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: white;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 10px;
}

.radio-group {
  display: flex;
  gap: 15px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  flex: 1;
  justify-content: center;
}

.radio-option:hover {
  border-color: #007bff;
  background: #e7f3ff;
}

.radio-option input[type="radio"] {
  width: auto;
  margin: 0;
}

.radio-option input[type="radio"]:checked + span {
  color: #007bff;
  font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: #007bff;
  background: #e7f3ff;
}

.popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-cancel {
  padding: 12px 25px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-cancel:hover {
  background: #5a6268;
}

.btn-submit {
  padding: 12px 30px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .popup-container {
    width: 95%;
    margin: 20px;
  }
  
  .popup-header,
  .popup-content {
    padding: 20px;
  }
  
  .input-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .date-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .cv-button {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
} 