/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f9f5f0;
    color: #333;
    overflow-x: hidden;
}

section {
    padding: 40px 5%;
}

h1, h2, h3, h4 {
    color: #5e3b2c;
}

h1 {
    font-family: 'Alfa Slab One', cursive;
    text-transform: uppercase;
}

.highlight {
    color: #c77c52;
}

/* Header Section */
.application-header {
    min-height: 60vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../Images/Application/Application-Header.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.application-header h1 {
    font-family: 'Alfa Slab One', serif;
    font-size: 60px;
    margin-top: 80px;
    font-weight: bold;
    color: white;
    text-align: center;
}

/* Navigation */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 0;
}

.logo-container {
    position: absolute;
    top: 0px;
    left: 45px;
    background-color: white;
    border-radius: 2px;
    padding: 10px;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 400px;
    height: auto;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 100px 15px;
    position: relative;
    margin-top: -55px;
    left: 95px;
    bottom: 28px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 4px;
    transition: 0.5s;
    border-radius: 2px;
    display: block;
    background: white;
    margin: auto;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Form Container */
.application-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.form-header p {
    color: #666;
    line-height: 1.6;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c77c52;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

/* Skills Rating */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* References */
.reference {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.reference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.remove-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.primary-button, .secondary-button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-button {
    background-color: #c77c52;
    color: white;
}

.primary-button:hover {
    background-color: #a6683f;
}

.secondary-button {
    background-color: #e6e6e6;
    color: #333;
}

.secondary-button:hover {
    background-color: #d4d4d4;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-content h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 2rem;
}

.success-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-actions {
    margin-top: 30px;
}

/* File Input Styling */
input[type="file"] {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 5px;
}

/* Required Field Indicator */
label[for]:has(+ input[required])::after,
label[for]:has(+ select[required])::after,
label[for]:has(+ textarea[required])::after {
    content: " *";
    color: #c77c52;
}

.footer {
    background-color: #222;
    color: white;
    padding: 60px 30px 30px;
    margin-top: 40px;
    border-top: 3px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 30px;
    text-align: center;
}

.footer-logo img {
    width: 180px;
    height: auto;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
}

.footer-column p {
    color: #ccc;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
}

.newsletter-form button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #444;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #555;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 14px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* For Font Awesome Icons (you'll need to add the link to FontAwesome in your head) */
.social-links li a i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .application-header h1 {
        font-size: 36px;
        margin-top: 90px;
        padding: 0 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: white;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 3;
    }
    
    .nav-links {
        position: fixed;
        background-color: rgba(0, 0, 0, 0.9);
        height: 100vh;
        width: 80%;
        top: 0;
        right: -80%;
        text-align: left;
        z-index: 2;
        transition: 0.3s ease-in-out;
        padding: 60px 20px 20px;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
        box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links ul li {
        display: block;
        padding: 8px 12px;
        position: static;
        margin: 10px 0;
        left: 0;
        bottom: 0;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
        left: 20px;
        top: 10px;
    }
    
    .logo {
        width: 100%;
        height: auto;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .primary-button, .secondary-button {
        padding: 10px 20px;
    }
    
    .application-header {
        min-height: 40vh;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .application-header h1 {
        font-size: 28px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .rating {
        flex-wrap: wrap;
    }
}