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

body {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
        sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Hero Section - With Background Image */
.hero-section {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1920&h=600&fit=crop&q=80")
        center/cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.95),
        rgba(0, 73, 153, 0.92)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-left {
    flex: 1;
    max-width: 550px;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-icon i {
    font-size: 36px;
    color: white;
}

.hero-left h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-left p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.hero-right {
    flex: 0 0 auto;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    text-align: right;
    background: rgba(255, 255, 255, 0.1);
    padding: 24px 32px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Selected Job Card */
.selected-job-card {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.2);
}

.job-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon i {
    font-size: 32px;
}

.job-details h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.job-details p {
    font-size: 15px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.separator {
    opacity: 0.5;
}

/* Form */
.application-form {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f5f5f5;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section-header i {
    font-size: 28px;
    color: #0066cc;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

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

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-with-icon input {
    padding-left: 45px;
}

/* Upload Section */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.upload-box {
    border: 2px dashed #0066cc;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.03),
        rgba(0, 73, 153, 0.03)
    );
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #004999;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.08),
        rgba(0, 73, 153, 0.08)
    );
    transform: translateY(-2px);
}

.upload-box i {
    font-size: 36px;
    color: #0066cc;
    display: block;
    margin-bottom: 12px;
}

.upload-text {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
}

.upload-hint {
    display: block;
    font-size: 12px;
    color: #999;
}

/* File Counter */
.file-counter {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.file-counter i {
    font-size: 14px;
}

/* File Preview */
.file-preview {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-preview-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-preview-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0066cc, #004999);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-size {
    font-size: 12px;
    color: #999;
}

.btn-remove {
    background: #fee;
    color: #e74c3c;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: #fdd;
    transform: scale(1.1);
}

.upload-info {
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.05),
        rgba(0, 73, 153, 0.03)
    );
    border-left: 4px solid #0066cc;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.upload-info i {
    color: #0066cc;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.upload-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0066cc;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-group label a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #ebebeb;
    border-color: #0066cc;
    transform: translateY(-3px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 50px;
    color: white;
}

.modal-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 50px 30px;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-left h1 {
        font-size: 42px;
    }

    .hero-left p {
        font-size: 17px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }

    .stat-item {
        text-align: center;
        padding: 20px 24px;
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-left h1 {
        font-size: 36px;
    }

    .hero-left p {
        font-size: 16px;
    }

    .hero-icon {
        width: 70px;
        height: 70px;
    }

    .hero-icon i {
        font-size: 32px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-item {
        padding: 18px 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .container {
        padding: 40px 16px;
    }

    .application-form {
        padding: 30px 20px;
    }

    .selected-job-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .job-details p {
        justify-content: center;
    }

    .form-row,
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 20px;
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 350px;
    }

    .hero-content {
        padding: 30px 16px;
    }

    .hero-left h1 {
        font-size: 32px;
    }

    .hero-left p {
        font-size: 15px;
    }

    .hero-icon {
        width: 60px;
        height: 60px;
    }

    .hero-icon i {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-item {
        padding: 16px 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .application-form {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .section-header i {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .upload-box {
        padding: 24px 16px;
    }

    .upload-box i {
        font-size: 32px;
    }
}
