/* Import base styles from index.css */
@import url('index.css');

/* Override body opacity for page load */
body {
    opacity: 1 !important;
}

/* Ensure header is visible */
header {
    position: relative;
    z-index: 1000;
}

/* Apply Hero Section */
.apply-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: transparent;
    border-top: 2px solid transparent;
    background-image: linear-gradient(#0a0a0a, #0a0a0a), linear-gradient(90deg, #ff4824, #ff0b4e);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.apply-hero .hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.apply-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 700px;
    margin: 0 auto;
}

/* Page Hero for Application Pages */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: #0a0a0a;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.page-hero p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

.back-link {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Position Requirements Section */
.position-requirements {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 0;
}

.position-requirements h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.requirement-item h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.requirement-item p {
    color: #ccc;
    line-height: 1.6;
}

/* Specific Requirements List */
.requirements-list {
    margin-top: 2rem;
}

.requirements-list h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.requirements-list ul {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    color: #ccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements-list li::before {
    content: '•';
    color: #ff4824;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Positions Grid Section */
.positions-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #888;
}

/* Positions Grid */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Position Card - Clean and Minimal */
.position-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.position-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Position Header */
.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.position-icon {
    font-size: 3rem;
    line-height: 1;
}

.position-status {
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 0;
}

.position-status.closed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Position Info */
.position-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.position-description {
    font-size: 1rem;
    color: #888;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.85rem;
    border-radius: 0;
}

/* Apply Button */
.apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 0;
}

.apply-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-top: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), linear-gradient(90deg, #ff4824, #ff0b4e);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.apply-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.button-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.apply-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Requirements Section */
.requirements-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

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

.requirement-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 2rem;
}

.requirement-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 72, 36, 0.1);
    border: 1px solid rgba(255, 72, 36, 0.2);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.requirement-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.requirement-card p {
    color: #888;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apply-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .apply-hero {
        padding: 100px 0 60px;
    }
    
    .apply-hero .hero-title {
        font-size: 2rem;
    }
    
    .position-card {
        padding: 2rem 1.5rem;
    }
}

/* Form Styling */
.application-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0;
}

.section-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #fff;
    font-size: 1rem;
    transition: all var(--duration-normal) var(--ease-out-quart), transform var(--duration-fast) var(--ease-out-quart), box-shadow var(--duration-normal) var(--ease-out-quart);
    will-change: transform, background-color, border-color, box-shadow;
}

.form-group select option {
    background: rgba(40, 40, 40, 0.98) !important;
    color: #e0e0e0 !important;
    padding: 8px 12px !important;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
    background: rgba(255, 72, 36, 0.2) !important;
    color: #ffffff !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 72, 36, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 72, 36, 0.15);
}

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

.form-group select {
    cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #ff4824, #ff0b4e);
    height: 100%;
    transition: width 0.3s ease;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(90deg, #ff4824, #ff0b4e);
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 72, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ccc;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .position-requirements {
        padding: 2rem;
        margin: 0 1rem 2rem;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .application-form {
        padding: 0 1rem 3rem;
    }
    
    .form-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Notification System Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 40, 40, 0.95);
    color: #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    border-left: 5px solid #28a745;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
    background: rgba(60, 20, 20, 0.95);
}

.notification.warning {
    border-left-color: #ffc107;
    background: rgba(60, 50, 20, 0.95);
}

.notification-content {
    padding: 15px 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-content strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.notification-content p {
    margin: 5px 0;
    color: #d0d0d0;
}

/* Application Form Enhancement */
.btn[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #666;
}
