/* Apply Page Styles */
.apply-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 109, 119, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 165, 176, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.apply-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.apply-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.apply-title {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #006d77, #00a5b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.apply-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #006d77, #00a5b0);
    border-radius: 2px;
}

.apply-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.8;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.form-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

.form-logo {
    width: 120px;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.form-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.form-brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #006d77, #00a5b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
    letter-spacing: -0.01em;
}

.apply-form-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 109, 119, 0.1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 15px rgba(0, 0, 0, 0.03),
        0 20px 25px rgba(0, 0, 0, 0.04);
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1a1a1a;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #006d77;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.1);
}

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

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

/* Skills Dropdown Styles */
.skills-dropdown {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dropdown-category {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.dropdown-category:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dropdown-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: rgba(248, 250, 252, 0.9);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #006d77;
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    background-color: #f8fafc;
}

.dropdown-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 2px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(248, 250, 252, 0.9);
    user-select: none;
}

.checkbox-label:hover {
    background-color: #f1f5f9;
    transform: translateX(5px);
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #006d77;
    border-radius: 4px;
}

/* File Input Styles */
.form-group input[type="file"] {
    padding: 1rem;
    background-color: rgba(248, 250, 252, 0.9);
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #006d77;
    background-color: #f8fafc;
}

/* Submit Button Styles */
.submit-button {
    background: linear-gradient(90deg, #006d77, #00a5b0);
    color: white;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 109, 119, 0.2);
    background: linear-gradient(90deg, #00a5b0, #006d77);
}

.submit-button:hover::before {
    transform: translateX(100%);
}

.submit-button:active {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .apply-section {
        padding: 2rem 1rem;
    }

    .apply-container {
        padding: 0;
    }

    .apply-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .apply-title {
        font-size: 2.25rem;
        text-align: center;
        width: 100%;
    }

    .apply-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .form-logo-container {
        margin: 2rem 0;
    }

    .form-logo {
        width: 100px;
    }

    .form-brand-name {
        font-size: 1.5rem;
    }

    .apply-form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

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

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .dropdown-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .checkbox-label {
        padding: 0.75rem;
    }

    .submit-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .apply-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .apply-section::before {
        background-image:
            radial-gradient(circle at 20% 20%, rgba(0, 165, 176, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 109, 119, 0.05) 0%, transparent 50%);
    }

    .apply-container {
        color: #e5e7eb;
    }

    .apply-form-container {
        background: rgba(45, 45, 45, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .form-group label {
        color: #e5e7eb;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: rgba(45, 45, 45, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
        color: #e5e7eb;
    }

    .form-group input:hover,
    .form-group select:hover,
    .form-group textarea:hover {
        border-color: rgba(255, 255, 255, 0.2);
        background-color: rgba(45, 45, 45, 1);
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #00a5b0;
        background-color: rgba(45, 45, 45, 1);
        box-shadow: 0 0 0 4px rgba(0, 165, 176, 0.1);
    }

    .dropdown-category {
        background-color: rgba(45, 45, 45, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-header {
        background-color: rgba(45, 45, 45, 0.9);
        color: #00a5b0;
    }

    .dropdown-content {
        background-color: rgba(45, 45, 45, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .checkbox-label {
        background-color: rgba(45, 45, 45, 0.9);
        color: #e5e7eb;
    }

    .checkbox-label:hover {
        background-color: rgba(55, 55, 55, 0.9);
    }

    .form-group input[type="file"] {
        background-color: rgba(45, 45, 45, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .form-group input[type="file"]:hover {
        border-color: #00a5b0;
        background-color: rgba(45, 45, 45, 1);
    }
}