/* Hero section */
.hero-section {
    background: #804383;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem;
    margin-bottom: 3rem;
}
.hero-section h1{
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.9s ease-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Career section */

.container {
    max-width: 70%;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--white);
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
}

.form-container {
   margin-bottom: 2.5rem;
}

/* Form header */
h2 {
    color: var(--primary-color);
            border-bottom: 3px solid var(--secondary-color);
            padding-bottom: 0.75rem;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
}

/* Form labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d8e0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input, 
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Error messages */
.text-danger {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Submit button */
.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .container {
        padding: 0 15px;
    }
    .form-container {
        padding: 1rem;
    }
}
@media (max-width:600px){
    .form-row{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .container {
        width: 100%; /* Almost full width on very small screens */
        margin: 0.5rem auto;
        padding: 0.75rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .form-row{
        grid-template-columns: 1fr;
    }
    input[type="text"], 
    input[type="email"], 
    input[type="file"], 
    select, 
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.5rem;
    }

    .btn-primary {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}
/* File input specific styling */
input[type="file"] {
    padding: 0.5rem;
}

/* Textarea styling */
textarea {
    resize: vertical;
    min-height: 100px;
}
@keyframes slideIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

